PHP web page creation in dreamweaver?

Russell C

New member
Ok the team I'm on has created a web interface/database for our school as a project. It's almost complete but it's missing three things, a webpage that shows what a user has submitted, an administration page that shows all users that have registered with the system, and links that show up only when an admin has logged in.

Now I believe these two pages have to deal with session variables, my question is how do we go about creating these two pages in php with dreamweaver? That's the application we have been using this semester so if it can be done in this it would be very helpful. I know this may be alot but any help would be appreciated.
 
to control session

on each page do this

<?
session_start();

if(isset($_SESSION['username']) && isset($_SESSION['password']) && isset($_SESSION['access']) && $_SESSION['access'] == "Admin")
{
echo "This this is the content for admin";
}
else
{
echo "This is the content for a regular user";
}
?>

once you start doing PHP in DW switch to coding view or split. DW will not display the PHP in the design view. You will have to use DW as a line counter for debugging.
 
Back
Top