• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

unnull() php?

Joined
Dec 15, 2009
Messages
1,387
Reaction score
236
RaSjApL - unnull() php? - RaGEZONE Forums

I'm trying to fetch strings/data from a json api.
However, some of the fields shows up as 'null', my guess is that the characters that inside the field contains unicodes or alt codes which is unsupported by the script itself.
I decided to questions the original creators of the script.
The response was:

unnull(field(clanname))
[5:03:04 PM] XX: field = get_field('clanname');
[5:03:12 PM] XX: have_rows('clanname');
[5:03:29 PM] XX: while (have_rows('clanname')): the_row();

I was like stun...what the hell is unnull? Can someone explain?
 

Attachments

You must be registered for see attachments list
Last edited:
Banned
Banned
Joined
Dec 24, 2014
Messages
100
Reaction score
6
, Im wondering instead you use ' you need to use " example


[5:03:04 PM] XX: field = get_field("clanname");
[5:03:12 PM] XX: have_rows("clanname");
[5:03:29 PM] XX: while (have_rows("clanname")): the_row();


I was read this thing before when i make gamepanel for the game but should try it.
 
Last edited:
Banned
Banned
Joined
Dec 24, 2014
Messages
100
Reaction score
6
When you put this " beside of the code someone say this code null but you are doing right when i see it.It's really weird why you get that problem.
 
Ask me about Daoism
Loyal Member
Joined
Nov 6, 2010
Messages
1,560
Reaction score
393
Post some of your code.

I bet you that you're trying to fetch "Name" the wrong way (either from outside of the scope or outside of the array), seeing as Name would probably be username and usernames aren't empty.
 
Back
Top