Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP with MySQL

Name: Anonymous 2010-12-16 8:44

So... here is my code:

mysql_select_db("mydb");

$SQLstring = "SELECT FANID, NAME, CITY, EMAIL FROM FANS;";

$QueryResult = mysql_query($SQLstring)

     Or die("<P>Unable to execute the query</P>" .

          "<P>Error code " . mysql_errno($DBConnect) .

            " : " . mysql_error($DBConnect) . "</P>");

echo "<P>$QueryResult</P>";


What do I have to echo to get it to print out the entire table? (It's only 4 entries)

Name: Anonymous 2010-12-16 8:49

PHP
Now you have two problems.
with MySQL
Now you have three problems.
$SQLstring not escaped
Now you have infinite problems.
What do I have to echo to get it to print out the entire table? (It's only 4 entries)
Forget it, it's NP-complete.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List