
hello i have table
i need to get msce 23:00 how go get like this?
the code is
if(isset($_GET["id"]))
{
$id= $_GET["id"];}
if(isset($_GET["is"]))
{
$is= $_GET["is"];}
$user_name = "root";
$password = "";
$database = "test";
$server = "127.0.0.1";
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
if ($db_found) {
$SQL = "SELECT location FROM (".$is.") WHERE sub_cat=('".$id."')";
$result = mysql_query($SQL);
$scs_count='0';
$cs="0";
$location=array();
while ($db_field = mysql_fetch_array($result)) {
$location_c[$cs]= $db_field['location'];
$cs++;
$scs_count++;
}
$duration_c=array();
$cks="0";
for($k=0;$k<$cs;$k++)
{
$SQL = "SELECT duration FROM core_network WHERE location=('".$location_c[$k]."')";
$result = mysql_query($SQL);
$db_field = mysql_fetch_array($result);
$duration_c[$k]= $db_field['duration'];
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.