note 23255 added to function.is-int

From: Date: Fri, 12 Jul 2002 22:19:27 +0000
Subject: note 23255 added to function.is-int
Groups: php.notes 
Request: Send a blank email to php-notes+get-33007@lists.php.net to get a copy of this message
what's the matter with this code ?? please :'( [code] while ($cd_tbl = mysql_fetch_array ($result)) { $cd_id = $cd_tbl['cd_id']; $cd_oeuvre = $cd_tbl['cd_oeuvre']; $cd_chef = $cd_tbl['cd_chef']; $cd_compositeur = $cd_tbl['cd_compositeur']; <-------------------partie concernée---------------------> //-Debut Seth //-------------------------- // name : _ALTERNANCE_COULEUR_ // desc : test de 'id' pour l'alternance de couleur //-------------------------- if(is_int("$cd_id") = TRUE) { $bgcolor="#000000"; } else { $bgcolor="#333333"; } echo "<tr>"; echo "<td bgcolor="$bgcolor"><font face=Verdana size=1><b>$cd_id</b></font></td>"; echo "<td bgcolor="$bgcolor"><font face=Verdana size=1><b>$cd_compositeur</b></font></td>"; echo "<td bgcolor="$bgcolor"><font face=Verdana size=1><b>$cd_oeuvre</b></font></td>"; echo "<td bgcolor="$bgcolor"><font face=Verdana size=1><b>$cd_chef</b></font></td>"; echo "<td bgcolor="$bgcolor">"; echo "<a href=detail.php?cd_id=$cd_id><font face=Verdana size=1><b>Fiche complète</b></font></a>"; echo "</td>"; echo "</tr>"; } //- Fin Seth echo "</table>"; } [/code] thx! -- http://www.php.net/manual/en/function.is-int.php http://master.php.net/manage/user-notes.php?action=edit+23255 http://master.php.net/manage/user-notes.php?action=delete+23255 http://master.php.net/manage/user-notes.php?action=reject+23255

« previous php.notes (#33007) next »