Re: [PHP] Error while calling a function--Thanks

2001-12-20 Thread J.F.Kishor
Hi pals, Thanks a lot for all the PHP pals , I have recoded my script an' now itz working fine. cheers an' regards, - JFK kishor Nilgiri Networks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] Error while calling a function

2001-12-18 Thread J.F.Kishor
Hello Sir, Thanks for spending time for my mail and thanks for you kind response, but sir though php is a server side scripting language it supports the following tag This is mentioned in the php manual, and I have done lot of scripts of same kind using above tags an' all of them

Re: [PHP] Error while calling a function

2001-12-18 Thread Fred
Steve is right on the money. Your function definitions are inside a conditional if statement which means that they may or may not be parsed. Your call to the function, on the other hand, is not within that same conditional if statement. That means your functions is getting called unconditionall

Re: [PHP] Error while calling a function

2001-12-18 Thread Jim Lucas
Try putting a closing "?>" php tag just before the final HTML. Jim - Original Message - From: "J.F.Kishor" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2001 5:26 AM Subject: [PHP] Error while calling a function > hi all, > > I have got a pr

Re: [PHP] Error while calling a function

2001-12-18 Thread Steve Cayford
I don't know all the details about how PHP compiles a program, but having your function definitions in an if-else statement that may not be executed looks suspicious to me. You've got if(!$Phone) { do something } else { function is_phone() { ...blah, blah...} } is_phone($Phone); If