![]() |
Php help, I have code, I need to modify it. Thanks for any help.
The code was originally this
PHP Code:
I changed it to this PHP Code:
|
For which query is it complaining?
I would guess that you user table does not have the userbar field in it, but without the actual error message, it is but a guess. Also your queries are completely screwy, you are setting two queries but only reading once, and both of those queries are pointless. "select field from table where field=blah is only ever going to return blah or nothing. Perhaps if you explained what you are trying to do. |
Ok, more details, sorry.
The hack I've installed adds a userbar to a members profile, I'm trying to add it to their sigs, but it won't display there. When a user chooses their bar it takes the "userbarid" field from the "userbar" table and copies the value to the the user table in a field called "userbar" I've created a field called "userbarpath" in the user table and want it to take the "userbarpath" from the "userbar" table and copy it there. Thanks for your help. |
Well, I dont know why you are getting the error, so please post a full version of the error you are getting here. here's some better code with an explanation.
PHP Code:
|
Thanks for your code! It worked great! Thanks again man. I'll learn from that code and be able to do it my self from now on.
|
All times are GMT. The time now is 08:21 PM. |
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:
|