codesaso
04-06-2009, 10:46 AM
Hello,
My site is in Arabic hosted by BlueHost (www.codesaso.com). In local, there is no problem with this code :
<?php
mysql_connect("localhost", "user1", "****"); // Connexion à MySQL
$link = mysql_connect ("localhost","user1") ;
mysql_query("SET CHARACTER SET 'utf8';", $link)or die(mysql_error());
mysql_select_db("codesa"); // Sélection de la base coursphp
?>
The forth line is for coding in Arabic.
But in Line I have this message :
Undefined variable in Line 4 :
mysql_query("SET CHARACTER SET 'utf8';", $link)or die(mysql_error());
Would you like to help me ?
My site is in Arabic hosted by BlueHost (www.codesaso.com). In local, there is no problem with this code :
<?php
mysql_connect("localhost", "user1", "****"); // Connexion à MySQL
$link = mysql_connect ("localhost","user1") ;
mysql_query("SET CHARACTER SET 'utf8';", $link)or die(mysql_error());
mysql_select_db("codesa"); // Sélection de la base coursphp
?>
The forth line is for coding in Arabic.
But in Line I have this message :
Undefined variable in Line 4 :
mysql_query("SET CHARACTER SET 'utf8';", $link)or die(mysql_error());
Would you like to help me ?