PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi guys, I'm having a little trouble searching through tables that have a column labelled 'isbn', with values such as "1291849202" or "817263892X". The column is set to varchar(10), please let me know if you have any ideas. My code looks like this:
$query = "e;SELECT * FROM books, course WHERE "e;.$searchtype."e; like '%"e;.$searchterm."e;%' AND books.isbn = course.isbn"e;;
var_export($query);
$query_result = mysql_query ($query) or die(mysql_error());
checking the validity of the returns from the database functions.
Last edited by feyd on Tue Mar 08, 2005 5:07 pm, edited 1 time in total.