Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by PravinS

  1. while uploading files use $_FILES instead of $_POST for file data

    $fileName = $_POST["uploaded_file"]["name"]; // The file name
    $fileTmpLoc = $_POST["uploaded_file"]["tmp_name"]; // File in the PHP tmp folder
    $fileType = $_POST["uploaded_file"]["type"]; // The type of file it is
    $fileSize = $_POST["uploaded_file"]["size"]; // File size in bytes
    

    the above code should be

    $fileName = $_FILES["uploaded_file"]["name"]; // The file name
    $fileTmpLoc = $_FILES["uploaded_file"]["tmp_name"]; // File in the PHP tmp folder
    $fileType = $_FILES["uploaded_file"]["type"]; // The type of file it is
    $fileSize = $_FILES["uploaded_file"]["size"]; // File size in bytes
    
  2. try using this

    $num = mysql_num_rows($allusers = mysql_query("SELECT * FROM PMs WHERE `status` = '0' AND ReceiveID ='".$myU->ID."' ORDER BY ID"));
    $PMs = mysql_num_rows($allusers = mysql_query("SELECT * FROM PMs WHERE `status` = '0' AND LookMessage = '0' AND ReceiveID = '".$myU->ID."' ORDER BY ID"));
    
  3. check this sample CSS and HTML

    #maindiv
    {
        width:500px;
        background-color:#000;
        height:100px;
        padding:3px;
    }
    #leftdiv
    {
        width:250px;
        background-color:red;
        float:left;
        height:100px;
    }
    #rightdiv
    {
        width:250px;
        background-color:#fff;
        float:right;
        height:100px;
    }
    
    
    
    <div id="maindiv">
        <div id="leftdiv"></div>
        <div id="rightdiv"></div>
    </div>
    
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.