Q: MySQL
#1

Hi, I got a question regarding MySQL, I am pretty new on this.

How can I check if a field is NULL? And how can I read an integer value from a field correctly?

I have something like this in my script

Code:
PlayerData[extraid][pExam] = cache_get_field_int(0, "Exam");

if(!PlayerData[playerid][pExam]) StartExam(playerid);
Although the pExam field value is 1, it still starts the exam.
Reply


Messages In This Thread
Q: MySQL - by Uberanwar - 25.06.2018, 20:58
Re: Q: MySQL - by Calisthenics - 25.06.2018, 21:32
Re: Q: MySQL - by Uberanwar - 25.06.2018, 23:25
Re: Q: MySQL - by div - 26.06.2018, 03:05
Re: Q: MySQL - by Sew_Sumi - 26.06.2018, 05:18
Re: Q: MySQL - by Calisthenics - 26.06.2018, 07:04
Re: Q: MySQL - by GTLS - 26.06.2018, 08:19
Re: Q: MySQL - by Uberanwar - 06.07.2018, 06:58
Re: Q: MySQL - by Calisthenics - 06.07.2018, 07:10
Re: Q: MySQL - by Uberanwar - 06.07.2018, 07:29

Forum Jump:


Users browsing this thread: 2 Guest(s)