Most of the actions you need to perform on a database are done with SQL statements.
The following SQL statement will select all the records in the “Persons” table:
| “SELECT * FROM Persons” |
In this tutorial we will teach you all about the different SQL statements.
<?php
‘While loop”
$i=1;
while ($i<=10){
echo $i;
echo ‘<br/>’;
$i++;
}
‘For loop”
for ($i=10; $i>1;$i–){
echo $i;
echo ‘<br/>’;
}
?>
Note : First of all put this script on the header of page scorce ..
<script>
function pageScroll() {
window.scrollBy(0,50); // horizontal and vertical scroll increments
scrolldelay = setTimeout(‘pageScroll()’,100); // scrolls every 100 milliseconds
}
</script>
the put these on the mean point..
For automatic scroll the page
<body onLoad=”pageScroll()”>
For atach with link
<a href=”javascript:pageScroll()”>Scroll Page</a>
For atach with Button
<input type=”button” onClick=”pageScroll()” value=”Scroll Page”>
For Stop Scroollll
function stopScroll() {
clearTimeout(scrolldelay);
}
Use the scroll() method to jump to a particular point on the page. The target position is specified in pixels from the top left corner of the page, horizontally and vertically.
function jumpScroll() {
window.scroll(0,150); // horizontal and vertical scroll targets
}
<a href=”javascript:jumpScroll()”>Jump to another place on the page</a>
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!