NameSilo

Mysql Update

Spaceship Spaceship
Watch

NetworkTown.Net

Account Closed
Impact
2
Hi

Dose any one know of a script that can do the following:

When i type in a form .flv and submit the form will update all .wmv in my database to .flv is it possible?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
The sql is:
UPDATE {TABLE_NAME} SET {FIELD_NAME} = REPLACE ({FIELD_NAME}, '.wmv', '.flv' )
 
0
•••
Ok so if my DB name is arcade and the table is games it will look like this:

UPDATE {user_arcade} SET {games} = REPLACE ({games}, '.wmv', '.flv' )

Is that correct?
 
0
•••
minus the braces.

UPDATE user_arcade SET games = REPLACE (games, '.wmv', '.flv' )
 
0
•••
Thanks i will test it in abit.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back