Jump to content

Setting a Value


kenwvs

Recommended Posts

I am trying to get this code to work but I am not sure how to set the value for the $contact.  The Work=Contact is the problem.  Work is in the database, but Contact is not.  Basically, I have a form that I put the data in, and it calls it up from the database by Work.

Ken

[code]include_once "myconnect.php";
$query=mysql_query('SELECT Work, Sched, Name, Site, Serial, Hours, Starts, Issue, Severity,
Resolution, Assistance, PartsA, PartsB, PartsC, PartsD, PartsE, PartsF, PartsG,
Safety, Image1, Image2, Image3, Image4 FROM workorder WHERE Work=($Contact)')or die(mysql_error())
;
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/16922-setting-a-value/
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.