This is a discussion on "[SOLVED] Search results like these (link)" within the PHP Forum section. This forum, and the thread "[SOLVED] Search results like these (link) are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Search results like these (link)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Search results like these (link)
** EDIT**
Skip to post #3 I´m looking to build a search results PHP like this one, but I wouldn't know where to start. I would like my results to display in a simple yet elegant manner (like in the link). 1. [Species name]Species name from tableX_Column2 and species description from tableX_column3. (Column1 (is primary, auto increment). **EDIT** I've erased most part of my original post as is was to much/complicated. See post #3 for a more concise post Last edited by skuliaxe; Jan 27th, 2008 at 21:02. |
|
|
|
||||
|
Re: Search results like these (link)
Sorry, it's just too much work to read through the entire code. However, if I'm correctly following what you have and what you want, it's just a matter of applying the correct html/css tags within the section you want to style. Like in
|
|
|||
|
Re: Search results like these (link)
Thanks for that.
What I can´t seem to figure out (due to extreme lack of knowledge Currently I´m using: [SELECT * FROM table WHERE column LIKE (searchstring)...] Could I use instead: [SELECT id FROM table WHERE column LIKE (searchsting)...] $id=mysql_query($query); (Where 'id' is the Primary key and an auto increment for that field) If that is OK then I don´t know how to echo/Print something like this: echo [The 'name' from $id in database] <-- Looks up the 'id' field and fetches/prints data from the 'name' column in the field = $id. echo [The 'description' from $id in database] <-- Looks up the 'id' field and fetches/prints data from the 'descriptions' column in the field = $id. THAT IN A WHILE LOOP, while there is a result, echo/print that information. That is what i´m trying to do here Last edited by skuliaxe; Jan 27th, 2008 at 21:04. |
|
||||
|
Re: Search results like these (link)
If you want to output everything in the database, then use "SELECT *":
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: Search results like these (link)
[SOLVED]
Thank you so much masonbarge and c010depunkk (cookies I ended with the following:
Thanks again |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hyperlinking PHP/SQL search results | andrwleong | PHP Forum | 9 | Mar 26th, 2008 16:09 |
| [SOLVED] Displaying search results on a different page | longstand | PHP Forum | 4 | Nov 19th, 2007 22:26 |
| search results with servlet or JSP | twix_ | Other Programming Languages | 1 | Nov 2nd, 2006 21:25 |
| Index Server search results problem | starrbuck | Classic ASP | 0 | Feb 22nd, 2006 17:20 |