taking 2 values with one query?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

User avatar
irealms
Forum Contributor
Posts: 215
Joined: Mon Apr 28, 2003 7:10 am
Location: Leeds

yup

Post by irealms »

that query worked fine, its the insert that doesn't :cry:

Code: Select all

$query = "INSERT into 'user' (username, passwd, charname, email) VALUES ('$username', '$passwd', '$charname', '$email')";
User avatar
irealms
Forum Contributor
Posts: 215
Joined: Mon Apr 28, 2003 7:10 am
Location: Leeds

fixed

Post by irealms »

renamed the table to users and it works now:

Code: Select all

$query = "INSERT INTO users (username, passwd, charname, email) VALUES ('$username', '$passwd', '$charname', '$email')";
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

' and ` are two different characters ;)
Post Reply