Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionmysql_query("insert into externalvideo(titre_video,url_video) VALUES('$titre_video','$url_video')"or die (mysql_eror());
$deb ($curpage * ($nbvideo_par_page - $nbvideo_par_page);>
$link = mysql_connect($mysql_host, $mysql_user, $mysql_password); if (!$link) { die('Could not connect: ' . mysql_error()); } //echo 'Connected successfully'; // make foo the current db $db_selected = mysql_select_db($mysql_db, $link); if (!$db_selected) { die ('Can\'t use $mysql_db: ' . mysql_error()); }
mais a par les majuscules je voie pas tros la différence
Toujours pas trouver ni de réponse plus aucune aide ? dommage car c'estais un script pas mal et recherché ;)
c'est au niveau de cette ligne :
//maintenant on peut afficher les liens de //pagination
for ($i=0;$i <$nbpage;$i++) {
echo "[showvideo.php?p='.$i.' '.$i.']';
};</code>
<block>j'ai dit que en base Sql c'été tout nouveau pour moi ;)
bah la c'est quand j'ai remplacer la ligne
original:
$link = mysql_connect($mysql_host, $mysql_user, $mysql_password);
part
$link = mysql_connect("localhost", "moncompte", "Monpass");
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'curieux7'@'localhost' (using password: NO) in /home/curieux7/www/registervideo.php on line 69 Could not connect: Access denied for user 'curieux7'@'localhost' (using password: NO)
$link = mysql_connect($mysql_host, $mysql_user, $mysql_password);
$link = mysql_connect($mysql_host, $mysql_user, $mysql_password);
$link = mysql_connect("localhost", "moncompte", "Monpass");
Can't use $mysql_db: No database selected
//echo 'Connected successfully'; // make foo the current db $db_selected = mysql_select_db($mysql_db, $link); if (!$db_selected) { die ('Can\'t use $mysql_db: ' . mysql_error()); }
for ($i=0;$i <$nbpage;$i++) {
echo "[showvideo.php?p='.$i.' '.$i.']';
};
Warning: mysql_query() [function.mysql-query]: Access denied for user 'curieux7'@'localhost' (using password: NO) in /home/curieux7/www/showvideo.php on line 76 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/curieux7/www/showvideo.php on line 76 Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/curieux7/www/showvideo.php on line 77 Warning: Division by zero in /home/curieux7/www/showvideo.php on line 81 Warning: mysql_query() [function.mysql-query]: Access denied for user 'curieux7'@'localhost' (using password: NO) in /home/curieux7/www/showvideo.php on line 91 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/curieux7/www/showvideo.php on line 91 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/curieux7/www/showvideo.php on line 95 //fin
Reposte donc l'intégralité du code, après avoir fait les corrections qui ont été énoncées
mais où est donc définie $mysql_db ??
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'curieux7'@'localhost' (using password: NO) in /home/curieux7/www/registervideo.php on line 69
Could not connect: Access denied for user 'curieux7'@'localhost' (using password: NO)