Jump to content

[SOLVED] checked Mysql work back "ok" or..


belphegor

Recommended Posts

i think....

 

so i need to do like this?

 

<?php
$connect=mysql_connect($database,$username,$password);

if(!$connect){
echo "OFF";
}else{
echo "ON";
}
?>

 

and change $database $username and $password..... ?

the "$" need to be example for $username: $belphegor

 

thanks for your help!!

 

 

 

edit;

 

or:

 

<?php
$dbms = 'mysql';
$dbhost = '';
$dbport = '';
$dbname = 'XXXX';
$dbuser = 'XXXX';
$dbpasswd = 'XXXX';
$connect=mysql_connect($database,$username,$password);

if(!$connect){
echo "OFF";
}else{
echo "ON";
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.