melvijin
May 11th, 2006, 11:57 AM
right now, im migrating to php5... i opened my script in php 4 and there's a message...
Fatal error: Call to undefined function mysql_connect() in D:\WEBSITES\steco\includes\konek.php on line 7
this is my konek.php
<?php
$dbname="stecodb";
$dbuser="root";
$dbpass="";
$dbhost="localhost";
$db=mysql_connect("$dbhost","$dbuser","$dbpass")
or die("Could not connect");
mysql_select_db("$dbname",$db)
or die ("Could not open db");
?>
can anyone tell me what's wrong with my connection? tnx.. rok on!!!
Fatal error: Call to undefined function mysql_connect() in D:\WEBSITES\steco\includes\konek.php on line 7
this is my konek.php
<?php
$dbname="stecodb";
$dbuser="root";
$dbpass="";
$dbhost="localhost";
$db=mysql_connect("$dbhost","$dbuser","$dbpass")
or die("Could not connect");
mysql_select_db("$dbname",$db)
or die ("Could not open db");
?>
can anyone tell me what's wrong with my connection? tnx.. rok on!!!