![]() |
|
#1
|
|||
|
|||
(isset)I use a search form that sends the relevant info to a results page
Example code HTML Code:
This is inserted into my search query as PHP Code:
All the other sections work apart from this one. Can anybody see what I am doing wrong? It is the only section that doesnt work so I am missing something. Last edited by JdS : 20-Jun-2004 at 05:14.
Reason: Please insert [php] & [/php] tags between your example PHP codes
|
|||
|
#2
|
||||
|
||||
|
Despite having almost 100 posts to your credit on GIDForums™, I am surprised that you still use [ QUOTE ] bbcode tag to highlight your code examples. What is wrong with using HTML or PHP bbcodes?
![]() Anyway, what seems to be the problem with your code actually? Is it just that $Rpic is not set/blank or the 'created' SQL is failing? Can you echo the $Rpic value in a test page? If you're using the POST method in your form and your REGISTER GLOBALS setting is OFF, then you need to use $_POST['Rpic'] to grab the form's value in your script. Somehow I think you know that already, so it must be something else that you omitted sharing in your first message. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Quote:
$Rpic value can be displayed on the page so the information is getting to my results page. All other aspects of the search are working but the $Rpic is being ignored for some reason. If I search for just a Diesel all listings are displayed as if the $Rpic was not present. (I hereby promise to use the correct tags for codes on all my posts, scouts honour. |
|
#4
|
||||
|
||||
|
No, we don't do the 'reprimand' thingy here... just confused why you'd want me to keep editing your posts, that's all!
![]() OK, I see the issue now that I've narrowed my attention to the SQL bit off your example code; you forgot the single quotes around $Rpic! So, your code could look a bit like this? PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
|||
|
|||
|
Nope
![]() |
|
#6
|
||||
|
||||
|
Have you tried 'echo'-ing $sqll just to see what is being sent to the MySQL server?
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#7
|
|||
|
|||
|
If I use
PHP Code:
|
|
#8
|
|||
|
|||
|
OK now we are getting somewhere:
'echo'-ing sql1 shows that using code last posted without PHP Code:
'echo'-ing sql1 shows that using code including PHP Code:
|
|
#9
|
|||
|
|||
|
Got it to work
I used HTML Code:
and PHP Code:
What the difference Any made from 0 I am unsure??? but it now works. ![]() |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The