-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Community Answers
-
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");
...
...
-
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; } ... ... ...
-
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