Hi again,
I have a cash gifting script that I converted to advertising instead of "gifts". So no host should have issue with it.
I went thru the session is registered thing but I don't know how to insert the newer coding. What exactly do I replace? I know about the () to [] but that's it. I know it is
$_session
or whatever but placement is my issue.
if( session_is_registered("alogin") ) {
Are they all the same in different php pages? How would you update the above code? Maybe I can use that as a guide to fix the rest. (the script is not up on site at this time)
Thanks, L-D - html guy
(this is adbanner.php)
<?php
session_start();
include "../adminheader.php";
include "../config.php";
include "../connect.php";
$name = $_POST['name'];
$url = $_POST['url'];
if( session_is_registered("alogin") ) {
?><table>
<tr>
<td width="15%" valign=top><br>
<? include("adminnavigation.php"); ?>
</td>
<td valign="top" align="center"><br><br> <?
echo "<font size=2 face='$fonttype' color='$fontcolour'><p><b><center>";
$query = "insert into advertise (name,bannerurl) VALUES ('$name','$url')";
$result = mysql_query ($query)
or die ("Insert failed");
echo "Your new banner has been saved.";
?> <p>Click <a href=banners.php>here</a> to go back<p>
</table>
</td>
</tr>
</table>
<?
}
else {
echo "Unauthorised Access!";
}
include "../footer.php";
mysql_close($dblink);
?>