J
|
Jane 3/19/2007 |
Donald, global $where,$conn,$strTableName; $str = "select ProductID from ".$strTableName." where ".$where; $rs = db_query($str,$conn); $data = db_fetch_array($rs); echo "<img src=\"Products_imager.php?field=ProductImage&key1=".$data["ProductID"]."\" border=0>";
|
D
|
dlpirl author 3/20/2007 |
Donald, to display product image on the Edit page use EditOnLoad event on the Events tab. Here is a sample: ...
function EditOnLoad() { global $where,$conn,$strTableName; // Parameters: // $where - string with WHERE clause pointing to record to be edited //** Custom code **** // put your custom code here $str = "select PrdCode from ".$strTableName." where ".$where; $rs = db_query($str,$conn); $data = db_fetch_array($rs); echo "<img src=\"sunnycloprod_imager.php?field=Photo&key1=".$data["PrdCode"]."\" border=0>"; } |
J
|
Jane 3/21/2007 |
It's difficult to tell you what's happening without seeing actual data. $data = db_fetch_array($rs); echo $data["PrdCode"];
|
D
|
dlpirl author 3/21/2007 |
It's difficult to tell you what's happening without seeing actual data. Try to display $data["PrdCode"] on the page before the image: If it doesn't help publish your application on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email].
|
D
|
dlpirl author 3/26/2007 |
Yes, Jane. Adding your suggested code, the correct Product Code (PrdCode) is displayed before the broken image icon. I will try publishing to Demo Account and then post the URL here as you suggest.
|
J
|
Jane 3/27/2007 |
answered in your personal email. |