Re: Connection class
| From: | jas | Date: | Sat, 26 Jan 2002 07:50:19 +0000 |
| Subject: | Re: Connection class | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16370@lists.php.net to get a copy of this message | ||
Well it was acutally so that I can create a content management system for my
employer. Another gentleman helped me with it and it is working great I
simply created a file *.php with all my connection commands then did a
require on the page(s) that needed to query the db to pull information about
what is currently inserted into different fields. My NEW problem has to do
with getting my INSERT statements to overwrite the distinctive fields when
storing updates etc. I am looking into how to accomplish this at the
moment. Sorry again for posting the same question a few times, it seems my
email editor choked. =) Thanks again.
Jas
"Rick Emery" <remery@excel.com> wrote in message
news:EAA093B474ABD311A71E00508B5FE08305C2D064@adntex03.us.excel.com...
> huh?????
>
> You open the connection once for the page and then you CAN make multiple
> queries to it from the same page. Why are you trying to create a class to
> do this (unless it's simply an intellectual exercise to create a class)?
>
>
> -----Original Message-----
> From: jas [mailto:jlgerfen@hotmail.com]
> Sent: Saturday, January 26, 2002 12:08 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Connection class
>
>
> Ok well I am in a little over my head with a connection class that I can
use
> over and over for multiple queries against a mysql db on one page. I have
> read a few tutorials on the subject of how to use class files but I still
> dont understand php enough to know how to make a connection class that
> simply allows me to connect to a mysql database once the page loads and
> keeps the connection to run multiple queries on the same page. HELP!!!
> Thanks again in advance...
> Jas
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net