Jump to content

wont echo my query


conan318

Recommended Posts

Should be str8 forward got it to work once then add the code to my main page and wont work now

 

$dMonth = $_REQUEST["month"];
$dYear = $_REQUEST["year"];
  $data = mysql_query("SELECT * from main.mbadmin WHERE  mbadmin.month=$dMonth AND  mbadmin.year=$dYear  ORDER BY day DESC LIMIT 1;") or die(mysql_error());
//Puts it into an array 
while($info = mysql_fetch_array( $data )) 
{ 
echo $info;
Echo "<div class='next_ride'>";
Echo "Next Ride Updated On";
Echo "<br>";
echo $info['mk'] ;
echo "<hr>";
echo "<br>";
Echo $info['nextride'] ; 
Echo "<br>";
Echo "<hr>";
Echo "</div>";	

}

Link to comment
https://forums.phpfreaks.com/topic/244322-wont-echo-my-query/
Share on other sites

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.