----- Original Message -----
From: "Gerenday, Perry (P.)" <[EMAIL PROTECTED]>
> Why can't I print (to screen) what I think is in my MySQL
> database using PHP. Here is what I've got.
>
> $ShowMeAll = mysql_query("SELECT * FROM blogTable")
> or die("Bad SELECT query." . mysql_error());
> print "Here it is: $ShowMeAll";
Try:
$result = mysql_query("SELECT etc");
// $result now contains a pointer to the result of
// the SQL query - not the data from the database.
// You now have to fetch that data, row by row,
// using $result as the pointer for where to find it:
if (mysql_num_rows($result) == 0)
print "No matching rows found<br>";
else {
while ($row = mysql_fetch_array($result)) {
print "Found a row of data<br>";
print "First 2 cols: " . $row[0] . ", " . $row[1] . "<br>";
}
}
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]