Matthew Macdonald-Wallace<mailto:[EMAIL PROTECTED]> on
Monday, July 14, 2003 8:01 AM, said:

> Hope this list is still the hive of activity it used to be, look
> forward to helping and being helped once again.

Alrighty then Matt. Let's get you started.

Why can't I print (to screen) what I think is in my MySQL database using
PHP. Here is what I've got.

//Connecting to the database works fine like this:
$blogConnection = @mysql_connect("$DBhost", "$UserName", "$PassWord");
if(!$blogConnection){
echo "Could not connect to database.";
exit;}
if([EMAIL PROTECTED]($DBname)){
echo "Could not select database.";
exit;}                   

// I only have one table at the moment. This prints out the table name just
fine.                          
$DBtables = mysql_list_tables($DBname);

if(!$DBtables){
echo "Sorry, couldn't list tables.";
exit;}

while($TableList = mysql_fetch_row($DBtables)){
print "Here are the database tables I have: $TableList[0].";}


// Here's what I can't understand. All I get is a line that says something
like, "Resource #4".
// I don't know how to get the content to print out from my 4 fields.
$ShowMeAll = mysql_query("SELECT * FROM blogTable")
                    or die("Bad SELECT query." . mysql_error());
print "Here it is: $ShowMeAll"; 


Any suggestions?

TIA

Perry Gerenday

____ � 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]

Reply via email to