php-general | 2003022
Date: 02/26/03
- Next message: Anthony Ritter: "[PHP] newbie: installing gd in php4"
- Previous message: Ernest E Vogelsinger: "Re: [PHP] WebTV vs PHP"
- In reply to: Luis A: "Re: [PHP] niklasRe: [PHP] mysql trouble"
- Next in thread: Jason Wong: "Re: [PHP] niklasRe: [PHP] mysql trouble"
- Reply: Jason Wong: "Re: [PHP] niklasRe: [PHP] mysql trouble"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dude... honestly, lay off the coffee and learn to type.
---John Holmes...
----- Original Message -----
From: "Luis A" <webmaster <email protected>>
To: <php-general <email protected>>
Sent: Wednesday, February 26, 2003 9:24 AM
Subject: Re: [PHP] niklasRe: [PHP] mysql trouble
oh IN GONNA TRY NOW
thanks
i scream againg if present truble >)
----- Original Message -----
From: "Niklas Lampén" <niklas.lists <email protected>>
To: "Php-General" <php-general <email protected>>
Sent: Wednesday, February 26, 2003 9:13 AM
Subject: RE: [PHP] to holmes Re: [PHP] mysql trouble
> No, he doesn't mean that.
>
> You are doing:
> $String = "text " + "more text";
> while you should be doing:
> $String = "text " . "more text";
>
>
> Niklas
>
> -----Original Message-----
> From: Luis A [mailto:webmaster <email protected>]
> Sent: 26. helmikuuta 2003 16:09
> To: php-general <email protected>
> Subject: [PHP] to holmes Re: [PHP] mysql trouble
>
>
> you mean i do not need to put the pus on the end of the function
>
> (+) i dont need to put there that?
>
>
> ----- Original Message -----
> From: "John W. Holmes" <holmes072000 <email protected>>
> To: "'Richard Whitney'" <rw <email protected>>; "'Luis A'"
> <webmaster <email protected>>
> Cc: <php-general <email protected>>
> Sent: Tuesday, February 25, 2003 8:21 PM
> Subject: RE: [PHP] mysql trouble
>
>
> > > ### <?php
> > > ### // process form
> > > ### $link = mysql_connect("localhost", "root");
> > > you need to have the password as the third argument
> > > $link = mysql_connect("localhost", "root", "password");
> > >
> > > Also, why is it in a variable?
> > > Just make it:
> > > mysql_connect("localhost", "root", "password");
> >
> > Sometime there are users that do not have a password. Every parameter
> > to
> > mysql_connect() is optional, by the way.
> >
> > Also, you want to assign the result of mysql_connect() to a variable
> > so you can tell the connections apart. If you only have one connection
> > per script, then it's not a big deal. But, if you connect to several
> > databases, then you need that result to tell them apart when you do
> > queries later so PHP knows what connection to send your query through.
> >
> > > ### mysql_select_db("mydb",$db);
> > > ### $sql = "INSERT INTO agenda (nombre, direccion, telefono, email)
> > > "
> > +
> >
> > Problem is the plus (+) sign at the end of this line.
> >
> > ---John W. Holmes...
> >
> > PHP Architect - A monthly magazine for PHP Professionals. Get your
> > copy today. http://www.phparch.com/
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> ###########################################
> This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For
> more information, connect to http://www.F-Secure.com/
>
> ###########################################
> This message has been scanned by F-Secure Anti-Virus for Internet Mail.
> For more information, connect to http://www.F-Secure.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Anthony Ritter: "[PHP] newbie: installing gd in php4"
- Previous message: Ernest E Vogelsinger: "Re: [PHP] WebTV vs PHP"
- In reply to: Luis A: "Re: [PHP] niklasRe: [PHP] mysql trouble"
- Next in thread: Jason Wong: "Re: [PHP] niklasRe: [PHP] mysql trouble"
- Reply: Jason Wong: "Re: [PHP] niklasRe: [PHP] mysql trouble"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

