close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
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 8:42 am by Nathon Jones Web Design | Last modified 3/26/2014 4:40 pm by Nathon Jones Web Design | 1187 views | 30 replies

Nathon Jones Web Design

using a recordset to pre-fill my product information form - undefined index warnings?

Have created a standard admin page with a link to an UPDATE form, the row id being passed as a querystring.

I've got a recordset on the UPDATE form page which filters the database table using the querystring value passed from the previous page and I've populated the form fields with values from the recordset however when I get to the UPDATE form page almost all of the form fields have the following within them (specific to each field):

br /><b>Notice</b>: Undefined index: LEDtitlemeta in <b>/home/linweb27/l/ledwarehouseuk.com/user/htdocs/ledADMIN/editprod.php</b> on line <b>339</b><br />


If I turn error reporting off (I have <?php error_reporting(E_ALL); ini_set('display_errors','on'); ?> at the very start of the page) then these errors disappear but I'd rather there weren't any errors on the page.

Also the errors seems to affect, for example, drop down menus in that regardless of what the value from the recordset is for one of the drop down menu fields the first value from the drop down menu is displayed. Like it's not picking up on the recordset value at all?

Here's an example of one of the drop down menus:
<select name="LEDtypeID" id="LEDtypeID">
<?php
do {
?>
<option value="<?php echo $row_rsCATEGORY['LEDtypeID']?>"<?php if (!(strcmp($row_rsCATEGORY['LEDtypeID'], $row_rsEDITPROD['LEDtypeID']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsCATEGORY['LEDtypename']?></option>
<?php
} while ($row_rsCATEGORY = mysql_fetch_assoc($rsCATEGORY));
$rows = mysql_num_rows($rsCATEGORY);
if($rows > 0) {
mysql_data_seek($rsCATEGORY, 0);
$row_rsCATEGORY = mysql_fetch_assoc($rsCATEGORY);
}
?>
</select>

I attach the two pages in question and details of how to log in to the admin system in the private section below.
Thank you.

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

Content

rating

Layout

rating

Ease of use

rating

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...