November 3rd, 2000, 09:46 AM
When i use this code:
$global_dbh = mysql_connect( 'localhost:/tmp/mysql.jenkins2' , 'root' , 'XXXXXXXXXXX.');
$db = "bgsuas";
mysql_select_db( $db, $global_dbh );
$theheadline = mysql_query("SELECT headline FROM news");
it sets $theheadline = to Resource id #2 instead of the value from the database. Please help!
November 3rd, 2000, 05:01 PM
mysql_query() returns a result index (2 in this example).
To actually access the data you'll need to use one of the various functions designed for that: