0

Right now, I have a PHP script which - ideally - selects "posts" from a table, based whether or not the the time in the post is greater than the current time.

if(isset($_POST['id'])) {
	$id=addslashes($_POST['id']);
	$time=date("h:i:s");
	$sql=mysql_query("SELECT * FROM public_wis WHERE mig_id='$id' AND time >= '$time'");
	if(mysql_num_rows($sql)!=0) {
		while($rows=mysql_fetch_array($sql)) {
			extract($rows);
			echo "<div class=entry><div class=hx><a href=\"/users/$author\">$author</a></div><div class=b>$b</div></div>";
		}
	}
	else {
		return false;
	}
}

Yet, every time it is requested, it merely returns "false" or nothing.

Any thoughts? :O

Edited by Kystadio: n/a

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by pritaeas
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.