close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Advice on creating a product update form - image updating, thumbnail creating, text updating

Thread began 3/20/2014 5:42 am by Nathon Jones Web Design | Last modified 3/26/2014 1:40 pm by Nathon Jones Web Design | 3929 views | 30 replies

Jason ByrnesWebAssist

I see the probelm in your page anyway though.

you have 2 recordsets on the page named rsEDITPROD.

the good one is at lines 109 - 117:

$colname_rsEDITPROD = "-1";
if (isset($_GET['lbid'])) {
$colname_rsEDITPROD = $_GET['lbid'];
mysql_select_db($database_njMySQL, $njMySQL);
$query_rsEDITPROD = sprintf("SELECT LEDid, LEDtitle, LEDtitlemeta, LEDdesc, LEDmetadesc, LEDproductcode, LEDtypeID, LEDbaseID, LEDstyleID, LEDwattage, LEDcolourID, LEDdimmable, LEDcover, LEDlumens, LEDbrightness, LEDbeamangle, LEDsensor, LEDnoofchips, LEDprice, LEDnetweight, LEDwidth, LEDheight, LEDvoltage, LEDacdc, LEDreplacementfor, LEDavglife, LEDcerohs, LEDimgtmb, LEDimg, LEDimg1, LEDimg2, LEDimg3, LEDdelete, LEDoffer, LEDfeature FROM LEDprods WHERE LEDid = %s", GetSQLValueString($colname_rsEDITPROD, "int"));
$rsEDITPROD = mysql_query($query_rsEDITPROD, $njMySQL) or die(mysql_error());
$row_rsEDITPROD = mysql_fetch_assoc($rsEDITPROD);
$totalRows_rsEDITPROD = mysql_num_rows($rsEDITPROD);

then there is another at lines 214 - 219:

$query_rsEDITPROD = "SELECT LEDid, LEDtitle, LEDproductcode, LEDprice, LEDimgtmb, LEDdelete FROM LEDprods ORDER BY LEDproductcode ASC";
$rsEDITPROD = mysql_query($query_rsEDITPROD, $njMySQL) or die(mysql_error());
$row_rsEDITPROD = mysql_fetch_assoc($rsEDITPROD);
$totalRows_rsEDITPROD = mysql_num_rows($rsEDITPROD);

the second one should be removed.

it looks to me like the second instance may have been copied from another page, but however it got there, it is causing the errors.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...