26.06.2015, 11:24
"Loop through all the rows that are found" 'LIMIT 1'.. You have a loop for 0 or 1 rows.
I'd recommend switching your statements. The conditional should be in the SQL: select * from `aka` where ip='%s' OR `username` = '%s'
You will have to fill the fields though. After this, you can just loop through all rows
I'd recommend switching your statements. The conditional should be in the SQL: select * from `aka` where ip='%s' OR `username` = '%s'
You will have to fill the fields though. After this, you can just loop through all rows