View Single Post
Old 04-14-2009, 04:07 PM   #1 (permalink)
shankar
The Wanderer
 
Join Date: Apr 2009
Posts: 19
Thanks: 9
shankar is on a distinguished road
Default Can you find the mistake in this code

<?php

$username = $_POST['username'];
$password = md5($_POST['password']);

$connect = mysql_connect("localhost","prashant_shankar","shan kar") or die ("Couldn't connect");
mysql_select_db("prashant_inspirations") or die("Couldn't find db");

$query1 = mysql_query("INSERT INTO `prashant_inspirations`.`user_acc` (`uid` ,`username` ,`password`) VALUES(NULL , `$username`,`$password`)") or die ("Couldn't update in user");

mysql_query($query1);

?>

The DBname is perfect, it shows that it cant update user table, anything wrong in the syntax , can u correct me.Thanks in advance.
__________________
--
Regards
Shankar
shankar is offline  
Reply With Quote