Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
- <meta name="ProgId" content="FrontPage.Editor.Document">
- <title>Web Templates by LINE9.com</title>
- </head>
- <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">
- <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#999966">
- <tr>
- <td width="100%"><font face="Arial Black" size="6" color="#000000">WELCOME TO X-TREME'S SITE FOR ALMOST ANYTHING!</font></td>
- </tr>
- </table>
- <table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100%"><font color="#FFFFFF" face="Arial" size="2"><b>XTREME.IT.CX</b></font></td>
- </tr>
- </table>
- <table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td width="18%" bgcolor="#999966" valign="top">
- <p style="margin-left: 20"><b><font face="Arial" size="2" color="#000000"><aHome<br>
- LINK 2<br>
- LINK 3<br>
- LINK 4<br>
- LINK 5<br>
- LINK 6</font></b></p>
- <p> </p>
- <p> </p>
- <p> </p>
- <p> </p>
- <p> </td>
- <td width="61%" valign="top">
- <blockquote>
- <p><br>
- <font face="Arial" size="5">Welcome</font></p>
- <p><font size="2" face="Arial">This is the area for your Welcome text.
- This is the area for your Welcome text. This is the area for your
- Welcome text. This is the area for your Welcome text. This is the area
- for your Welcome text. This is the area for your Welcome text. This is
- the area for your Welcome text. This is the area for your Welcome text.
- This is the area for your Welcome text. </font></p>
- <p><font face="Arial" size="5">Header 2</font></p>
- <p><font size="2" face="Arial">This is the area for your Welcome text.
- This is the area for your Welcome text. This is the area for your
- Welcome text. This is the area for your Welcome text. This is the area
- for your Welcome text. This is the area for your Welcome text. This is
- the area for your Welcome text. This is the area for your Welcome text.
- This is the area for your Welcome text. </font></p>
- <p> </p>
- <p> </p>
- <p> </p>
- </blockquote>
- <p align="center"><font face="Arial" size="1">© COPYRIGHT 2010 ALL RIGHTS
- RESERVED XTREME.IT.CX</font></td>
- <td width="21%" valign="top">
- <table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100%" bgcolor="#999966"><b><font face="Arial" size="2" color="#FFFFFF">SIDE
- HEADING 1</font></b></td>
- </tr>
- </table>
- <table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100%" bgcolor="#EEEECC"><br>
- <font size="2" face="Arial">This is the place for your news or other
- site information. Another good use for this space is to display
- advertisements.</font>
- <p><font size="2" face="Arial">This is the place for your news or
- other site information. Another good use for this space is to
- display advertisements.<br>
- </font></td>
- </tr>
- </table>
- <table border="0" width="100%" bgcolor="#008080" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100%" bgcolor="#999966"><b><font face="Arial" size="2" color="#FFFFFF">SIDE
- HEADING 2</font></b></td>
- </tr>
- </table>
- <table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100%" bgcolor="#EEEECC"><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100%"><font size="1"> </font></td>
- </tr>
- </table>
- </body>
- <?php
- $host="sql213.xtreemhost.com"; // Host name
- $username="xth_4992614"; // Mysql username
- $password="mario64"; // Mysql password
- $db_name="xth_4992614_stuff"; // Database name
- $tbl_name="counter"; // Table name
- // Connect to server and select database.
- mysql_connect("$host", "$username", "$password")or die("cannot connect to server ");
- mysql_select_db("$db_name")or die("cannot select DB")
- $sql="SELECT * FROM $tbl_name";
- $result=mysql_query($sql);
- $rows=mysql_fetch_array($result);
- $counter=$rows['counter'];
- // if have no counter value set counter = 1
- if(empty($counter)){
- $counter=1;
- $sql1="INSERT INTO $tbl_name(counter) VALUES('$counter')";
- $result1=mysql_query($sql1);
- }
- echo "You 're visitors No. ";
- echo $counter;
- // count more value
- $addcounter=$counter+1;
- $sql2="update $tbl_name set counter='$addcounter'";
- $result2=mysql_query($sql2);
- mysql_close();
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement