How do I access to a Temporary Table in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paolo
Forum Newbie
Posts: 15
Joined: Sat May 14, 2005 6:06 am

How do I access to a Temporary Table in PHP?

Post by paolo »

Hello,
I've just created a temporary table into a php function, using the sintax

Code: Select all

$query = "CREATE TEMPORARY TABLE temp_res ( ....data...long.....)
and the

Code: Select all

mysql_query
returns true, so I think it's ok, how do I return to the main page the value of table? should I only pass the name when accessing to it? in that case temp_res or I've to take care of something particular? I'm used to code in C, so what I mean is "I've not got an object as return, how do I access to it?"
Thanks
Paolo
Post Reply