Jump to content

Search the Community

Showing results for tags 'my first website'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi I am newbie in PHP Programming or in any programming languages but Im willing to learn in PHP Programming My first project for myself is to create a simple website with a MENU Navigation like Home, About US, Contacts US and News. here is my CODE: <html> <head> <title>My First Website</title> <style type="text/css"> body { font-family: Verdana; font-size: 12px; alignment-adjust: middle; } a { color: #000; margin-right: 10px; } #menu { font-size: 10px; border-bottom: 1px solid #000; margin-left: auto; margin-right: auto; width: 650px; padding: 5px; } </style> <div id="header"><h1>My First Website</h1> </div> <div id="menu"> <a href="index.php">Home</a> <a href="index.php?p=aboutus">About us</a> <a href="index.php?p=contacus">Contact us</a> <a href="index.php?p=news">News</a> </div> <div id="content"> <?php $pages_dir = 'pages'; if (!empty($_GET['p'])) { $pages = scandir($pages_dir, 0); unset($pages[0], $pages[1]); $p = $_GET['p']; if (in_array($p.'.php', $pages)) { include ($pages_dir.'/'.$p.'.php'); } else { echo 'Sorry, Page has not found.'; } } else { include($pages_dir.'/index.php'); } ?> </div> </body> </head> </html> I just want to insert images in every menu navigation or enchance it not just only a text. Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.