Re: [PHP] Quotes in querys

2009-01-14 Thread Robert Stankiewicz
I am trying to get the following to work: "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. Maybe try this : $q = 'Select Netid from Users where Netid = "' . $_SESSION[p

Re: [PHP] Create $var with some function

2009-01-22 Thread Robert Stankiewicz
function createvar($var) { ${$var} = 'foo'; global ${$var}; //or global $$var, i don't know it yet. } This should work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extract code from XML

2009-01-30 Thread Robert Stankiewicz
check this : http://nl3.php.net/manual/en/book.simplexml.php best regards Robert Angelo Zanetti : Hi all, I have the following snippet of XML: Code: HasPictures="true">

Re: [PHP] irrational behavior

2009-05-12 Thread Robert Stankiewicz
Maybe, because of this ? $category[$row['name']] = $row; . $cat = $category[$ii]['name']; //===this is line 36== best regards Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php