The Arcive of vBulletin Modifications Site. |
|
a bit of code in need of fixing Details »»
|
|||||||||||||||||||||||||
part of a hack im making:
PHP Code:
i know that Wont work.. how can i change it too make it work Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
did you tried:
PHP Code:
|
|
#3
|
||||
|
||||
|
hmm...
|
|
#4
|
||||
|
||||
|
theres still the error with this line :
PHP Code:
PHP Code:
|
|
#5
|
||||
|
||||
|
insert:
echo "warnfield=$warnfield <br>"; echo "bbuserinfo=$bbuserinfo<br>"; before $warnlevel = $DB_site->query_first("SELECT $warnfield FROM userfield WHERE userid='$bbuserinfo'"); and see what your variables have before entering the query. BTW isnt it the variable "$bbuserinfo[userid]" you should use in your query if I got what you're trying to do right? if yes try this: $new_var_323= $bbuserinfo[userid]; $warnlevel = $DB_site->query_first("SELECT $warnfield FROM userfield WHERE userid='$new_var_323'"); Hope this helps.. Regards, Logician |
|
#6
|
||||
|
||||
|
it seems no matter what i do i get this error:
Parse error: parse error in /home/fiendwor/public_html/admin/functions.php on line 214 Fatal error: Call to undefined function: getuserinfo() in /home/fiendwor/public_html/admin/sessions.php on line 323 |
|
#7
|
||||
|
||||
|
it doesnt like this code:
echo "warnfield=$warnfield <br>"; if thats not there it doesnt like this code: $new_var_323= $bbuserinfo[userid]; if thats not there it doesnt like the query |
|
#8
|
||||
|
||||
|
what editor program do you use? Cant you see which line produced the error? I strongly suggest you using an editor that can show you line numbers and then you can easily point which line is causing you trouble. It would be a real headache to trace and fix the problem without even knowing which line causes the problem!
|
|
#9
|
||||
|
||||
|
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
|
#10
|
||||
|
||||
|
o and the first line of this bit of code is the reference too the sessions.php
PHP Code:
|
![]() |
|
|