lazypeterson Posted April 15, 2009 Share Posted April 15, 2009 // Build SQL Query $query = "select * from imageupload where description like \"%$trimmed%\" order by name"; // EDIT HERE and specify your table and field names for the SQL query What I'm trying to do is also search for $trimmed in the name field of my table in the database... I feel bad making a new topic for such a simple question, but I'm having trouble finding a solution. Thanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted April 15, 2009 Share Posted April 15, 2009 $query = "select * from imageupload where description like \"%$trimmed%\" OR name like \"%$trimmed%\" order by name"; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.