Jump to content


Photo

temporary table


  • Please log in to reply
1 reply to this topic

#1 astaroth

astaroth
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 05 May 2003 - 11:53 AM

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 ....)
Astaroth [br]----------- [br]i am so stupid to read the manual

#2 pallevillesen

pallevillesen
  • Members
  • PipPipPip
  • Advanced Member
  • 135 posts
  • LocationDenmark

Posted 06 May 2003 - 07:47 AM

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.
Palle Villesen, www.birc.dk [br]Bioinformatics Research Center




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users