percept
03-24-2004, 12:36 PM
Hello, I can't for the life of me figure out why my select statement will not retrieve the data from MySql. it is a very simple statment;
mysql_query ("SELECT pub_type, call_number, pub_author, pub_title, subtitle, edition, publisher, publication_year, physical_description, series, isbn, holdings, subjects FROM library WHERE id=" .$pub_id);
but when I try to echo any of these variables I get nothing showing for results. the $pub_id displays because it is set by a GET function.
echo "<b class='foo'>$pub_id $pub_author $series </b> ";
I use a select statement on the page that calls for this page and it retrieves info from the database not problem... my includes for database connection, etc are all in tact.
Any help or advice greatly appreciated!
mysql_query ("SELECT pub_type, call_number, pub_author, pub_title, subtitle, edition, publisher, publication_year, physical_description, series, isbn, holdings, subjects FROM library WHERE id=" .$pub_id);
but when I try to echo any of these variables I get nothing showing for results. the $pub_id displays because it is set by a GET function.
echo "<b class='foo'>$pub_id $pub_author $series </b> ";
I use a select statement on the page that calls for this page and it retrieves info from the database not problem... my includes for database connection, etc are all in tact.
Any help or advice greatly appreciated!