what about if you do action="?"
or another non consequential characters such as #

what about if you do action="?"
or another non consequential characters such as #
How could this hapen to meeeeeeeeeeeeeee?lol.
Its going to post to whatever you tell it to.
If you tell it to post to ? it's going to post to pagename.php?
If you tell it to post to ?action=edit, it is going to post to pagename.php?action=edit
ah so using ? is quicker than <?php echo $_SERVER['PHP_SELF']; ?> and more efficient?
How could this hapen to meeeeeeeeeeeeeee?lol.
Probably, I haven't timed it or tried it. PHP_SELF is just echoing the filename of that script.
Does anybody know what's wrong with this?
take out the @ signs, and in your mysql query to mysql_query("blabla") or die(mysql_error());
How could this hapen to meeeeeeeeeeeeeee?lol.
So I just add or die(mysql_error()); to it?
Like this?
PHP Code:mysql_query( "UPDATE `settings` SET `title` = '$title', `main_logo` = '$logo', `offline_text` = '$offline', `status` = '$status', `logo_left` = '$left'" ) or die(mysql_error());
correct, this will produce an error if anything goes wrong, you should always do this in development, and never use @
Edit 97 till 1000 Oo
Last edited by Hypertext; 09-03-2008 at 12:06 AM.
How could this hapen to meeeeeeeeeeeeeee?lol.
No, that doesn't fix it. It doesn't give a mySQL error either.
Jesus, wth is wrong with it. ;l
Want to hide these adverts? Register an account for free!