Jump to content

Can not Insert Query correctly


dimisdas

Recommended Posts

I can not find whats wrong! Any ideas?

 

$id1=rand(100,999) . "\n";

$id2=rand(1000,9999) . "\n";

$id3=rand(1000,9999) . "\n";

$id4=rand(1000,9999) . "\n";

$id5=rand(1000,9999) . "\n";

 

$all="$id1 $id2 $id3 $id4 $id5";

 

mysql_connect(localhost,$username1,$password1);

@mysql_select_db($database1) or die( "There is a problem with the MySQL database");

 

 

$query = "INSERT INTO accounts (username, fullname, password, rank, banned, code, enabled) VALUES ('$user', '$name', '$pass', '1', '0', '$all', '0')";

mysql_query($query) or die('Error, insert query failed');

 

mysql_close();

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/151105-can-not-insert-query-correctly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.