Posted by Oli Filth on 06/06/05 02:45
Lee David said the following on 06/06/2005 00: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.
>
Where are you performing the SQL query that causes the error?
--
Oli
Navigation:
[Reply to this message]
|