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
if(ereg( "MSIE", $_SERVER['HTTP_USER_AGENT'])){
session_cache_limiter('private');
}
if(ereg( "MSIE", $_SERVER['HTTP_USER_AGENT'])){
header('Cache-Control: maxage=3600');
header('Pragma: public');
}
1. Switch to the Edit HTML tab of your template and find this line:
b:include data='blog' name='all-head-content'/
2. Add this code just below that line:
<b:if cond='data:blog.url == "http://YOUR-BLOG-URL.com/"'>
<meta content='DESCRIPTION' name='description'/>
<meta content='KEYWORDS' name='keywords'/>
</b:if>
This was done to add META Tags to the main page of the blog.
3. Now add this code just below the code you add just now:
<b:if cond='data:blog.url == "http://YOUR-BLOG-URL.com/2009/03/xxx.html"'>
<meta content='Type you post description here.' name='description'/>
<meta content='Type, the, post, keywords, here' name='keywords'/>
</b:if>
Replace http://YOUR-BLOG-URL.com/2009/03/xxx.html with the
URL of the specific post you want to change the META Tags of.
4. Repeat Step 3 for as many blog posts you want to have unique META Tags for.
It is a frequent necessity to transfer variable values between pages. You may have an HTML form which asks for user input to named fields. These fields (as well as hidden variables) will be transferred to a PHP page for processing. This may be the same page that defines the form, or a different one. A method of either 'post' or 'get' must be given in the form tag.
Once upon a time, most PHP programmers simply grabbed variables and values by using them in their code. Let's say you had two fields in a form, named "name" and "email". You could simply use $name and $email in your code (the receiving, or target, page), and they would have the values filled in by the user in the form. Life was simple, wasn't it? $name and $email were examples of a special kind of PHP variable, called a register global variable. You simply used it, and it was magically there to pull in data transferred from a form or a link on another page.
eg. Register_global = on$conn=mysql_connect('localhost', 'mysqluser', 'mysqlpwd');$save){$sql='INSERT INTO user VALUES( "'.$name.'" , "'.$email.'" )';mysql_query($sql,$conn) or die('Insertion stage failed');$conn=mysql_connect('localhost', 'mysqluser', 'mysqlpwd');$_POST['save']){$sql='INSERT INTO user VALUES( "'.$_POST['name'].'" , "'.$_POST['email'].'" )';mysql_query($sql,$conn) or die('Insertion stage failed');
$w = "world";
echo " Hello $w"; // taken as Hello World
echo 'Hello $w'; // taken as Hello $w
$color='blue';
echo "I have a $color shirt on today";
echo 'I have a ' .$color. ' shirt on today';
<?php
echo "Welcome to Coding blogspot";
echo "Hello World";
?>
Welcome to Coding blogspot
Hello World
just keep in mind that these installation packages are for development use, and are not built for a production enviroment, the preformance and security of these tools is not setup for use in a public website.