Hello Mike,
On 08-Apr-01 21:08:17, you wrote:
>I can change the column sof a table with the following code but how do I
>change the row colors instead.With the columns I have "i" to manipulate but
>not with rows.
>while ($row = mysql_fetch_row($result))
>{{
> echo "\n";
> for ($i
Still no luck.
There should be no reason why this doesn't work. I tried it the way you
tested it, and it doesn't really demonstrate it the same as if using the
(file_exists command.
When using looking for the images it appears the if statement is
interferring with the loop. This is a nightmare. F
Hi,
Just make the modification listed below:
while ($row = mysql_fetch_row($result))
{
$cell_color = ++$i % 2 ? "#C0C0C0" : "#CC";
echo "\n";
for ($i =1;$i$row[$i]";
}
}
Mike P wrote:
> I can change the column sof a table with the following code but how do I
> change the row colors
On Mon, 9 Apr 2001 15:12, Yo Bro wrote:
> Still no luck.
> There should be no reason why this doesn't work. I tried it the way you
> tested it, and it doesn't really demonstrate it the same as if using
> the (file_exists command.
>
> When using looking for the images it appears the if statement i
Hi.
Please, what is the @ caracter in this case?
@$var.
What meens?
thanks.
Fer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi
Ive got a textarea control on a form where a user will enter info, i want to enter
this info into an interbase db,ive limited the space to 200 characters in the text
area but need to now eliminate any apostrophes and other bad characters, anyone have a
function?
TIA
Wade
What does this do?
> $specs = $myrow['features'];
print $specs;
> $features = explode('|',$specs); //What the feild is delimited by '|'
print_r($features);
Does it include the missing last value within the $features array? Does
$specs look okay?
Regards,
Philip
--
PHP General Mailing
Nice question!
You can use Eval() as:
$clsname = "myclass";
eval("\$inst = new $myclass;");
now $inst is an instance of myclass.
-elias
http://www.kameelah.org/eassoft
"rswfire" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $var = "thisclass";
>
> $myclass
Hey,
the '@' is an error control operator.
search php manual for this 'Error Control Operators'
it allows you to trap error and warning messages.
-elias
http://www.kameelah.org/eassoft
""Fernando Buitrago"" <[EMAIL PROTECTED]> wrote in message
9arl15$8al$[EMAIL PROTECTED]">news:9arl15$8al$[EM
"David Robley" <[EMAIL PROTECTED]> wrote in message
01040614091104.10051@www">news:01040614091104.10051@www...
> On Fri, 6 Apr 2001 13:50, Martin Skjöldebrand wrote:
> > Tyler Longren wrote:
> > > In line 3, you don't need your tags again.
> > > This is how you have it:
> > > print "TID detail
Hi!
I have this xml:
car
ford
3600
-
and this php:
$filename = "list.xml";
$fp = fopen($filename, "r");
$string = fread($fp, filesize($filename));
$string = strip_tags($string);
$refined_string = explode(" ", $string);
if (in_array($needle." ", $refined_string)) {
print "found";
$newloc = "http://www.kameelah.org/eassoft";
Header("Location: $newloc");
die();
-elias
http://www.kameelah.org/eassoft
""Fernando Buitrago"" <[EMAIL PROTECTED]> wrote in message
9aq0a0$jck$[EMAIL PROTECTED]">news:9aq0a0$jck$[EMAIL PROTECTED]...
> Hi.
>
> Tell me te instruction to redirect (link
Hey,
@ simply means to suppress warnings, or errors!
@functioncall(); would simply not display an error or
warning, incase it caused one or more.
=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr
___
try learning about: XML parser functions
-elias
http://www.kameelah.org/eassoft
"Jan Grafström" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> I have this xml:
>
> car
> ford
> 3600
>
>
> -
> and this php:
> $filename = "list.xml";
> $fp
You can use JavaScript to validate the fields in a form too, would be
easier.
As for PHP it's too easy, you can check fields values against whatever
condition.
ie: if (length($password) < 3) die("password too short");
-elias
http://www.kameelah.org/eassoft
""Fernando Buitrago"" <[EMAIL PROTECTED
101 - 115 of 115 matches
Mail list logo