validating json data before output :( - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: Can we login yet?
Home Forum Chat Wiki Social AGN PS2 Stats
Notices
Go Back   PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 API Discussion

 
 
Thread Tools Search this Thread Display Modes
Old 2013-03-24, 02:36 AM   [Ignore Me] #1
SecretSquirrel
Private
 
validating json data before output :(


hey all I am curious what is the best way to validate data is present before outputting errors / empty data :| Every time I try to display 666 it breaks my table @_@ all the data is using a isset function any ideas? thanks!

atm I am just using

Code:
if (isset($row['name']['first']) && isset($row['character_id'])) {
							$character_id = $row["character_id"];
							$game_name    = $row["name"]["first"];
							echo "<td>{$character_id}'>{$game_name}</a></td>";

						}
SecretSquirrel is offline  
 
  PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 API Discussion

Bookmarks

Discord


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:27 AM.

Content © 2002-2013, PlanetSide-Universe.com, All rights reserved.
PlanetSide and the SOE logo are registered trademarks of Sony Online Entertainment Inc. © 2004 Sony Online Entertainment Inc. All rights reserved.
All other trademarks or tradenames are properties of their respective owners.
Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.