On 7/10/2013 8:30 AM, Karl-Arne Gjersøyen wrote:
I am almost ready with my learning project in PHP/MySQL.
I can register new product in stock.
Add and increase the number and weight.
I can move products between different storehouses
I can also transfer products from store and onto a "truck docume
Jason Bennett wrote:
I just installed a new MYSQL version 4.1 (from 4.0) and now none of my
PHP scripts work anymore. They are all complaining about attempting to
login as root. Normally, I referance a class like:
Not a MySQL user, but don't you have to change drivers between 4.0 and
4.1 - the s
> Why you ppl. do this:
> if ($condition) {
> file://action 1
> file://action 2
> file://action 3
>
> }
Because they have been saved.
> instead of this:
> if ($condition)
> {
> file://action 1
> file://action 2
> file://action 3
> }
Because they are damned to h
You wrote:
> additionally I also tend to always provide an alternative, especially
if dealing
> with nested ifs or loops, even if just a comment... call it habit
(from where I
> don't know).
>
> if($condition){
> do this
> }else{
> # oops, $condition didn't exist
> }
>
> saves a hell of alot of t
Why you ppl. do this:
if ($condition) {
//action 1
//action 2
//action 3
}
instead of this:
if ($condition)
{
//action 1
//action 2
//action 3
}
with the '}' you'll see directly the new code block that belongs to the IF
statment.
anyway...it's just a style aft
No, no, I indent my code normally, just not after the $fileArray[$i]\n";
}
}
?>
Not indenting after the wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think it's impossible to read/understand my own scripts if i don't do
it.
>
> Do:
>
>if ($submit) {
> echo "Coun
print "
bye
";
}
> -Original Message-
> From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Hmmm?
>
>
> I think it's impossible to read/understand my own
I think it's impossible to read/understand my own scripts if i don't do it.
Do:
";
for ($ii = '1'; $ii <= '32' $ii++) {
echo $ii." ";
}
}
echo "All done!";
?>
instead of:
";
for ($ii = '1'; $ii <= '32' $ii++) {
echo $ii." ";
}
}
echo "All done!";
?>
Best Regards
Fredrik A. T
Simply indent formatting for readability. I personally don't indent after
the wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Whenever i get a php script off a website why is it that most of the main
parts in the script have a space from the left border. eg
-lk6-
http://ww
It's called identing.
It's just there to make the script more readable. That's common to almost
all programming languages.
Some programmers doesn't ident they code anyhow.
Basically you increase the ident whenever you enter in a deeper code block.
"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
10 matches
Mail list logo