Re: [PHP-DB] connect to db with php?

2003-06-22 Thread David
1. Correct on all points, I just wasn't aware of it. Now connecting ok. Doing everything locally, at least for now. 2. It seems I can use "", "localhost" or "127.0.0.1" with equal success. 3. Yes, I did, and received similar and varied help, all of which helped me to understand what's going on

[PHP-DB] mysql_bind question

2003-06-22 Thread nabil
Any one give me an idea , I have a procedure in Microsoft SQL server return : select 0 as err, @cardPrice as cardPrice, @newBalance as newBalance, @exp as expirationDate I want to print out the return vars as @cardPrice ,,, please note that I got the $row[0] as 0 but not the $row[1] or

[PHP-DB] Re PHP, MySql

2003-06-22 Thread Peter Goggin
I have a web site interfacing to a mysql databases which eventually may have a large number of users. Should I use persistent coneconnection mode or let each screen make and drop a connection ? Where will I find guide lines on this? Is this the correct list for this question? Regards Peter Gog

Re: [PHP-DB] Re PHP, MySql

2003-06-22 Thread Becoming Digital
Check out the below: http://us4.php.net/manual/en/features.persistent-connections.php http://us4.php.net/manual/en/function.mysql-pconnect.php Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Peter Goggin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

Re: [PHP-DB] Time input formatting in PHP-12 hour clock

2003-06-22 Thread David Shugarts
With help from the List, I have had some success in answering my question about formatting 12-hr vs. 24-hr time and I thought I would share these two examples of what is working for me. The first example keeps the user from inputting invalid data. In the second, I note that an error yields a "-1" b