I'm running MySQL on a WIN2k server box.  I'm doing inserts using PHP.
Here's the code for the insert:

 $db = mysql_connect($hostname, $uid, $pwd); //$hostname is "localhost" and
$uid/$pwd are userid and password
 mysql_select_db("heroes",$db);

 $insertQuery = "INSERT INTO UniqueCardList (MCardID,OwnerID) VALUES(1,1)";
 echo $insertQuery . "<BR>\n";
 $insertResult = mysql_query($insertQuery,$db)
     or die ("Insert query failed");

I can go in, delete all records from the table, run the code once, and wind
up with two records.

Anybody got any ideas?



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to