>DansTonCode();

Tous les codes sourcespage 78

PHP
  9 July, 2013 à 10:28
#25
if ($ODIR = opendir($rep))
{
    while (($file = readdir($ODIR)) !== false)
    {
        $ar=preg_split("/\./",$file,-1,PREG_SPLIT_NO_EMPTY);
        if(count($ar)==2 && $ar["1"]=="jpg")
        {
            $gauche=$ar[0];
            $res=preg_split("/-/",$gauche,-1,PREG_SPLIT_NO_EMPTY);
            $cpt=count($res);
            if($cpt==1 || $cpt==2)
            {
                $int=$res[0];
                if(is_numeric($int))
                {
                    $requete="select * from TABLE where (ETAT=".OK." or ETAT=".AUTRE.") AND CLEF".chaineSqlWhere($int);
                    $result=database_exec($requete);
                    if($result===false)
                    {
                        //echo $int." à supprimer : $requete\n";
                        //ob_flush();
                    }
                }
            }
        }

    }
}
PHP
  2 July, 2013 à 14:54
#23
<?
define("URL_","/user/mes-bourses.php?action=modifDate&idBourse=");
?>
PHP
 24 June, 2013 à 14:35
#22
function menu($lien,$texte)
{
    return '<table cellpadding="0" cellspacing="0" class="menu">
             <tr>
               <td colspan="3" width="200" height="11" background="'.'/img/mh.gif"></td>
             </tr>
             <tr>
               <td align="left" width="10" height="25" background="'.'/img/mg.gif"></td>
               <td><a href="'.$lien.'">'.$texte.'</a></td>
               <td align="right" width="14" height="25" background="'.'/img/md.gif"></td>
             </tr>
             <tr>
               <td colspan="3" width="200" height="14" background="'.'/img/mb.gif"></td>
             </tr>
             </table>';
}