All pastes #759213 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-11-02 22:48 UTC
rendered paste body
foreach ($print_me as $p => $print) { 	$sql="SELECT * FROM slog WHERE log_id='$print'";	$sqlres=mysql_query($sql, $db_link);		while(($row=mysql_fetch_array($sqlres))) {		echo "<tr>";		echo "<td colspan=\"2\" bgcolor=\"#FFFFCC\" width=\"125\" class=\"text\">$row[log_id]</td>";		echo "<td bgcolor=\"#FFFFCC\" width=\"100\" class=\"text\">$row[server_id]</td>";		echo "<td bgcolor=\"#FFFFCC\" width=\"200\" class=\"text\">$row[date]</td>";		echo "<td bgcolor=\"#FFFFCC\" width=\"100\" class=\"text\">$row[user_id]</td>";		echo "</tr>";		echo "<tr>";		echo "<td colspan=\"5\" bgcolor=\"#cccc99\" valign=\"top\" width=\"525\" class=\"text\"><strong>Comments:</strong><br>$row[comment]</td>";		echo "</tr>";	}}