942,959 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 66
  • PHP RSS
Jul 29th, 2010
0

I really need good search script

Expand Post »
Hello everyone, i was hoping i could get help for a search script that displays not just the text results but also an image based on the search query for eg: if you are searching for a book by author or name of a book in the results page it should show the text as a link which can be clicked to view the image or it can just show the text and image together. i would really be indebted to whoever can help me out here, thanks and God bless!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
willie-abei is offline Offline
3 posts
since May 2010
Jul 30th, 2010
0
Re: I really need good search script
If you can display the text you can also display the name of the image that you upload for that author or book, you don't need a special search script, you need only a field for the image
Reputation Points: 201
Solved Threads: 83
Posting Pro
cereal is offline Offline
513 posts
since Aug 2007
Jul 30th, 2010
0
Re: I really need good search script
use like clause in query . retrive all the information frm database which is related to searchcontent. there is no need to serch image.
PHP Syntax (Toggle Plain Text)
  1. $sql = mysql_query("SELECT * FROM tablename WHERE author_name LIKE 'searchcontent%'");
  2.  
  3. while ($row = mysql_fetch_row($sql)) {
  4. echo "$row[0] $row[1] $row[2] <br />";
  5. }
Last edited by muralikalpana; Jul 30th, 2010 at 2:24 am.
Reputation Points: 21
Solved Threads: 35
Posting Pro
muralikalpana is offline Offline
534 posts
since Sep 2009
Jul 30th, 2010
0
Re: I really need good search script
Thanks guys, i really appreciate your contributions, but does anyone know how i can get a full working bookstore script example so i can learn from...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
willie-abei is offline Offline
3 posts
since May 2010
Jul 31st, 2010
0
Re: I really need good search script
no...you can find code snippets of concepts. you try your self. we will help you.
Reputation Points: 21
Solved Threads: 35
Posting Pro
muralikalpana is offline Offline
534 posts
since Sep 2009
Jul 31st, 2010
0
Re: I really need good search script
i think this code help you, it fetch data from database
<?php
$q = 'select * from table_name';
$r = mysql_query($q);
?>
<table>

<tr>
<th>Name</th>
</tr>

<?php
while($row=mysql_fetch_object($r)){
echo "<tr><td><b>$row->name</td>
?>
Reputation Points: 11
Solved Threads: 1
Light Poster
manzarr is offline Offline
39 posts
since Jul 2010
Jul 31st, 2010
0
Re: I really need good search script
Quote ...
Thanks guys, i really appreciate your contributions, but does anyone know how i can get a full working bookstore script example so i can learn from...
If this is your problem, I'd bet you need to learn to make algorithms and plan things out before coding them.

Basic programming process:

1: Figure out exactly what your program needs to do. As detailed as possible. (VERY IMPORTANT)
2: Figure out how you can do that. Make a set of steps(algorithm) for your program to follow. (VERY IMPORTANT)
3: Code it
4: Test/debug
Last edited by Lsmjudoka; Jul 31st, 2010 at 9:22 pm.
Reputation Points: 10
Solved Threads: 9
Junior Poster in Training
Lsmjudoka is offline Offline
72 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Appending in sql
Next Thread in PHP Forum Timeline: Storing formatted text, not in HTML?!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC