<?
# ########## mysql_fetch_object ############################
# permet d'extraire rapidement un array provenant de mysql #
# il suffit de creer l'array et d'appeller ses champs:     #
# $array -> nomChamps                                      #
############################################################
$konnect=mysql_connect("localhost","nobody","");
$konnect=mysql_select_db("radeff");

$result = mysql_query("select # from signets order by name");
if($result) {

    while($links=mysql_fetch_object($result))
    {
    echo $links->url ."<br>";
    }
} else {
echo "Problem with your SQL query";
}

?>
 
info/mysqlfetchobject.txt · Dernière modification: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki