![]() |
I am not interested in what you expect the value to be, but in the real value. ;) You can use a vardump or echo to list the value.
If you are using query_first then you should not have te message that it is a resource id. |
Quote:
Code:
//jfk |
Not wrong, but not using teh vB coding standards and functions. Also, unless there is more code, you are not cleaning $forum_name before using it in a query, opening your board to SQL-Injections.
The "correct" ;) vB way to do this: PHP Code:
|
Not really following vB Coding Standards there either, Marco ;).
PHP Code:
|
oh! i started a fight! :eek: (just kidding)
it is very nice to have TWO distinguished coders helping me with my little problem! :) i will study comments re quotes very carefully, as i know from experince how important those little jobbies can be! --------------- Added [DATE]1225368751[/DATE] at [TIME]1225368751[/TIME] --------------- with regard to "cleaning" $pagetitle. i am dropping this piece into an existing script, in which $pagetitle is preset... can i not assume that this is var is clean? this will not be introduced as an $input... or from a form etc... --------------- Added [DATE]1225370809[/DATE] at [TIME]1225370809[/TIME] --------------- Quote:
--------------- Added [DATE]1225371729[/DATE] at [TIME]1225371729[/TIME] --------------- could i ask another question please? this code (immediately above) doesnt have an "if" condition in it, as i previously had.... does this matter? what would happen it the query fails (no match in the db)? |
Quote:
Quote:
PHP Code:
|
thanx for reply (and amendment). could u comment on "cleaning" $pagetitle. am i correct in my assumption?
|
|
Quote:
regards --------------- Added [DATE]1226095204[/DATE] at [TIME]1226095204[/TIME] --------------- while i am here, would u like to comment on the following? this is the reciprocal link back to "page" from the forum Code:
//jfk |
All times are GMT. The time now is 06:19 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:
|