Hello,
I was wondering if any changes were introduced in version 5.1.4 of PHP that would not make a simple line of code like this work anymore:
$link = mysql_connect('localhost', 'user', 'pw');
I had my friend try this on his 5.1.2 PHP local machine and it worked for him but I keep getting the error:
Parse error: syntax error, unexpected T_VARIABLE in /home/chaindlk/public_html/reviews/last.php on line 9
where 9 is that line...
part of this function:
function show_randomId() {
$link = mysql_connect('localhost', 'user', 'pw');
$db_stream = mysql_select_db(SERVER_DB_NAME, $link);
$result = mysql_query("SELECT reviews2_reviews.id AS N_REVIEWS FROM reviews2_reviews ORDER BY RAND( ) LIMIT 1", $mysql_stream);
$r = mysql_fetch_object( $result );
echo get_byId($r->N_REVIEWS);
}
Thanks...