Array and MySQL
#5

If i use:
Quote:

stock GetJobData(field[])
{

new tmp[MAX_QUERY];
new result[MAX_QUERY];
new array[50];

format(tmp, sizeof(tmp), "SELECT %s FROM %s", field, JOB_TABLE);
MySQL_query(tmp);
MySQL_result();
while(MySQL_fetch(result))
{
print(result);
}
}

i get
Quote:

lol
muh
rofl

No seperator or something like that.

//Edit

And now it must be:

row[0] = lol
row[1] = muh
row[2] = rofl
row[n] = n
Reply


Messages In This Thread
Array and MySQL - by KingArthur - 05.07.2009, 18:40
Re: Array and MySQL - by Nero_3D - 05.07.2009, 18:58
Re: Array and MySQL - by KingArthur - 05.07.2009, 19:07
Re: Array and MySQL - by Nero_3D - 05.07.2009, 19:42
Re: Array and MySQL - by KingArthur - 05.07.2009, 19:48
Re: Array and MySQL - by Nero_3D - 05.07.2009, 20:10
Re: Array and MySQL - by KingArthur - 05.07.2009, 20:24
Re: Array and MySQL - by Nero_3D - 05.07.2009, 20:52
Re: Array and MySQL - by KingArthur - 05.07.2009, 21:12
Re: Array and MySQL - by Nero_3D - 06.07.2009, 12:20

Forum Jump:


Users browsing this thread: 3 Guest(s)