MySQL Forums
Forum List  »  PHP

problem inserting data from a web form
Posted by: Greg Wolfe
Date: April 09, 2017 05:52PM

I am having problems inserting data into my MySQL database from a webform. I have simplified the values by typing in text values as below. I am thinking the MySQL_query command may not be correct. Any help would be much appreciated.

<?php

$sql = "INSERT INTO login (username, password, email, password2) VALUES ('greg1', 'greg2', 'greg3@hello.com', 'greg4')";

mysql_query($sql);

mysql_close($conn);


?>

Options: ReplyQuote


Subject
Written By
Posted
problem inserting data from a web form
April 09, 2017 05:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.