Results 1 to 3 of 3

Thread: Can't add info to MySQL db [resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255

    Can't add info to MySQL db [resolved]

    Code:
    	    mysql_query("INSERT INTO userdb VALUES('000000','R.a.B.B.i.T','password','Admin'")
    		  or die("something is wrong.");
    Always dies...I used the following to create the table:
    Code:
    $query=("
    		 CREATE TABLE userdb(
    		   id INT(6) NOT NULL auto_increment,
    		   username TEXT,
    		   password TEXT,
    		   rank TEXT
    		   )
    	   ");
    
    mysql_query($query);
    Last edited by R.a.B.B.i.T; Aug 5th, 2004 at 11:49 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width