note 82926 deleted from function.mysql-db-query by philip
| From: | philip@php.net | 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." ";
echo $autor;
if ($cil!="all") {echo
$sipka." ".$cil.": ";}else{echo ": ";}
echo "</span>".$text." ";
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.": ";
?>
<label for="mess">message: </label> <input
type="text" name="text" id="mess">
<label for="seznam"> send to </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>