You can use:
if ( ($var == 1) or ($var == 2) or ($var == 3))
{
...
}
- Original Message -
From: "Dave Carrera" <[EMAIL PROTECTED]>
To: "php List" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 12:40 PM
Subject: [PHP-DB] How do I add multiple var to a if clause ?
> Hi
I think I forgot something usefull...
- Original Message -
From: "Beau Lebens" <[EMAIL PROTECTED]>
To: "PHP DB (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 3:59 AM
Subject: [PHP-DB] SELECT where something exists but something else does not
> Hey guys,
> I am a lit
Hi!
I think I have solved your problem...
I have attached an sql file to create the sample DB I created for my test
and a PHP file for you to run to see how I have implemented it.
First create the tables with the .sql file an then execute the .php file
from your browser.
Hope these help.
---
I forgot somthing
- Original Message -
From: "George Lioumis" <[EMAIL PROTECTED]>
To: "chris" <[EMAIL PROTECTED]>; "PHP Mailing List"
<[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 3:37 PM
Subject: [PHP-DB] Re: [PHP-WIN] why do
The first time you enter the page submit button is not pressed. That's why
it gives you this error.
Try the following:
- Original Message -
From: "chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 3:38 PM
Subject: [PHP-WIN] why doesnt this work?
> i get
Thanx!!
It worked perfectly
George
- Original Message -
From: "David Sullivan" <[EMAIL PROTECTED]>
To: "George Lioumis" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 11:51 AM
Subject: Re: [PHP-DB] Help in tokeniz
Good day to all.
I tried the following code from PHP's manual
if (isset($submit))
{
if ($submit == "Save")
{
echo "$im_file";
$tok = strtok($im_file, "\\");
while ($tok)
{
echo "$tok";
$tok = strtok ("\\");
}
}
}
I have the string $im_file ="C:image.jpg" and I want to
- Original Message -
From: George Lioumis
To: B.J.Rumsey
Sent: Wednesday, January 30, 2002 11:47 AM
Subject: Re: [PHP-DB] Drop down list
Try the following:
";
$res = mysql_query($get_list) or die (mysql_error());
while ($row = mysql_fetch_array($res))
{
$artid= $row["
Hello everyone!
I have the following table:
|name
|--
|n_id
|n_name
|ns_id
---
I do a select: "SELECT n_name from name" and I want to put all selected "n_name"
values into an array (say it names)
How can this be done??
Thanx in advance.
Hello everyone!
In my mySQL DB I have the tables:
| po_product | and | products|
|--| | -|
| po_id | | product_id |
| product_id | | product_name |
|--
Try the following:
I believe that this should work (I haven't tried it though!!!)
May the force be with you!!!
George
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 3:50 PM
Subject: [PHP-DB] How to querry two db in a single
TML?
> Try...
>
>
>
> Then in your page have a php tag that checks for the presence of $Find (in
> your case), e.g.
>
> if ($Find) {
> sql = (SELECT * FROM table WHERE $criteria = "value");
> then the rest...
> }
>
> -torrent
>
> "Geo
Good day to all!
Consider the following code:
I want to get the text that the user writes into the text field into a php variable to
use it in the same page.
I want to use this text as a criteria to search for an entry in my mySQL DB using a
LIKE statement in the select.
Does anyone kno
I think that you MUST retype the whole URL.
George.
- Original Message -
From: "J-E-N" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 20, 2001 2:22 PM
Subject: [PHP-DB] https
hello,
how can i switch from http to https without typing the whole url?
thanks
--
Il faut tu ecrire:
if ($colonne["LIV_TYPE_EVT"] == 21)
{
$couleur = "yellow";
}
else if ($colonne["LIV_TYPE_EVT"] == 1)
{
$couleur = "009933";
}
else
{
$couleur = "FF";
}
Georges Lioumis.
Yes, but mySQL 4.0 is alpha Release and Apache 1.3.22 for Win32 is not as
stable as for Unix platforms
So, let's wit a bit more!
- Original Message -
From: "suraj" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 10:55 AM
Subject: [PHP-WIN] released
> Hel
main.php?sectionName=home&variable_2=value&...&variable_n=value
- Original Message -
From: "Tony Leach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 17, 2001 5:11 PM
Subject: [PHP-WIN] variables in URL
> How do I construct a URL to pass more than one variable t
17 matches
Mail list logo