Jump to content


Photo

Not inserting.. wtf.


  • Please log in to reply
3 replies to this topic

#1 ataria

ataria
  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 12 October 2006 - 12:51 AM

Alright.

bout it inserting 2 rows, i just deleted that script.
I put it on the reigster page, and, it's ...

$insertchar = "INSERT INTO `characters` ( `username` ) VALUES ('$username')";

and, then, i looked in the DB, and it's under 'int' so i changed it to text..

now it won't insert, anyone see the problem?

#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 12 October 2006 - 12:54 AM

Try this instead:
<?php

$insertchar = "INSERT INTO characters (username) VALUES ('$username')";

?>

PHP Ninja

#3 ataria

ataria
  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 12 October 2006 - 12:59 AM

doesn't work...

#4 ataria

ataria
  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 12 October 2006 - 01:09 AM

I got it :) thanks for the help guys.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users