Bonjour,
j'ai un code qui ne fonctionne pas, je ne comprend pas pourquoi ?
et donc il me renvoie ce message d'erreur !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <?php require_once('commerce.php'); ?> <?php mysql_select_db($database_commerce, $commerce); $query_Livre = "SELECT * FROM shop_livre ORDER BY id ASC"; $Livre = mysql_query($query_Livre, $commerce) or die(mysql_error()); $row_Livre = mysql_fetch_assoc($Livre); $totalRows_Livre = mysql_num_rows($Livre); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Document sans titre</title> </head> <body> </body> </html> <?php mysql_free_result($Livre); ?>
En fait commerce.php sa correspond à ma page de connection
Code : Sélectionner tout - Visualiser dans une fenêtre à part Parse error: syntax error, unexpected '.' in C:\apachefriends\xampp\htdocs\commerce\commerce.php on line 5
Merci d'avance[/code]
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_commerce = "localhost";. $database_commerce = "commerce"; $username_commerce = "root"; $password_commerce = "6121970"; $commerce = mysql_pconnect($hostname_commerce, $username_commerce, $password_commerce) or trigger_error(mysql_error(),E_USER_ERROR); ?>







Répondre avec citation
Partager