Hey, I've just finished a little script I was creating. I submitted an entry to a database and on another file I displayed the contents of the database. I created a little file that deletes all entries from the database and it worked.. but now when I submit another entry to the database it doesn't display anything when I go to fetch the contents, just a white page.
This is the code I am using.
Obviously I've taked out the function names and such but does anybody know why it's not displaying anything? (It used to work before I deleted the entries)PHP Code:
<?php
include 'database.php';
$fetch = mysql_query("SELECT * FROM database");
while ($display = mysql_fetch_array($fetch)) {
echo "
Blah: $display[blah]
";
}
?>