<?php mysql_select_db($dbname ,$db); // bon ici mis mes variables pour moi faire le debugage $query_RSbillet = mysql_query("SELECT * FROM coll_billet, coll_jeux, coll_jour, coll_sport WHERE coll_billet.coll_kf_jeux=coll_jeux.coll_kp_jeux AND coll_billet.coll_kf_jour=coll_jour.coll_kp_jour AND coll_billet.coll_kf_sport=coll_sport.coll_kp_sport ORDER BY coll_billet.coll_kf_jeux, coll_billet.coll_kf_jour, coll_billet.coll_horaire"); $row_RSbillet = mysql_fetch_assoc($query_RSbillet); $totalRows_RSbillet = mysql_num_rows($query_RSbillet); ?>
<?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;
}
}
mysql_select_db($database_jo, $jo);
$query_RSbillet = "SELECT * FROM coll_billet, coll_jeux, coll_jour, coll_sport WHERE coll_billet.coll_kf_jeux=coll_jeux.coll_kp_jeux AND coll_billet.coll_kf_jour=coll_jour.coll_kp_jour AND coll_billet.coll_kf_sport=coll_sport.coll_kp_sport ORDER BY coll_billet.coll_kf_jeux, coll_billet.coll_kf_jour, coll_billet.coll_horaire";
$RSbillet = mysql_query($query_RSbillet, $jo) or
die(mysql_error());
$row_RSbillet = mysql_fetch_assoc($RSbillet);
$totalRows_RSbillet = mysql_num_rows($RSbillet);
?>
Modifié par mbk28 le 11/01/2014 à 14:51
quel est la différence entre les 2, peux-t-on, l'installer sur mac?
11 janv. 2014 à 23:07
Modifié par cyr.havret le 12/01/2014 à 16:54
12 janv. 2014 à 18:06