How can I fix this?
This is the warning:
This is the code:
I'm a beginner. I would appreciate your help. Thanks!
This is the warning:
Code:
Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\pos\addmessage.php on line 4
This is the code:
Code:
<?php mysql_connect("localhost","root",""); @mysql_select_db("pointofsales") or die ("Unable to connect");; $sql=mysql_query("INSERT INTO products(prodid, prodname, description, amount, stocks)VALUES('$_POST[ProdID]','$_POST[ProdName]','$_POST[Description]','$_POST[Amount]','$_POST[Stocks]')"; mysql_query($sql); mysql_close(); echo "Record is added successfully"; ?>
Comment