The Arcive of vBulletin Modifications Site. |
|
whats here wrong?? Details »»
|
|||||||||||||||||||||||||
Hi,
i have a problem with my self made hack, i become all the time a parse error, which } is wrong there? Code:
if (($X==1) && $X) {
if (($X == '') && ($X == '') && ($X == '') && ($X == '') && ($X == '')) {
$DB_site->query("DELETE FROM X WHERE threadid='$threadid'");
} else {
$data=$DB_site->query_first("SELECT X,X,X,X,X from X WHERE threadid=$threadid");
if (($data['X'] != '') && ($data['X'] != '') && ($data['X'] != '') && ($data['X'] != '') && ($data['X'] != '')) {
$DB_site->query("UPDATE X SET X='".addslashes($X)."',X='".addslashes($X)."',X='".addslashes($X)."',X='".addslashes($X)."',X='".addslashes($X)."' WHERE threadid='$threadid'");
} else {
$DB_site->query("INSERT INTO X (threadid,X,X,X,X,X) VALUES('$threadid','".addslashes($X)."','".addslashes($X)."','".addslashes($X)."','".addslashes($X)."','".addslashes($X)."')");
} else {
$DB_site->query("UPDATE IGNORE X SET threadid='$threadid',X='".addslashes($X)."',X='".addslashes($X)."',X='".addslashes($X)."',X='".addslashes($X)."',X='".addslashes($X)."'");
}
}
}
eval("standardredirect(\"".gettemplate("X")."\",\"showthread.php?s=$session[sessionhash]&postid=$postid#post$postid\");");
}
thanks for help! ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
The last one is incorrect. Get rid of it, and move the eval() statement up.
PHP Code:
|
|
#3
|
||||
|
||||
|
thanks for help
![]() the last one is for if there is nothing or no change, that it does nothing. |
|
#4
|
||||
|
||||
|
PHP Code:
that's the buggy part |
|
#5
|
||||
|
||||
|
hm or can i make
PHP Code:
when i try this i became also a parse error.
|
|
#6
|
||||
|
||||
|
you have to take out the second else at all..
|
|
#7
|
||||
|
||||
|
how can i say with a if, that when nothing is change that it do nothing
|
![]() |
|
|