[PHP-DB] PostgreSQL connection

2003-08-14 Thread Joe Nilson Zegarra Galvez
Hi all, i have a question, i have a php file with all my class to connect into a postgresql db and i'm using the pg_connect in this form: pg_connect("192.168.1.100","","","",$dbase); but when i have 8 or 10 users inserting data the db response is very slow, is problem in the pg_connect?, all ppl

Re: [PHP-DB] mysql, finding the last record

2003-09-26 Thread Joe Nilson Zegarra Galvez
essy code but id prefer an elegant solution. > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --------- Joe Nilson Zegarra Galvez Sistemas Kola Real Telefax : 0051-54-256658 Movil: 0051-54-9603244

Re: [PHP-DB] figures question

2003-09-27 Thread Joe Nilson Zegarra Galvez
I think that you want to round the number, and yes, you can do it, How?, well, by example //Your Number from the DB $number=10.259; //Apply the round function to show only two decimals $new_number=round($number,2); //The result 10.26 echo $new_number; Regards Nilson El sáb, 27 de 09 de 20

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Joe Nilson Zegarra Galvez
; > >> > The manual says that mysql_connect() can be called without arguments. >> > That's >> > what I'm doing. >> > >> > What's wrong? >> > >> > Thanks, >> > Gabriel. >> > >> > -- >> > P