Hello all, I have serious problems...
this is my code:
<?php
<?php
if (!class_exists('gtk')) {
die('Please load the php-gtk2 module in your php.ini' . "\r\n");
}
class FrmLogin extends GtkWindow
{
.....
function login() {
mysql_connect("localhost","root","admin");
mysql_select_db("db_rental_vcd");
$query = mysql_query("select * from tbl_setting");
$result= mysql_fetch_array($query);
}
....
}
?>
I am running my application with this command:
php.exe -q rental_gtk_src/FrmMain.php
But, I get this error while running:
C:\php-gtk2>php.exe -q rental_gtk_src/FrmMain.php
Fatal error: Call to undefined function mysql_connect() in C:\php-gtk2\rental_gt
k_src\FrmLogin.php on line 65
Anyone can help me? Thanks