undefined function means you don't have mysql support compiled in... prefixing any function with @ suppresses any error messages... On Thu, 17 Jul 2003, Martin wrote: > I'm trying to use PHP 4.2.3 in a database application. > > <?php > print "Connected?"; > $dbcnx = mysql_connect("localhost","root","asda"); > if (!$dbcnx) { > echo("<p>Unable to connect to database server.</p>"); > exit(); > }else { > print "Connected!"; > } > ?> > > Gives > Connected? > Fatal error: Call to undefined function: mysql_connect() in > /var/www/html/irm/test.php on line 3 > > While changing the line to > $dbcnx = @mysql_connect("localhost","root","asda"); > is in the MySQL example > > simply prints > Connected? > > and nothing more happens. My app isn't using the database (later on). > Never had this problem on 4.0.x which makes me a bit confused. > > What am i doing wrong? > > /M. > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php