Querky PHP

This is a discussion on "Querky PHP" within the PHP Forum section. This forum, and the thread "Querky PHP are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 9th, 2005, 22:03
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Querky PHP

For some reason the folowing code comes out with all varables being 'N'
Code: Select all
	$error = isset($array['error']) ? $array['error'] : '';
	$unitID = isset($array['unitID']) ? $array['unitID'] : 0;
	$map = isset($array['map']) ? $array['map'] : 'VIEW DISABLED';
	$data = isset($array['data']) ? $array['data'] : 'No Unit Selected';
	$enemylist = isset($array['enemylist']) ? $array['enemylist'] : '';
	$unitlist = isset($array['unitlist']) ? $array['unitlist'] : '';
Any help would be apricated
Reply With Quote

  #2 (permalink)  
Old Oct 9th, 2005, 22:10
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
fixed it, it was the way I was createing the array and passing it to the function, (wasn't actualy giveing it an array)

but why does isset cause an N in that function when its given a varable that isn't realy an array?
Reply With Quote
Reply

Tags
querky, php

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43