Re: [PHP] query strings and other delights

2011-01-13 Thread Marc Guay
Give parse_str() a go. http://ca.php.net/manual/en/function.parse-str.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] query strings and other delights

2011-01-13 Thread kbailey
I have circumstances which cause me to investigate get strings and such, and wish to start a thread discussing such matters. This relates to a cluster of functions iin php such as public array HttpQueryString::toArray ( void ) and it's bretherin and sisterin and otherin. Being new to php,

[PHP] query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
was wondering if this would work or do i need different code: 12)){ $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable ORDER BY StartDate DESC"; } else { $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable WHERE StartingMonth='{$_GE

Re: [PHP] query strings, global variables

2004-01-21 Thread Matt Matijevich
while ($row = mysql_fetch_array($selection)){ if (section == $sectionName){ echo "" . $row["sectionName"] . ""; }else{ echo $row["sectionName"]; } thx Not sure if I understand you 100% but I think you could just either check the $_GET or $_REQUEST array. Something like this: i

[PHP] query strings, global variables

2004-01-21 Thread mayo
I'm a cold fusion refugee and am having incredible problems with something that I think is relatively easy -- so I must be missing something basic. I would like to pull info from a query string and use it inside a database call I have a navigation bar that includes data pulled from a database. Si

Re: [PHP] query strings

2003-03-04 Thread Sunfire
query that gets the vars from modify button in addtolist.php hope this helps clear things up... - Original Message - From: "Jason Paschal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 03, 2003 8:57 PM Subject: Re: [PHP] query strings > i

Re: [PHP] query strings(still broken)

2003-03-03 Thread Leif K-Brooks
Do you mind giving (some of) your code? Sunfire wrote: still broke - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 03, 2003 7:18 PM Subject: Re: [PHP]

Re: [PHP] query strings(still broken)

2003-03-03 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 // UNTESTED $tArr = explode('&',$QUERY_STRING); foreach ( $tArr as $tVar ) { $a = explode('=',$tVar); ${rawurldecode($a[0])} = rawurldecode($a[1]); } ??? On Monday 03 March 2003 04:17 pm, Sunfire wrote: > tried everything except ses

Re: [PHP] query strings(still broken)

2003-03-03 Thread Leif K-Brooks
Are you trying to look at the query string itself? If so, spaces are invalid in URLs, so they are urlencoded. Try using $_GET/$HTTP_GET_VARS, or urldecode() it if you must. Sunfire wrote: tried everything except session vars and the query string is still broken... no matter what i do for some

[PHP] query strings(still broken)

2003-03-03 Thread Sunfire
tried everything except session vars and the query string is still broken... no matter what i do for some reason the browser wants to always put %20 in the middle of my words (i.e. hello world as one var will come out as hello%20world) any other ideas --- Outgoing mail is certified Virus Free.

[PHP] query strings

2003-03-03 Thread Sunfire
i have a might i say a very very large/long query string i have to run to pass variable values from one page to another with a button... the button works and the query string are passing variables right but at the end of the query string (it passes like 21 variable values) the last variable content