Hello: I’ve done a number of pMachine installations which normally go quite smoothly. However I just installed pMachine Pro on pMachine Hosting and I am getting this parse error:
Parse error: parse error in /home/pmh2541/public_html/sermons/chalice/lib/weblog.fns.php on line 2468
Thanks,
Bob S.
Here is the code surrounding line 2468 if that will help:
//——————————————————————-
// RANDOM FIELD GENERATOR
//——————————————————————-
function random_field_id($weblog=”“, $limit=”“)
{
global $db_weblog, $sfx;
$db = new DB();
$newtime = get_offset_time();
$idlist = array();
$count =1;
$qry = “select post_id
from $db_weblog
where status = ‘open’
and preview != ‘1’
and t_stamp <object())
{
$idlist[$count] = $query->obj->post_id;
$count ++;
}
$total = sizeof($idlist);
mt_srand((double)microtime() * 1000000);
$rand = mt_rand(1,$total);
return $idlist[”$rand”];
}
// END
