MySQL - Update images name in database from .jpg to .png [closed] - mysql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need help in updating my database,
I have a column named 'questionLink' in table 'question'
which contains names of the images, (image1.jpg, image2.jpg, image3.jpg)
there are 100s of images, and i have to remane with .png extension...
I firstly trying to show the records with this query, which is no way near to the solution.
SELECT * FROM question WHERE "questionLink" LIKE '%.jpg%'
Any help will be appriciated.
Thanks

Are you looking for something like this?
UPDATE question
SET questionLink = REPLACE(questionLink, '.jpg', '.png');
Here is SQLFiddle demo
Further reading REPLACE()

Related

Regex to extract first two numbers of a date [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have date written like this : 01/12/2013 -- how can I display only the first two letter using REGEXP. Thanks
You could use SUBSTRING_INDEX function instead of a regexp:
SELECT SUBSTRING_INDEX(column, '/', 1)
FROM yourtable
You can also use LEFT function
SELECT LEFT(datecol,2) FROM `table`
Demo

Regular expression for multiple of 100 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Can anybody provide me regular expression for multiple of 100.
we want to validate value in multiple of 100 .
Regards,
Pradeep
I'd use this:
^[1-9]+[0-9]*00$
First number must be from 1 to 9, then any number of random digits, and it must end in two 0's.
In future looking up a bit of regex would be a good first step, this is very very simple and can be worked out (even by a complete novice) in very little time.
what about this
([0-9]*00)|0
you can check above expression here

Change title in header [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
hey guys i have some problems.
I boughta finished template from ego studios . The problem that i have is that i cant change the title. At the title secetion in the head should be Guido Neuhaus, and it is written there but it wont change, there is alway ego stuidos.
could someone take a look at it. Is there any script which blocks it or something like that ?
<head><title>Guido Neuhaus</title></head>
i dont know what to do.
my website
it's in your javascript file: http://guido-neuhaus.de/js/onepage.js
document.title = 'Ego Studios' + ( targetSection.replace( /[_\-\#\!\.\/]/g, ' ' ));

Alternative for <input type = time>? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I was in need of an input of type time where users need to enter 'from' and 'to' times and I found this
<input type="time">
but it won't work in firefox , ie etc.. ( as you all know)
So is there any way to implement something similar to this in my time input field where user can select time ( hour: min :AM/PM)
I am a newbie ( with my first website) and this is my first question here.. pls consider
thank you
Try jquery time picker, i always this one
http://pttimeselect.sourceforge.net/example/index.html
If you want something very simple then try
http://keith-wood.name/timeEntry.html
this one is similar to <input type="time">

Is HTML allowed in objects description? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
Is it possible to use HTML tags in objects description, like links? I am trying to post a link on the wall with my app but it skips HTML stuff.
With regard to your question - no. You can't use HTML tags at all when posting data to Facebook.