note 82926 deleted from function.mysql-db-query by philip

From: Date: Wed, 21 May 2008 04:36:00 +0000
Subject: note 82926 deleted from function.mysql-db-query by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139569@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- <div id="vypis"> <?php if ($_SESSION['vstup']==1) { $sql="SELECT * from mess WHERE cil='all' OR cil='$nick' OR autor='$nick'"; $data=mysql_query($sql); //echo $data; while (($pole=mysql_fetch_array($data))!=FALSE) { $cas=$pole['cas']; $autor=$pole['autor']; $text=$pole['text']; $cil=$pole['cil']; $sipka="►"; echo "<p><span class='fat'>"; echo $cas."&nbsp;"; echo $autor; if ($cil!="all") {echo $sipka."&nbsp;".$cil.":&nbsp;";}else{echo ":&nbsp;";} echo "</span>".$text."&nbsp;"; echo "</p>"; } } ?> </div> <div id="panel"> <p> <?php $sql="SELECT nick from user_list WHERE status='1'"; $data=mysql_query($sql); while(($pole=mysql_fetch_array($data))!=FALSE) { echo $pole['nick']."<br />"; } ?> </p> <form action="/script/logout.php"> <input type="submit" value="log me out" id="logout"> </form> </div> <div id="bottomline"> <form action="/script/write.php" method="get"> <?php echo $nick.":&nbsp;"; ?> <label for="mess">message: &nbsp; </label> <input type="text" name="text" id="mess"> <label for="seznam"> send to &nbsp;</label> <select name="cil" size="1" id="seznam"> <option value="all">all users <?php $sql="SELECT nick from user_list WHERE status='1'"; $data=mysql_query($sql); echo "<p>"; while (($pole=mysql_fetch_array($data))!=FALSE) {echo "<option value='".$pole['nick']."'>".$pole['nick']."<br />";} echo "</p>"; $_SESSION['vstup']=1; ?> </select> <input type="submit" value="sen the message" id="subac"><br /> </form>

« previous php.notes (#139569) next »