Jump to content

Prioritize Data Posted


unemployment

Recommended Posts

How can I prioritize the data posted.  Right now this if statements are being posted at different times.  If I hit submit and all the if statements post to mysql it is saying that they all receive the same time stamp, but the data is never posted in the same order.  Can I order the posting process in php?

 

if ((isset($_POST['companywebsiteas'])) && ($_POST['companywebsiteas'] != $r['companywebsite']))
{
$details = $_POST['companywebsiteas'];
update_company_actions($info['companyid'], 18, $details);
}

if ((isset($_POST['companyindustryas'])) && ($_POST['companyindustryas'] != $info['industry']))
{
$details = $_POST['companyindustryas'];
update_company_actions($info['companyid'], 17, $details);
}

if ((isset($_POST['companystageas'])) && ($_POST['companystageas'] != $info['stage']))
{
$details = $_POST['companystageas'];
update_company_actions($info['companyid'], 10, $details);
}

if ((!isset($_POST['companystateas'])) && (($_POST['companycountryas'] != $info['country']) || ($_POST['companycityas'] != $info['city'])))
{
$details = $_POST['companycityas'].', '.$_POST['companycountryas'];
update_company_actions($info['companyid'], 11, $details);
}
else if ((isset($_POST['companystateas'], $_POST['companycityas'])) && (($_POST['companystateas'] != $info['state']) || ($_POST['companycityas'] != $info['city'])))
{
$details = $_POST['companycityas'].', '.$_POST['companystateas'];
update_company_actions($info['companyid'], 11, $details);
}

Link to comment
https://forums.phpfreaks.com/topic/235569-prioritize-data-posted/
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.