Hey,
I created an SQL statement:
$sql = "SELECT image FROM table01 WHERE figureName like '$number.%' ORDER BY image";
an I think I'm having problems with the "like" of the WHERE clause.
The Number before the ".%", depending on what the user clicked before, could be 1 or 2. So $number.% could reprensent 1.2, 1.3, 1.4, 2.2, 2.3 etc.
For example, if Iclicked on Number 2, I want everything from the database that starts with 2, like 2.1, 2.2, 2.3 etc. But the it won't work. The statement seems logic to me, so does anybody see anything wrong in there?
Thanks