I used MySQL query to insert some fields into phpadmin database, the query was also very simple but whenever i used an launch that query it simply passed on me the error message saying that "query is empty".
I used the following query to insert field into my database.
Code:
$_SESSION['authour']="yes";
$logname = $_POST['Firstusername'];
$_SESSION['logname'] = $logname;
$today = date("Y-m-d h:m:s");
After defining the variable I passed the following parameters to insert into an database.
Code:
$sql = "INSERT INTO Member (loginName, loginTime) VALUES ('$logname', '$today')";
echo "$logname, $today";
mysql_query($sq1) or die(mysql_error());
what would be the problem where it goes wrong please help.
Bookmarks