30.05.2018, 09:19
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,
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.
Set it to,
Second errors came because Query is set to give output even if there are no houses in table.
add,
PHP код:
if(cache_num_rows())
Also, Rows start from 0 index and your for loop in Loading houses starts from 1.
PHP код:
for(new id = 1; id < cache_num_rows(); id++)
PHP код:
for(new id = 0; id < cache_num_rows(); id++)