Search found 4 matches

by TheChosenHalf
Sat Feb 04, 2012 12:03 pm
Forum: Tutorials
Topic: Register and Login, mysql_result argument error
Replies: 8
Views: 1074

Re: Register and Login, mysql_result argument error

i tied that too...

oh... wait it did throw an error, wrong db name -.-"
thanks for the help :D
by TheChosenHalf
Sat Feb 04, 2012 10:22 am
Forum: Tutorials
Topic: Register and Login, mysql_result argument error
Replies: 8
Views: 1074

Re: Register and Login, mysql_result argument error

yes, the name is Accounts the mysql_error() did nothing... :s and here is the new code: [syntax=php]function user_exists($user){ $user = mysql_real_escape_string($user); $total = mysql_query("SELECT COUNT(`user_id`) FROM `Accounts` WHERE `user_name` = '{$user}'"); return (mysql_result($tot...
by TheChosenHalf
Fri Feb 03, 2012 3:36 pm
Forum: Tutorials
Topic: Register and Login, mysql_result argument error
Replies: 8
Views: 1074

Re: Register and Login, mysql_result argument error

eh, still the same problem.
by TheChosenHalf
Thu Feb 02, 2012 4:10 pm
Forum: Tutorials
Topic: Register and Login, mysql_result argument error
Replies: 8
Views: 1074

Register and Login, mysql_result argument error

Hi, I'm having trouble with the Register an Login tutorial part 4(actualy the error is in user.inc.php), when I try to register with empty fields I get an error(I've been trying to solve it for an hour): Warning: mysql_result(): supplied argument is not a valid MySQL result resource code: [syntax=ph...