Jump to content

Echo the table names I am using in my query


OldWest

Recommended Posts

This serves more or less a meaningless purpose for my testing, but I've been trying to echo out the names of the tables that are being used in my UPDATE and SELECT queries and I have yet found a way to do this.. Did some research on php.net and Google and did not find anything that seems to directly address this..

 

My guess is it's so stupid simple, I probably will have an answer by the time I wake up..

 

But id there are any suggestions on this, Id be glad to take.

Why not simply echo your queries?

 

I don't think I understand exactly what you mean (and I'm about to fall asleep while I type  :o). I just tried a literally echo of my query result like:

 

$result = mysql_query("SELECT * FROM orig_codes_1a") 
or die(mysql_error());  
// END :: Create query to be displayed as final results of original codes table.

echo "<p>$result</p>";

 

And as output I get: Resource id #4

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.