Skip to main content
Known Participant
December 11, 2007
Question

Search Results (PHP) not working

  • December 11, 2007
  • 2 replies
  • 298 views
I just set up a simple form that goes to a page called searchresults.php and adding a dynamic table and I'm not getting any data to show up. Just a heavily bunched up table listing categories from the DB.

This is the homepage:
http://209.62.4.98/~parishpr/index.php

and this is the search results page:
http://209.62.4.98/~parishpr/searchresults.php

Where did I goof? I followed the instructions from the manual so this shouldn't have happened.
This topic has been closed for replies.

2 replies

Inspiring
December 13, 2007
RichardODreamweaver wrote:
> I'm no expert but after looking briefly at the source on your search results
> page, there is no recordset based on the search criteria or <?php.... scripting
> to recall the results.
>
> I can see the headings but little else - am I missing something?

Yes, you're missing the fact that PHP is a server-side language. Looking
at the page source in a browser shows only the HTML that was generated
by the PHP script, but not the script itself. It's impossible to tell
what's wrong just by posting links to the web pages. For anyone to help,
they need to see the original PHP code.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Inspiring
December 13, 2007
I'm no expert but after looking briefly at the source on your search results page, there is no recordset based on the search criteria or <?php.... scripting to recall the results.

I can see the headings but little else - am I missing something?