[PHP-DB] phppgAdmin connection prodblem
Hello to everyone, I have a problem connecting to database with the phppgadmin i have put in the pg_hda.conf the line local all trust which i think gives access to all the users in the local system to all the databases but i cannot connect with phppgadmin with any conf i have tried. Thx in advance -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: option selected
Hope it helps a bit Mike Karthauser wrote: I'm using the contents of a table to print an option list in another form to allow me to cross reference the tables in my data. ? $result = mysql_query(SELECT * FROM category,$db); printf(select name=\catcode\\n); while ($myrow = mysql_fetch_array($result)) { if ($valuefromdatabase == %s ) { printf(option value=\%s\ selected%s/option\n, $myrow[catcode], $myrow[title]); } else { the above without selected } } printf(/select\n); ? Once i have selected from the drop box the variable is submitted back to my table and saved. When re-edit the data - the record already has a value for catcode which i want to reflect within the drop box - in html it would be the addition of selected=selected within the option. Are there any recommended methods of doing this? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: [Newbie] Can't get MySQL working with PHP 4 under Apache 2
I had the same problem until i found out that the distribution itself did not installed the required package php-mysql.rpm. Find it in one of the cd's and install it. Matt Symes wrote: Hello, I've got PHP 4 working under Apache 2 on Linux Redhat 8 using the packages that came with the Redhat 8 installation. I can't get PHP to work with MySQL however. myphpadmin says that it cannot load the MySQL extension. When I check my PHP settings with phpinfo I see that it was compiled with the '--with-mysql=shared,/usr' option. I've tried uncommenting the extension=mysql.so line in php.ini but that doesn't work. Any ideas. I'm quite new to this game (although an IT professional in other areas) so it's quite possible I'm missing something trivial. Thanks in anticipation, - Matt Symes -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] default-character-set problem
You have to put the same under [server] Nikos wrote: Hello there... I have a problem with sort order. I use greek and english characters. The manual says to put the following lines to my.cnf: [client] character-sets-dir=/usr/local/mysql/share/mysql/charsets default-character-set=greek i restart the demon but the problem still exist. I have 3.23.49 ver on Red Hat Linux 7.2 Thanx list -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Free shopping cart
Tony S. Wu wrote: I need to write a shopping cart for my friend's website. I thought modifying a free one for my need would be easier. Sorry for asking question like this. But I've done the search on google and all I could find weren't free. Can anyone provide me some links? Thanks a lot. Tony S. Wu [EMAIL PROTECTED] Nope, this world ain't perfect. But at least I know it's not because of me. A good solution might be www.theexchangeproject.com or www.oscommerce.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php