Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem while fetching data from a html page
02-26-2010, 07:10 PM
Post: #1
problem while fetching data from a html page
Hi,
When i am fetching data in my php page from html page, it shows an error : undefined variables. i want to fetch data fro insertion in sql.
My code is:

$sql="INSERT INTO user_tb (user_name,passw)
values
(".$_POST[username]." ,
".$_POST[pwd].")";

Please help.
Find all posts by this user
Quote this message in a reply
02-26-2010, 07:36 PM
Post: #2
RE: problem while fetching data from a html page
Try using :


$sql="INSERT INTO user_tb (user_name,passw)
values
('".$_POST['username']."' ,
'".$_POST['pwd']."')";
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:

Contact UsDeveloper SolutionReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication