Jump to content

Archived

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

astaroth

temporary table

Recommended Posts

actually it\'s a newbie question.....

i need to make a table inside a php code...

do i have to write like

$sql=(create temporary table KWTemp type=heap (ID int auto_increment primary key not null, KW varchar(255) not null)\");

 

OR

can i it work without the $sql just

(create temporary tabel ....)

Share this post


Link to post
Share on other sites

You have to send it to the mysql server using the mysql_query() function..

 

Whether you put the sql statement in a variable first or directly in the mysql_query(\"Select....\"); doesn\'t matter....

 

I prefer the first due to readability.

 

P.

Share this post


Link to post
Share on other sites

×

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.