View Single Post
(#1 (permalink))
Old
mhutti1 mhutti1 is offline
Junior Member
mhutti1 is on a distinguished road
 
Posts: 21
Join Date: Apr 2012
Question SQL insert problem - 04-24-2012, 11:56 AM

This code for creating users does not work
PHP Code:
$connect5=mysql_connect("SERVER","USERNAME","PASSWORD") or die ("Could not connect to database");

mysql_select_db("DATABASE") or die ("Could not find database");

$query10 mysql_query("INSERT INTO members VALUES ('','$username','$enc_password','$name','Private')") or die("error"); 
It seems to connect fine however the insert into statement triggers the error message and consequently no user is created. Does anyone know why this is?
Reply With Quote
Sponsored Links