close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Your Supplied Database

Thread began 6/28/2010 10:33 am by J7HNW | Last modified 6/28/2010 7:21 pm by Jimmy Wu | 1269 views | 3 replies |

J7HNW

Your Supplied Database

I have added products to your supplied MySQL database

One item is £2.50 per unit

When I log in and change the figure to £2.50 - as soon as I save it - it reverts to £2.5

How can I make the 0 remain visible please

John

Sign in to reply to this post

Jimmy Wu

Here is how you would want to set the data type in the database table:
aa258832(v=SQL.80).aspx

You would want to use decimal(x,2). The x is how many total digits you would need, so something like 6 would most likely be enough for a store. With x as 6, you would be able to store a max of 9999.99 in the column.

Sign in to reply to this post

J7HNW

Doesnt work Jimmy

I have gone into Localhost and selected the database

I have selected edit on the ProductPrice line

Changed from Float to Decimal and put x,6 in the following line

I get this error code

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'x,6) NOT NULL' at line 1

Help please - I am new to MySQL

Sign in to reply to this post

Jimmy Wu

You're supposed to replace the x with a number. Please read through the link I provided, which explains it in more detail.

You want something like decimal(6,2) as the type.

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