Miran
9-27-05, 04:23 PM
Ok, so my problem is following.
I'm trying to get data out of a mysql database but have an problem with it (more explanation after the code)
for ($letter=65 ; $letter<=90 ; $letter++) {
$query = "SELECT * FROM books WHERE Title >= \"".chr($letter)."\" AND Title < \"".chr($letter+1)."\" ORDER BY Ime ASC";
there is more of the code but i dont think it's relevant to my problem.
The problem is that this way of querying mysql database works excellent for all letters except letter Z. If there is any record in database he just ignores it, doesnt recognize it or whatever (tested with a Z letter record in the actual database).
The code works excellent on my localhost but after placing it on my account, cant get data startin with the letter Z out of the table
All help is most needed, thanks!
Miran
I'm trying to get data out of a mysql database but have an problem with it (more explanation after the code)
for ($letter=65 ; $letter<=90 ; $letter++) {
$query = "SELECT * FROM books WHERE Title >= \"".chr($letter)."\" AND Title < \"".chr($letter+1)."\" ORDER BY Ime ASC";
there is more of the code but i dont think it's relevant to my problem.
The problem is that this way of querying mysql database works excellent for all letters except letter Z. If there is any record in database he just ignores it, doesnt recognize it or whatever (tested with a Z letter record in the actual database).
The code works excellent on my localhost but after placing it on my account, cant get data startin with the letter Z out of the table
All help is most needed, thanks!
Miran