I have the following code from the database search tutorial and I seem to be getting empty arrays from it - Yet I can't see why!?
Any help would be great!
Also, you should really organise this code better, the function should be in a separate file and the processing code for the form should be at the top.
well in the example video it splits the input placing them in an array starting at 0 and lists what it has placed where. My example only ever has 0 in its array and does not list what it is that it has found.
Seems the $term variable is found but some how it is getting lost in the explode part.
Is that the entire code, the only thing I can think of is that you are not connected to the database which would make mysql_real_escape_string return false and not the escaped string.