Hi,
I added a table to my phpnuke database, all connections to this db
work perfectly, except this custom table, it gets data from a form.
Before I was using it just to show data was succesfully retrieved, and
it was working now I added these lines:
<?
$db = mysql_pconnect("localhost", "admin", "123456");
if (!$db)
{
echo "Error : Can't Connect !. Try Later.";
exit;
// After these line mysql exits with error Access Denied . If I check
// admin@localhost with phpMyAdmin it has all permissions granted.
// What's wrong ??
}
$date = date("U");
mysql_select_db("ermitage");
$query = "insert into nuke_ermitage values
('".$Nombre."', '".$Apellido."', '".$Direccion."', '".$Ciudad."',
'".$Telefono."', '".$Mail.
"', '".$Pais."','".$date."')";
echo $query;
.
.
.
more stuff ...
?>
TIA,
Rick
---------------------------------------------------------------------
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