Re: [PHP] Row colors

2001-04-08 Thread Manuel Lemos
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

Re: [PHP] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread Yo Bro
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

Re: [PHP] Row colors

2001-04-08 Thread Harshdeep S Jawanda
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

Re: [PHP] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread David Robley
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

[PHP] @ at the begining

2001-04-08 Thread Fernando Buitrago
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]

[PHP] apostrophe checks

2001-04-08 Thread Wade Halsey
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

Re: [PHP] This loop is screwed up totally. Why o why o why....

2001-04-08 Thread Philip Olson
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

Re: [PHP] how do i...?

2001-04-08 Thread elias
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

Re: [PHP] @ at the begining

2001-04-08 Thread elias
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

Re: [PHP] mystery line

2001-04-08 Thread Stuart J. Browne
"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

[PHP] php search xml-file

2001-04-08 Thread Jan Grafström
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";

Re: [PHP] Redirect

2001-04-08 Thread elias
$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

Re: [PHP] @ at the begining

2001-04-08 Thread Mukul Sabharwal
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 ___

Re: [PHP] php search xml-file

2001-04-08 Thread elias
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

Re: [PHP] Validate forms into PHP file

2001-04-08 Thread elias
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

<    1   2