Warning: include(session1.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\page1.php on line 7
Warning: include() [function.include]: Failed opening 'session1.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\page1.php on line 7
<?php
session_start();
$_SESSION["count"]= session_id();
$conn = mysqli_connect(localhost,root,abc123) or die("Error Connect To Database");
mysqli_select_db($conn,"counter");
mysqli_query($conn,"SELECT * FROM sum WHERE session_id() = '{$_SERVER["PHP_SELF"]}' ");
if($count==""){
$sql ="INSERT INTO sum VALUES (session_id(),1)";}
else{
$sql ="UPDATE sum SET count=count+1 WHERE session_id() = '{$_SERVER["PHP_SELF"]}' ";
}
mysqli_query($conn,$sql);
mysqli_close($conn);
?>
Warning: include() [function.include]: Failed opening 'session1.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\page1.php on line 7