Trabajo editando tag's de MP3, pruebo el sistema en linux (Centos 5.5), y me sale un error extraño:
Cita:
pareciera que he declarado mal las variables asi que les dejo algo del codigo:Fatal error: Call to undefined function mysql_connect() in /var/www/html/getid3/demos/demo.mysql.php on line 33
Código PHP:
$getid3_demo_mysql_encoding = 'ISO-8859-1';
$getid3_demo_mysql_md5_data = false; // All data hashes are by far the slowest part of scanning
$getid3_demo_mysql_md5_file = false;
define('GETID3_DB_HOST', 'localhost');
define('GETID3_DB_USER', 'root');
define('GETID3_DB_PASS', '');
define('GETID3_DB_DB', 'getid3');
define('GETID3_DB_TABLE', 'files');
// CREATE DATABASE `getid3`;
ob_start();
if (!mysql_connect(GETID3_DB_HOST, GETID3_DB_USER, GETID3_DB_PASS)) { //linea 33
$errormessage = ob_get_contents();
ob_end_clean();
die('Could not connect to MySQL host: <blockquote style="background-color: #FF9933; padding: 10px;">'.mysql_error().'</blockquote>');
}
Gracias de antemano por su ayuda