header('Content-type: text/xml');<?php echo $description; ?>
httpRequest.responseXML.getElementsByTagName('description')[0].firstChild.data;
header('Content-type: text/xml');<?php echo $description; ?>
UPDATE test as t1,
(SELECT code,
replace( substring( substring_index( code, '-', 2 ),
length( substring_index( code, '-', 2 -1 ) ) +1 ) ,
'-', '' ) AS ref //split
FROM test
WHERE code IN(
'A001-123', 'A001-456', 'A001-789'
) GROUP BY code
) as t2
SET t1.subcode=
IF(t1.subcode='A001', 'A002', t1.subcode) ,
t1.code=concat("A002-",t2.ref)
WHERE t1.code IN(
'A001-123', 'A001-456', 'A001-789'
) AND t1.code=t2.code
It's pretty easy to create your own string functions for many examples listed here
CREATE FUNCTION strSplit(
x varchar(255),
delim varchar(12),
pos int
)
returns varchar(255)
return replace(substring(
substring_index(x, delim, pos),
length(substring_index(x, delim, pos - 1)) + 1),
delim, '');
+--------+
| second |
+--------+
| b |
+--------+
+-------+
| third |
+-------+
| ccc |
+-------+
+------+Credits go to Chris Stubben
| 7th |
+------+
| NULL |
+------+
<html>
<head>
<title>IE document.getElementById bug</title>
<meta name="description" content="IE bugs" />
</head>
<body>
<textarea name="description" id="description">
This is information about the bug
</textarea>
<script type="text/javascript">
alert(document.getElementById('description').value);
</script>
</body>
</html>
This is information about the bug