Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop, Create and Select for Temporary Table

Status
Not open for further replies.

NigeB

Technical User
Nov 29, 2000
53
GB
I am having problems with the code listed below, I keep having a parse error reported on the line pertaining to DROP TABLE. Am I missing something fundamental or is it a bigger problem? Any help is appreciated.

Nigel

___________________________________________________

<?
$db = mysql_connect(&quot;Server&quot;, &quot;User&quot;, &quot;Password&quot;);

mysql_select_db(&quot;Database&quot;, $db);

DROP TABLE IF EXISTS seedtmp1, $db;
?>

<?
$db = mysql_connect(&quot;Server&quot;, &quot;User&quot;, &quot;Password&quot;);

mysql_select_db(&quot;Database&quot;, $db);

CREATE TEMPORARY TABLE seedtmp1
SELECT Ttimes.TRN, Teams.Team, Ttimes.Fastest_Time, Venues.Date, Venues.Venue
FROM Teams
LEFT JOIN Ttimes ON Teams.TRN = Ttimes.TRN
LEFT JOIN Venues ON Ttimes.Tournament_ID = Venues.Tournament_ID
&quot;, $db);


?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top