1. is mysql server on both the machines (localhost)? 2.mysql gives access permission based on username@machinenameORipaddress, are your sure the user name you are giving has insert permission on the table specified? 2. hope in both the machine php is configured to understand '<? ?>' as php code delimiter (and not <?php ?>, depending open 'short_open_tag' setting in php.ini)
regds, -----Original Message----- From: Tim Blackwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 00:53 To: [EMAIL PROTECTED] Subject: works on one server and not another this works on a windows XP machine i have but when i put it on a w2kserver it doesn't work? <html> <body> <? @ $db = mysql_pconnect("localhost", "", ""); mysql_select_db("database_name"); $query = "insert into table_name values ('".$name."')"; $result = mysql_query($query); ?> </body> </html> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php