[Tool/Web/Other] [PHP] PHP/HTML Masters Help!
#7

Quote:
Originally Posted by Matthias_
Uhm, I don't think you can have a space in the fieldname
+1 on that, even though he has put everything in quotes. So that would've blocked it out. I would like to see the mysql_error() msg when it shows after what saiberfun did.
Quote:
Originally Posted by ┤ŞąiBЄЯҒПŋ├
Quote:
Originally Posted by Ironboy500
Код:
$query4 = mysql_query("UPDATE users SET `Admin Level` = `1` WHERE `Username` = '$user'");
    if(!mysql_query(query4))
    {
     echo mysql_error();
    }
I think simply just do
if(!mysql_query($query4))

instead of

if(!mysql_query(query4))
Код:
$query4 = mysql_query("UPDATE users SET `Admin Level` = `1` WHERE `Username` = '$user'");
    if(!mysql_query($query4))
    {
     echo mysql_error();
    }
Nicely noticed.

Also: You use single quotes and the `` together. I don't know what you call them, but they are next to the 1 key on your keyboard. I don't know if it matters, but I remember (not very good.. my mind isn't that good at remembering ) that it matters if you put single quotes and .. those weird quotes heh.. together.
Reply


Messages In This Thread
[PHP] PHP/HTML Masters Help! - by Ironboy500 - 18.05.2010, 16:06
Re: [PHP] PHP/HTML Masters Help! - by mamorunl - 18.05.2010, 18:41
Re: [PHP] PHP/HTML Masters Help! - by Ironboy500 - 22.05.2010, 09:41
Re: [PHP] PHP/HTML Masters Help! - by Ironboy500 - 23.05.2010, 11:05
Re: [PHP] PHP/HTML Masters Help! - by GTA_Rules - 23.05.2010, 14:45
Re: [PHP] PHP/HTML Masters Help! - by saiberfun - 23.05.2010, 14:56
Re: [PHP] PHP/HTML Masters Help! - by mamorunl - 23.05.2010, 15:07
Re: [PHP] PHP/HTML Masters Help! - by Silent314 - 23.05.2010, 17:36
Re: [PHP] PHP/HTML Masters Help! - by Silent314 - 23.05.2010, 23:38
Re: [PHP] PHP/HTML Masters Help! - by Silent314 - 24.05.2010, 01:57

Forum Jump:


Users browsing this thread: 2 Guest(s)