Jump to content

im not sure about this, but


dbradbury

Recommended Posts

how do you select the first row in phpmyadmin...

 

i have these dates in a table, well wach date is a topic, and i would like to choose just the first date, the earliest one, well the one that will happen next...

 

include("//connect.php");
mysql_query("SELECT * FROM phpbb_posts WHERE forum_id='10' ORDER BY post_subject ASC");

 

is that the starting point? would i select all, * ?

 

Link to comment
https://forums.phpfreaks.com/topic/190135-im-not-sure-about-this-but/
Share on other sites

yeah lol

 

my code is this..

 

<?
include("connect.php");
$getalldates = mysql_query("SELECT * FROM phpbb_posts WHERE forum_id='9' ORDER BY post_subject ASC LIMIT 1");
$count = mysql_num_rows($getalldates);
if($count==0)
{
echo "No Concerts At The Moment!";
}
else
{
while($row = mysql_fetch_assoc($getalldates))
{
	$date = date('l F jS', strtotime($row['post_subject']));
	echo '<marquee>Next Concert is '.$date.' at '.$row['post_text'].'</marquee>';
}
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.