close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

alt image tags in MySQL

Thread began 2/19/2014 11:26 am by Paul | Last modified 2/20/2014 11:22 am by Jason Byrnes | 1163 views | 6 replies |

Paul

alt image tags in MySQL

I have a general product MySQL Database running. Using datassist to add products to a mysql database, is there a way that if I made a new field for the alt image tags, that I can have it show up dynamically on the page?

The site is at: www.centurymachinery.com/default.php

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

yes, add the alt image column in your database, update the recordset that is used to populate the page to return the alt image tag column.

then update the image tag to use the reecordset biding in the alt attribute:

alt="<?php echo $row_recordsetName['ColumnName']; ?>"

Sign in to reply to this post

Paul

Hey Jason,

I did it all, but when I update a product in the admin (products_update.php), the ImageAltText field in the products_detail.php page shows a 0. And when I put a mouse over the image on the web page, nothing shows.

Any thoughts?

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

what is the data type for the new column you added?

in the update page, did you add a form element for adding the alt text?

Did you update the update record behavior so it is storing the alt text?

Sign in to reply to this post

Jason ByrnesWebAssist

yeah, looking ad the product_update page, the update record behavior has not been updated to bind the Alt text column to the alt text form element...

Sign in to reply to this post

Paul

To answer your questions:

what is the data type for the new column you added? MediumText

in the update page, did you add a form element for adding the alt text?
<li class="formItem">
<div class="formGroup">
<div class="lineGroup">
<div class="fullColumnGroup"><label for="prodImageAltText" class="sublabel" >Product Image Alt Text:</label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup">
<span>
<input name="prodImageAltText" type="text" class="formTextfield_Medium" id="prodImageAltText" tabindex="11" title="Please enter a value." value="<?php echo((isset($_GET["invalid"])?ValidatedField("productsupdate","prodImageAltText"):"".$row_WADAproducts["prodImageAltText"]."")); ?>" size="100">
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</li>

Did you update the update record behavior so it is storing the alt text? How?

Sign in to reply to this post

Jason ByrnesWebAssist

no, i did not update it, you have to do this.

open the server behaviors panel and double click the update record behavior to make changes to bind the alt text column to the alt text form element.

Sign in to reply to this post

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