|
Posted by Lee David on 06/06/05 02:36
Here is "SQL_A_Connect.inc"
// database connection include;
$user = "me";
$pwrd = "password";
$cont = "localhost";
$name_db = "database";
// end include;
Here is one of the pages I'd like to call it "SQL_Notice_Add.inc":
<?php
if (isset($_POST[postaction]))
{
include("SQL_A_Connect.inc");
$name_table = "notices";
$time = date("Y-m-d h:m:s", time());
$time2 = $_POST[exp];
$time2 = ($time2 * 24 * 60 * 60) + time();
$time2 = date("Y-m-d h:m:s", $time2);
$id = $_POST[id];
$msg = $_POST[msg];
and here is the page that has that include in it (SQL_Notice.php):
<td width="80%">
<?php
include("SQL_Notice_" . $act . ".inc");
?>
</td>
If the connection information include isn't there and the raw code it, it
works just find.
BTW, thanks for the time looking at this. I appreciate any help I can get.
Lee
Navigation:
[Reply to this message]
|