Msg#: 3177 posted 11:34 pm on Mar 13, 2004 (gmt 0)
Hi, I'm writing a guestbook and I got stuck on the part of the script that selects the posts from the database (mysql) and prints it to the page. The code is below:
$result = mysql_query("SELECT * FROM table_name WHERE active ='1'"); $row = mysql_fetch_array($result); print "$row";
This is a very basic script, I'll add the bells and whistles later but first I need to get this part to work. When I go to this page with my browser, I get the meta title tag but nothing in the body of the browser (I just get a blank screen). Questions: 1. Yes, I have included the database information in an include. 2. Yes, there is a post in the db with active set to 1.