Bonjours, je ne connais pas grand chose au php mais j'ai essayé
d'inserer une tribune libre sur mon site mais elas elle ne marche pas
vous pouriez peu etre m'aider ?
voici les erreur
Warning: mysql_select_db(): A link to the server could not be established in
/var/www/free.fr/c/2/himuraxp/chat/index.php on line
42
Warning: mysql_query(): A link to the server could not be established in
/var/www/free.fr/c/2/himuraxp/chat/index.php on line
48
Warning: mysql_query(): A link to the server could not be established in
/var/www/free.fr/c/2/himuraxp/chat/index.php on line
50
Warning: mysql_query(): A link to the server could not be established in
/var/www/free.fr/c/2/himuraxp/chat/index.php on line
51
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
/var/www/free.fr/c/2/himuraxp/chat/index.php on line
51
voici la zone de code ou l'erreur ce situe:
<?php require("smyl.php");
$host = "localhost";
$login = "root";
$pass = "";
$base = "waz";
$bd=mysql_connect($host , $login , $pass);
$table="T_NBCONNECTES";
MySQL_Query("CREATE TABLE IF NOT EXISTS $table (
`ip` int(255),
`time` datetime
) TYPE=MyISAM
");
MySQL_Query("Insert into ".$table." values('$ip','".date("Y-n-j H:i:s")."')");
$visit=$visit[0];
?>