Re: [PHP-DB] MySQL connects to localhost via socket reguardless

2005-04-10 Thread Josip Dzolonga
ome debugging : $connection = mysql_connect(...) or die(mysql_error()); What do you get ? -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com

Re: [PHP-DB] That crazy IF command!

2005-04-03 Thread Josip Dzolonga
t found'; Regular Expressions are always a better and more elegant solution so take a look at www.php.net/preg These were my 0,02$ -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] supporting multiple databases...

2005-01-30 Thread Josip Dzolonga
t/dbx and here http://pear.php.net/package/DB . -- Josip Dzolonga, dzolonga at mt dot net dot mk -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Hyphens and MySQL

2005-01-28 Thread Josip Dzolonga
On Fri, 2005-01-28 at 14:21 +, Mark Benson wrote: > Is there an easy way to search and replace/remove characters in a string in > PHP? www.php.net/str_replace , www.php.net/preg_replace . You can strip out the - characters with str_replace("-", "", $string); -- J

php-db@lists.php.net

2005-01-26 Thread Josip Dzolonga
t_password"]) . "' LIMIT 1"; $result = mysql_query($sql, $dbHandle); if(mysql_num_rows($result)!=0) /* Logged on */ else /* Invalid Username/Password */ There're lots of tutorials out there, google's your friend. P.S. This is my first message on this maillist so I