A voir également:
- Création d'un jeu d'enregistrement pour OVH
- 94 jeu - Télécharger - Puzzle & Réflexion
- Creation compte gmail - Guide
- Création compte google - Guide
- Media creation tool - Télécharger - Systèmes d'exploitation
- Création organigramme - Guide
1 réponse
Voila les messages d'erreurs que j'obtiens sur le web en ouvrant la page qui contient le texte du jeu d'enregistrement :
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /homez.154/pierrefan/www/college/page1.php on line 38
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homez.154/pierrefan/www/college/page1.php on line 40
Voici mon script PHP :
<?php require_once('Connections/pierrefannvx.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_biteaucul = "-1";
if (isset($_GET['id_categorie'])) {
$colname_textepedago = $_GET['id_categorie'];
}
mysql_select_db($database_pierrefannvx, $pierrefannvx);
$query_textepedago = sprintf("SELECT texte FROM CONTENU WHERE id_categorie = %s", GetSQLValueString($colname_textepesago, "int"));
$textepedago = mysql_query($query_textepeago, $login) or die(mysql_error());
$row_textepedago = mysql_fetch_assoc($textepedago);
$totalRows_textepedago = mysql_num_rows($textepedago);
mysql_free_result($textepedago);
?>
<?php echo $row_textepedago['texte']; ?>
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /homez.154/pierrefan/www/college/page1.php on line 38
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homez.154/pierrefan/www/college/page1.php on line 40
Voici mon script PHP :
<?php require_once('Connections/pierrefannvx.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_biteaucul = "-1";
if (isset($_GET['id_categorie'])) {
$colname_textepedago = $_GET['id_categorie'];
}
mysql_select_db($database_pierrefannvx, $pierrefannvx);
$query_textepedago = sprintf("SELECT texte FROM CONTENU WHERE id_categorie = %s", GetSQLValueString($colname_textepesago, "int"));
$textepedago = mysql_query($query_textepeago, $login) or die(mysql_error());
$row_textepedago = mysql_fetch_assoc($textepedago);
$totalRows_textepedago = mysql_num_rows($textepedago);
mysql_free_result($textepedago);
?>
<?php echo $row_textepedago['texte']; ?>