![]() |
a bit of code in need of fixing
part of a hack im making:
PHP Code:
i know that Wont work.. how can i change it too make it work |
did you tried:
PHP Code:
|
hmm...
|
theres still the error with this line :
PHP Code:
PHP Code:
|
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 |
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 |
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 |
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!
|
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
o and the first line of this bit of code is the reference too the sessions.php
PHP Code:
|
All times are GMT. The time now is 11:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|