404 Not Found错误

时间:2017-02-19 08:16:37

标签: php mysql database

我正在创建一个数据库来存储图像并收到此错误: 在此服务器上找不到请求的URL /storeinfo.php 如何删除此错误?“

  <?php

    $conn = mysql_connect("localhost:8080","root","");
    $db = mysql_select_db("imagestore",$conn);
    if(!$db)
    {
            echo mysql_error();
    }

    $rollNo = $_POST['rollNo'];
    $image = addslashes (file_get_contents($_FILES['image']['tmp_name']));
    $image_s=getimagesize($_FILES['image']['tmp_name']);
    $q = "INSERT INTO studentdata VALUES('','$rollNo','$image','$image_s['mime']')";

    $r=mysql_query($q,$conn);
    if($r)
    {
            echo "Information stored successfully";
    }
    else
    {
            echo mysql_error();
    }

  ?> 

0 个答案:

没有答案