Retrieve multiple rows from database
#5

You should access House[] with the index 'houses'. I assume "ID" is auto-incremented in your database, which begins at 1, which means currently House[] will have no data for index 0.

pawn Код:
House[houses][HouseID]=id;

cache_get_value_name(houses, "HouseOwner", House[houses][HouseOwner], .max_Len = 48);
// ...
Reply


Messages In This Thread
Retrieve multiple rows from database - by JaskaranSingh - 02.03.2018, 18:29
Re: Retrieve multiple rows from database - by FaLLenGirL - 02.03.2018, 18:43
Re: Retrieve multiple rows from database - by JaskaranSingh - 03.03.2018, 18:40
Re: Retrieve multiple rows from database - by JaskaranSingh - 03.03.2018, 18:50
Re: Retrieve multiple rows from database - by Grim_ - 03.03.2018, 21:08
Re: Retrieve multiple rows from database - by eSPeZet - 03.03.2018, 21:18

Forum Jump:


Users browsing this thread: 2 Guest(s)