MySQL issue
#2

First Errors came, because you already had those columns in your DB but you still tried to add them.

Second errors came because Query is set to give output even if there are no houses in table.

add,
PHP код:
 if(cache_num_rows()) 
before loading to make sure it loads only if rows are there else, not.

Also, Rows start from 0 index and your for loop in Loading houses starts from 1.

PHP код:
 for(new id 1id cache_num_rows(); id++) 
Set it to,
PHP код:
 for(new id 0id cache_num_rows(); id++) 
Reply


Messages In This Thread
MySQL issue - by Scofield11 - 30.05.2018, 08:35
Re: MySQL issue - by GTLS - 30.05.2018, 09:19
Re: MySQL issue - by Scofield11 - 30.05.2018, 09:54
Re: MySQL issue - by GTLS - 30.05.2018, 10:35
Re: MySQL issue - by Scofield11 - 31.05.2018, 01:05
Re: MySQL issue - by GTLS - 31.05.2018, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)