Dear forumers,
Currently i am having probelm with passing data into my database
I believe this has something to do with my query strings.
Can anyone check for me whether my PHP codes are correct?
$qs = \"?form_first_name=\" . urlencode ($form_first_name) . \"$form_last_name=\" . urlencode ($form_last_name);
if (!$newresult = mssql_query(\"INSERT INTO [databasename] (FirstName,LastName)
VALUES(\'$form_first_name\',\'$form_last_name\')\")))
{
echo(\"\nData not entered\");
exit();
}
I have to mention that the database actually created a row of data , but nothing was in it.That means, the firstname and lastname was not captured.
Wondered if anyone could help?
Many Thanks in Advance