J
|
Jane 8/8/2007 |
Hi, global $conn,$strTableName; $str = "select * from ".$strTableName." where RegName='".$values["Sire"]."'"; $rs = db_query($str,$conn); if ($data = db_fetch_array($rs)) $values["SireID"] = $data["ID"]; |
|
500410 8/27/2007 |
Hi, I'm not sure that I understand you correctly. You can't add value to another field using lookup wizard. I think you need to use Before record added or Before record updated event for this purpose. Here is a sample code:
|
![]() |
Alexey admin 8/29/2007 |
Try using this code: global $conn,$strTableName; $str = "select * from ".$strTableName." where RegName='".mysql_escape_string($values["Sire"])."'"; $rs = db_query($str,$conn); if ($data = db_fetch_array($rs)) $values["SireID"] = $data["ID"]; |
|
500411 8/29/2007 |
Try using this code:
|
|
501303 9/5/2007 |
I fixed it!!! this is what works: |