RE: [PHP-DB] A Simple Question

2002-07-10 Thread Beau Lebens
then on link.php you'd have the array $array[] (with globals) or $_GET['array'][] cool Beau -Original Message- From: Adam Royle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 10 July 2002 9:05 PM To: Beau Lebens; [EMAIL PROTECTED] Subject: RE: [PHP-DB] A Simple Question

RE: [PHP-DB] A Simple Question

2002-07-10 Thread Adam Royle
Just a correction you can use arrays with querystrings page.php?var1[]=first&var1[]=second&var1[]=third $var1 Array ( [0] => first [1] => second [2] => third ) OR page.php?var1[]=first&var2[2]=second&var2[]=third $var 1 Array ( [0] => first ) $var2 Array ( [2] =

Re: [PHP-DB] A Simple Question

2002-07-09 Thread Adam Alkins
> 4. Be careful with the $_GET[] array that Tony mentions, it is only > available on more recent versions of PHP, before that it was $HTTP_GET_VARS > and a lot of people had been using just plain $var1 or whatever, assuming > that "register_globals" would always be ON in the php.ini file (which al

RE: [PHP-DB] A Simple Question

2002-07-09 Thread Beau Lebens
riginal Message- // From: Tony [mailto:[EMAIL PROTECTED]] // Sent: Wednesday, 10 July 2002 7:42 AM // To: Manuel; [EMAIL PROTECTED] // Subject: Re: [PHP-DB] A Simple Question // // // Suppose you are using PHP. // A link like this: // // http://yourdomain.com/yourpage.php?var1=value1&var2=val

Re: [PHP-DB] A Simple Question

2002-07-09 Thread Tony
Suppose you are using PHP. A link like this: http://yourdomain.com/yourpage.php?var1=value1&var2=value2&var3=value3 will do the trick. And in the page that receives this link (yourpage.php that is), use $_GET[] to get the value: $var1 = $_GET["var1"]; $var2 = $_GET["var2"]; $var3 = $_GET["var3"

[PHP-DB] A Simple Question

2002-07-09 Thread Manuel
I recently discovered that you can pass variables through hyperlinks. (I didn't know this could be done) This will be very helpful for the project I'm working on but I cannot find any information on this subject. Does anybody know where I can find information on the syntax and limitations of t

Re: [PHP-DB] a simple question

2001-07-09 Thread Frank M. Kromann
Hi Brad, Your parameter is named $title and you are converting a variable called $input to an array. You could catch this type of errors if you change the setting for error_reportiong in php.ini. - Frank > can somebody help me with the following code: > > > function multi_word($title) { >

[PHP-DB] a simple question

2001-07-09 Thread Brad Lipovsky
can somebody help me with the following code: function multi_word($title) { $array = explode (" ", $input); $number = count ($array); if ($number > 1) { return true; } else{ return false; } } if ($category) { $Query = "SELECT * from $TableName WHERE ((category)=$category)";