Ask a Question related to PHP Development, Design and Development.
-
Sandwick #1
Re: if statement always fails !!!
"The Script Smiths - PHP/PERL Developers" <mh2@isis.co.za> wrote in message news:<3efaa8fa$0$237@hades.is.co.za>...
That was it.> "Sandwick" <lgs@sarreid.com> wrote in message
> news:2cfb9c1d.0306251136.2beba16d@posting.google.c om...>> >
> > $length = strlen($n);
> > if ( $lenght <= 3 )
> > {
> Be careful, you actually have two different variables here!!
> Notice the spelling on the if (..), $lenght is spelt wrong.
> This causes PHP to create another variable, so its value will be undefined
> (probably empty, but in my experience I leanred _never_ to assume a default
> value given by a compiler/interpreter).
>
>
> Thanks,
> Mark
> ----------------------------------------------------------------------------
Sometimes you cannot see the forest for the trees !!!!
Thanks for the help
// Larry
Sandwick Guest
-
SQL like statement
Where am I doing wrong here? select company, womens from tblwshow where company LIKE '%things%' I know that there is a text "things" in some of... -
#39143 [NEW]: prepared statement with input parameters and db function fails
From: aspen dot olmsted at alliance dot biz Operating system: Windows XP SP2 PHP version: 5CVS-2006-10-13 (snap) PHP Bug Type: ... -
Help with an IF THEN statement
Hi, I want to write an if then statement that will take the first item I choose from a dynamic text field in my form and input it into the... -
update statement with DSN works, DSN-less fails
the following SQL statement works when executing via a DSN connection but fails when using the DSN-less method. sql statement: UPDATE... -
My if statement doesn't fit my needs
Hi all , I wrote something like below but it doesn't fit my needs. What i'd like would be: if the chown command succeeds it prints Rights...



Reply With Quote

