Admin index

no matter how i try to modify the index page i am still getting errors cold somone please give me the correct coding how it should be here is the index page

[php]<?php

session_start();

include “…/config.php”;
include “…/header.php”;
include “…/style.php”;

if( session_is_registered(“alogin”) ) {
?>






<? include("adminnavigation.php"); ?>


<?
echo “

”;
?>

Welcome to the admin area!


First you MUST go to ‘Settings’ to set up your EZ Ad Board Script


To edit the HTML on your main and members page, go to ‘edit pages’.


Use ‘Contact All’ to send to all contact emails addresses.


To add banners for your users to use in their advertising efforts, click ‘Add Banners’


To add more navigation links (or disable existing links) in the members area, click ‘Edit Navigation’.


To set the start date for a referral contest, make the date under settings 1 day before the start date of your contest.


<a href=“http://ezadboardscript.com/tutorials/” target=_new">Click Here For EZ Ad Board Script Tutorials

	<?
	if($_POST['optimize']) {
		mysql_query("OPTIMIZE TABLE `advertise` , `autoresponder` , `banners` , `banner_clicks` , `builder` , `builder_cat` , `builder_fav` , `builder_sites` , `clicks` , `drawing` , `emails` , `email_promotion` , `links` , `members` , `navigation` , `navlink` , `offerpage` , `oto` , `pages` , `post` , `promo_codes` , `promo_used` , `refmail` , `saved_post` , `saved_solos` , `settings` , `solos` , `support` , `tlinks` , `tlviews` , `transactions` , `urls` , `viewed`");
		echo "The tables have been optimized";
	}
	?>

		<form method="post">
		<input type="submit" name="optimize" value="Optimize database">
		</form>


      </td>
  </tr>
</table>
<?

}
else {
?>



Admin Id:


Password:





<?
}
echo “

”;
include “…/footer.php”;

?>[/php]

Thank you
Zalka

It might help if you explain what the errors are and what you are trying to accomplish.

its the admin for a adboard site you manage the site from here
here is the error
Parse error: syntax error, unexpected ‘}’ in /home/pillsfor/public_html/youradsblaster.com/admin/index.php on line 45

You could run into problems using short tags if they are not enabled. Additionally, you are using mysql code that has been completely removed from the current version of Php, not to mention obsolete html. You need to use CSS to style pages.

You could run into problems using short tags if they are not enabled.
so how do i correct that

You stop using them.

hey im an 80 year old grandad so how do i do that to the script i need all the help i can get
zalka

Instead of <?

you do

<?php

Thanks i did that now im getting a new error

Parse error: syntax error, unexpected ‘}’ in /home/pillsfor/public_html/youradsblaster.com/admin/index.php on line 45
I give up
Zalka

When you are programming you are bound to get errors both syntax and logic errors. Logic errors are even worse than syntax errors for they are harder to track down. When a person first starts programming they tend to get a lot of syntax errors, but over time they become less and less. However, they still happen and that is when debugging skills or a second pair of eyes comes in handy.

I suspect your actual problem is on this page: adminnavigation.php not the one posted.

Sponsor our Newsletter | Privacy Policy | Terms of Service