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!!!
willie-abei
0
Newbie Poster
Recommended Answers
Jump to PostIf 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 :)
Jump to Postuse like clause in query . retrive all the information frm database which is related to searchcontent. there is no need to serch image.
$sql = mysql_query("SELECT * FROM tablename WHERE author_name LIKE 'searchcontent%'"); while ($row = mysql_fetch_row($sql)) { echo "$row[0] $row[1] $row[2] <br />"; }
All 6 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
muralibobby2015
17
Posting Pro
willie-abei
0
Newbie Poster
muralibobby2015
17
Posting Pro
manzarr
1
Light Poster
Lsmjudoka
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.