MySQL UPDATE Problems [SOLVED]

MySQL related discussion or help, including phpMyAdmin.

Re: MySQL UPDATE Problems

Postby aaron » Mon Mar 01, 2010 8:16 pm

That doesn't work?

Thank
Aaron
aaron
 
Posts: 109
Joined: Sun Jan 03, 2010 10:15 pm
Online: 6h 57m 24s
Karma: 1

Re: Re: MySQL UPDATE Problems

Advertisment

Advertisment
 

Re: MySQL UPDATE Problems

Postby wide_load » Mon Mar 01, 2010 8:20 pm

azz wrote:That doesn't work?

Thank
Aaron


then put


somehwere after the query and see what the problem is.

could be a permissions thing.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5617
Joined: Thu Aug 13, 2009 1:04 pm
Online: 13d 22h 12m 49s
Karma: 45

Re: MySQL UPDATE Problems

Postby aaron » Mon Mar 01, 2010 8:26 pm

I get this error message:

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 ''totals'' at line 1

Aaron
aaron
 
Posts: 109
Joined: Sun Jan 03, 2010 10:15 pm
Online: 6h 57m 24s
Karma: 1

Re: MySQL UPDATE Problems  [SOLVED]

Postby aaron » Mon Mar 01, 2010 8:29 pm

Ahh, I figured it out, I had to remove the ' ' around "totals" in the query.

Thanks for all your help
Aaron
aaron
 
Posts: 109
Joined: Sun Jan 03, 2010 10:15 pm
Online: 6h 57m 24s
Karma: 1

Re: MySQL UPDATE Problems

Postby aaron » Mon Mar 01, 2010 8:38 pm

Now that that is sorted, I'm looking to be able to validate an input to only allow numeric values and one decimal point. Any help?

Thanks
Aaron
aaron
 
Posts: 109
Joined: Sun Jan 03, 2010 10:15 pm
Online: 6h 57m 24s
Karma: 1

Re: MySQL UPDATE Problems

Postby wide_load » Mon Mar 01, 2010 8:48 pm

azz wrote:Now that that is sorted, I'm looking to be able to validate an input to only allow numeric values and one decimal point. Any help?

Thanks
Aaron


php has a function called is_numeric(); it pretty much does this for you.

i cant link to the page because the forum is being SILLY still
Image
User avatar
wide_load
Top Contributor
 
Posts: 5617
Joined: Thu Aug 13, 2009 1:04 pm
Online: 13d 22h 12m 49s
Karma: 45

Previous

Return to MySQL/phpMyAdmin

Who's online?

Users browsing this forum: No registered users and 1 guest