User Profile

Collapse

Profile Sidebar

Collapse
KevinKiambe
KevinKiambe
Last Activity: Mar 29 '12, 08:53 AM
Joined: Mar 21 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Why is this code for uploading files not really uploading files

    Code:
    <?php
        // Connect to the database
        $dbLink = new mysqli('127.0.0.1', 'user', 'pwd', 'myTable');
        if(mysqli_connect_errno()) {
            die("MySQL connection failed: ". mysqli_connect_error());
        }
         
        // Query for a list of all existing files
        $sql = 'SELECT `id`, `name`, `mime`, `size`, `created` FROM `file`';
        $result = $dbLink->query($sql);
    ...
    See more | Go to post
    Last edited by Dormilich; Mar 22 '12, 04:03 PM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • KevinKiambe
    started a topic Activating users using email in php
    in PHP

    Activating users using email in php

    Please help me to get a php code that activates users upon registration by sending the activation codes to their specified emails.




    Code:
    $host  = $_SERVER['HTTP_HOST'];
    $host_upper = strtoupper($host);
    $login_path = @ereg_replace('admin','',dirname($_SERVER['PHP_SELF']));
    $path   = rtrim($login_path, '/\\');
    
    $message = 
    "Thank you for registering with us. Your account
    ...
    See more | Go to post
    Last edited by Niheel; Mar 22 '12, 07:12 PM. Reason: please always post code as part of question
No activity results to display
Show More
Working...