Jump to content

xplicit503

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xplicit503's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ah, after so long I finally got the script where I want it! I added in a the following line: [code]          <?php switch($_GET['id']){          default: include_once('news.php');          break; [/code] Instead of the include code it made more sense to make the default in the script itself include the news.php only once. Thanks toplay for your assistance and ability to hang in there with me while I struggled to explain php in the little way that I could. Also I did like the meathod you helped me out with, instead of just giving me the code it was step to step and made me think on my own.
  2. Hmm, The news.php's content is text that says: "Coding CMS initiated. Site is still about 30% done." Appologies on me being extremly unclear, its just that I have been working on this for a few hours and my head hurting. What could I do to make the news.php show up just on the index.php and no other page? Currently I went back to my original understanding of the include/linking code from the FAQ: [code]         <TD width="481" ROWSPAN=4 valign="top" class="content03">         <div align="left">          <?php include_once("news.php"); ?>          <?php switch($_GET['id']){          case 'courses':          include 'courses.php';          break;          case 'events':          include 'events.php';          break;          case 'staff':          include 'staff.php';          break;          case 'tools':          include 'tools.php';          break;          case 'about':          include 'about.php';          break;          }?>           </div>         </TD>       </TR>       <TR> [/code] Im not certain on where to put in the switch code (thus reason why I am in the newbies forum.)
  3. My appologizes for the lack of information, but I needed to change the directory protection off. To give the site url to actually view the problem in person. [a href=\"http://www.xplicit.chatvisual.com/bt/\" target=\"_blank\"]Link to website[/a] 1.) I have placed in the include_once() like so: [code] <?php include_once('news.php'); switch($_GET['id']){ case 'courses': include 'courses.php'; break; case 'events': include 'events.php'; break; case 'staff': include 'staff.php'; break; case 'tools': include 'tools.php'; break; case 'about': include 'about.php'; break; }?>[/code] Well the right curly brace was missing in the first post for some reason. But it is in there now. Although the and "news" advice fixed somethings, along with the include_once() code. But now click on the courses button.(The only operational one so far on the link) You still see at the top of the content box the old content from the news.php
  4. Use Photoshop/Imageready to create the layout. Export it as a Web File, yadda yada yada, then when you get into dreamweaver you should leave the entire image intact. and use image maps, its the simpilar way rather than slicing each indivisual table. Example of a Imagemap: [code]             <map name="Map">             <area shape="rect" coords="461,19,512,42" href="#">             <area shape="rect" coords="511,19,560,42" href="#">             <area shape="rect" coords="559,19,617,41" href="#">             <area shape="rect" coords="615,19,661,40" href="#">             <area shape="rect" coords="660,19,697,40" href="#"> </map>[/code] Dreamweaver has a nifty tool that draws them in to the area which you select.
  5. I found your site while browsing through google and it seemed to be a great community. I looked up in this site what I had needed in the FAQ section of the "Newbie Help Forum", which was the include code/php linking. Now from what I have read in other threads people have been flamed for "retarded" questions such as the one I am asking, but I did just start to scrape the surface of the php world, and I am in need of assistance. Current Code in use: [code]<?php include 'news.php';          switch($_GET['id']){          case 'news':          include 'news.php';          break;          case 'courses':          include 'courses.php';          break;                  ?> [/code] The problem is that it works, but when I click on my links it still leaves the default included content in the table. I've been searching for a few days now, and this was my last option. If you need to see the actual site please let me know. Thanks.
×
×
  • 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.