Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Community Answers

  1. ginerjm's post in PHP Scripts layout was marked as the answer   
    So you have a little module that defines paths
     
    /*  paths.php
    $php_path = "/home/domain/php/";
    $lib_path = "/home/domain/public_html/libs/";
    ...
    ...
     
     
    Then in your code you include the above file and in your other includes you use the appropriate path var:
     
    include($php_path . "connect.php");
    include($lib_path . "functions.php");
    ...
    ...
  2. ginerjm's post in Display SQL Query results but skip first row was marked as the answer   
    $first = true; while($row = mysqli_fetch_assoc($result)) {    if ($first)    {       $first = false;        continue;    } ... ... ...
  3. ginerjm's post in PHP $_GET? At least I think that is the function I need to get working was marked as the answer   
    The url that would be used is:
     
    domain.com/mypage.php?quitdate=x
     
    To receive that value in your script you need:
     
    if (isset($_GET['quitdate']))
         $quit_date = $_GET['quitdate'];
    else
         (handle a missing argument however you wish)
     
    Of course you then need to validate that value to be sure it is something you expect
×
×
  • 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.