Reply to Re: include code on server

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация