Jump to content

akienghie09

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by akienghie09

  1. akienghie09

    Looping

    It's like what you're trying to explain is that you wanted to have a select option where when you select it all the record in that date will display and it did not consider the name of the restaurant? Is that what you wanted to do? Is that right?
  2. You can't just sit there and wait for people to give you that golden dream: you've got to go out and make it happen for yourself.

  3. You can't just sit there and wait for people to give you that golden dream: you've got to go out and make it happen for yourself.

  4. You can't just sit there and wait for people to give you that golden dream: you've got to go out and make it happen for yourself.

  5. You can't just sit there and wait for people to give you that golden dream: you've got to go out and make it happen for yourself.

  6. Hi! I have a code where I populate the drop down list base on one of the columns in my database. It already display but the value of the chosen list did not affect my mysql query. Now I wanted to ask how I can put the value of the list to my mysql query.This is my code: <?php// db connection$db = "mds_reports";[/indent]if($connect = mysql_connect("172.16.8.32", "mds_reports", "password")) $connect = mysql_select_db($db); else die("Unable to connect".mysql_error());$date_from = $_POST['dfrom'];$date_to = $_POST['dto'];?><html><head><title>Cancelled Orders </title&
  7. You can't just sit there and wait for people to give you that golden dream: you've got to go out and make it happen for yourself.

  8. Ingolme & Err, thank you for your help. It already work. Thanks again. Best Regards!
  9. Hi!, This is my sample part of my program.. $row['name'].",". $row['region'].",". $row['city'].",". $row['area'].",". $row['street'].",". $row['building'].",". $row['totalorders'].",". $row['totalgross'].","."<br>"; that the output is like this...name, region, city, area, street, building, totalorders, totalgross the output that I need is like this.."name","city","area","street","building","totalorders","totalgross", can you help me how can I make this output..?thanks and have a great day ahead!
  10. I have a query where I will display how many transactions are made base on the amount of each transaction. But it has an error, the error is that the last amount which is 1,000 above is the same with the total transaction. Can someone check my query? This is my query: SELECT restaurant_master.code, restaurant_master.name, COUNT(CASE WHEN mds_orders.GrossTotal < '100' THEN 1 END) AS less100, COUNT(CASE WHEN mds_orders.GrossTotal >= '100' AND mds_orders.GrossTotal < '200' THEN 1 END) AS less200, COUNT(CASE WHEN mds_orders.GrossTotal >= '200' AND mds
×
×
  • Create New...