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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.