RE: works on one server and not another
| From: | Uttam | Date: | Fri, 11 Oct 2002 06:36:39 +0000 |
| Subject: | RE: works on one server and not another | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16330@lists.php.net to get a copy of this message | ||
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:timblackwell@hotmail.com]
Sent: Thursday, October 10, 2002 00:53
To: php-windows@lists.php.net
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>