Jump to content

Little question with SELECT and INSERT


patheticsam

Recommended Posts

Hi!

 

I have a SELECT SQL query that will add start_time value PLUS lenght value to make the end_time value

 

$sql = "SELECT `date`, TIME(`start_time` + `lenght`) as end_time FROM table1 WHERE host='$host' AND city='$city' ORDER by `date`, `start_time`";

 

 

I was just wondering if it's possible to do the same operation but inversed(with INSERT) so the value of start_time + lenght would be inserted into end_time.

 

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/141838-little-question-with-select-and-insert/
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.