Jump to content

HoTDaWg

Members
  • Posts

    275
  • Joined

  • Last visited

Posts posted by HoTDaWg

  1. hi guys!

    i am going to be hosting a dance at my school coming up in march and i was wondering if anyone knows what you call big huge screens like the kind people can see from possibly 50/100 feet away, and whether or not you can install them at plaaces like a school. If i can find one, im gonna be renting one and project whatever is on my computer onto it. Although im pretty sure no one can answer my question, im still gonna post this thread  ;D and help would be greatly appreciated.

    HoTDaWg
  2. hi, i have a line here that checks if a total of 6 fields have been filled in, but i cant figure out the best way to say if the variables artist1,artist2,artist3,song1,song2,and song3 are filled in

    here is what i have so far:
    [code]
    if(isset($artist1 && $song1 && $artist2 && $song2 && $artist3 && $song3){
    [/code]

    any help would greatly be appreciated. thanks.

    HoTDaWg
  3. thanks a lot guys. but i changed the login.php script to:
    [code]
    <?php
    $submittedusername= $_REQUEST['submittedusername'];
    $submittedpassword= $_REQUEST['submittedpassword'];

    $username= "xxxxx"
    $password="xxxxxxxx";

    if ($submittedusername==$username  &&  $submittedpassword==$password){
    header("Location:http://www.yahoo.com/");
    } else {
    echo "Access Denied";
    }

    ?>
    [/code]
    but i still get this error:
    [code]
    Parse error: syntax error, unexpected T_VARIABLE in /home/mediacir/public_html/djscript/login.php on line 6
    [/code]
  4. its strange, its either when you hit submit the header location goes to Yahoo! or it says access denied. here is my script:
    [code]
    <?php
    $submittedusername = $_REQUEST['submittedusername'];
    $submittedpassword = $_REQUEST['submittedpassword'];

    $username[0] = "user1";
    $username[1] = "user2";
    $password="pass";

    if ($submittedusername=='$username'  &&  $submittedpassword=='$password'){
    header("Location:http://www.yahoo.ca/");
    } else {
    echo "Access Denied";
    }

    ?>
    [/code]
    and the html part is:
    [code]
    <html>
    <head>
    <title>Log-in</title>
    <head>
    </head>
    <body>
    <form name="login" action="login.php">
    username: <input name="submittedusername" type="text" /><br />
    password: <input name="submittedpassword" type="text" /><br />
    <input type="submit" value="Submit!" />
    </form>
    </body>
    </html>
    [/code]
    where have i gone wrong?
    any help would greatly be appreciated. thanks.

    HoTDaWg
  5. hey,

    I have the following script:
    [code]
    <?php

    $conn = mysql_connect("localhost","*****","******");
    mysql_select_db("*********");

        $limit          = 3;             
        $query_count    = "SELECT count(*) FROM news";   
        $result_count  = mysql_query($query_count);   
        $totalrows      = mysql_num_rows($result_count);

        if(empty($page)){
            $page = 1;
        }
           

        $limitvalue = $page * $limit - ($limit);
        $query  = "SELECT * FROM news ORDER BY date DESC, LIMIT $limitvalue, $limit ";       
        $result = mysql_query($query) or die("Error: " . mysql_error());

        if(mysql_num_rows($result) == 0){
            echo("Nothing to Display!");
        }

        $bgcolor = "#E0E0E0"; // light gray

        echo("<table width=\"100%\" border=\"0\" height=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
       
        while($row = mysql_fetch_array($result)){
            if ($bgcolor == "#E0E0E0"){
                $bgcolor = "#CCCCCC";
            }else{
                $bgcolor = "#E0E0E0";
            }

        echo("<tr bgcolor=".$bgcolor."><td width=\"10\">");
        echo($row["id"]);
        echo("</td><td width=\"60%\"><li>");
        echo($row["content"]);
        echo("</td><td width=\"30%\">");
        echo($row["today"]);
        echo("</td></tr>");
        }

        echo("</table>");





    ?>
    [/code]

    Now i get the following error:
    [code]
    Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 3' at line 1
    [/code]

    Any help would greatly be appreciated,

    HoTDaWg
  6. i hate to be a pain guys, but the script is working! YAY! The only problem is that the images are not showing :(. I view sourced the page and here is what it showed:

    [code]
    <html>
    <head>
    <title>Homework Administration- Delete Homework</title>
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    </head>
    <body>
    <hr>
      Image: <image src='' height="50" width="50"><br>
        Id: 14 <br>
        Date: 03.15.06<br>

        <a href='/testscripts/photoalbums/gallery.php?id=14'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>
        Id: 13 <br>
        Date: 03.15.06<br>
        <a href='/testscripts/photoalbums/gallery.php?id=13'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>

        Id: 12 <br>
        Date: 03.14.06<br>
        <a href='/testscripts/photoalbums/gallery.php?id=12'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>
        Id: 11 <br>
        Date: 03.14.06<br>

        <a href='/testscripts/photoalbums/gallery.php?id=11'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>
        Id: 10 <br>
        Date: 03.14.06<br>
        <a href='/testscripts/photoalbums/gallery.php?id=10'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>

        Id: 9 <br>
        Date: 03.14.06<br>
        <a href='/testscripts/photoalbums/gallery.php?id=9'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>
        Id: 8 <br>
        Date: 03.14.06<br>

        <a href='/testscripts/photoalbums/gallery.php?id=8'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>
        Id: 7 <br>
        Date: 03.13.06<br>
        <a href='/testscripts/photoalbums/gallery.php?id=7'>delete</a><hr>
      Image: <image src='' height="50" width="50"><br>

        Id: 6 <br>
        Date: 03.13.06<br>
        <a href='/testscripts/photoalbums/gallery.php?id=6'>delete</a></body>
    </html>

    [/code]

    as you all may have noticed the image location does not come up for some reason.

    very weird,

    my appologies and thanks

  7. ooh whoops. Sorry guys. GOD GOD! HARD TO BELIEVE HOW MANY SYNTAX ERRORS I GOT! READ THIS:

    [code]
    Parse error: syntax error, unexpected $end in /home/cortez/public_html/testscripts/photoalbums/gallery.php on line 31
    [/code]

    here is the script we got so far:

    [code]
    <html>
    <head>
    <title>Homework Administration- Delete Homework</title>
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    </head>
    <body>
    <?php
    $conn = mysql_connect("localhost","cortez","165745");

    //now choose the database to use
    mysql_select_db("cortez_photoalbums");

    $id = $_GET['id']; // retrieve id passed via URL
    if (isset($id)) {
        $query = "DELETE FROM images WHERE id = '$id' ";
        $result = mysql_query($query);
    }
    $getimages = mysql_query("SELECT * FROM images ORDER BY id DESC");
    while($r=mysql_fetch_array($getimages)) {

    extract($r); //remove the $r so its just $variable
        echo("<hr>
      Image: <image src='$_POST[imageurl]' height=\"50\" width=\"50\"><br>
        Id: $id <br>
        Date: $date<br>
        <a href='". $_SERVER['PHP_SELF']. "?id=$id'>delete</a>");

    ?>
    </body>
    </html>
    [/code]

    this is really getting me angry (the script),

    HotDawg
  8. the script seems a lot better now,

    we so far got:

    [code]
    <html>
    <head>
    <title>Homework Administration- Delete Homework</title>
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    </head>
    <body>
    <?php
    $conn = mysql_connect("localhost","cortez","165745");

    //now choose the database to use
    mysql_select_db("cortez_photoalbums");

    $id = $_GET['id']; // retrieve id passed via URL
    if (isset($id)) {
        $query = "DELETE FROM images WHERE id = '$id' ";
        $result = mysql_query($query);
    }
    $getimages = mysql_query("SELECT * FROM images ORDER BY id DESC");
    while($r=mysql_fetch_array($getimages)) {

    extract($r); //remove the $r so its just $variable
        echo("<hr>
      Image: <image src='$_POST[imageurl]' height=\"50\" width=\"50\"><br>
        Id: $id <br>
        Date: $date<br>
        <a href='". $_SERVER['PHP_SELF']. "?id=$id'>delete</a>");

    </body>
    </html>
    [/code]

    the only problem is, as much, as i hate to say this i am getting the following error:

    [code]
    Parse error: syntax error, unexpected '<' in /home/cortez/public_html/testscripts/photoalbums/gallery.php on line 28
    [/code]

    strange.

    HotDawg
  9. hi,


    I have a script, which has an error. Php gives me the following error:

    [code]
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/cortez/public_html/testscripts/photoalbums/gallery.php on line 23
    [/code]

    I am trying to create a gallery of all the images which have been uploaded. Here is the script:

    [code]
    <html>
    <head>
    <title>Image Gallery</title>
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    </head>
    <body>
    <?php
    $conn = mysql_connect("localhost","phpfreaks","rocks");

    //now choose the database to use
    mysql_select_db("cortez_photoalbums");

    $id = $_GET['id']; // retrieve id passed via URL
    if (isset($id)) {
        $query = "DELETE FROM images WHERE id = '$id' ";
        $result = mysql_query($query);
    }
    $getimages = mysql_query("SELECT * FROM images ORDER BY id DESC");
    while($r=mysql_fetch_array($getimages)) {

    extract($r); //remove the $r so its just $variable
        echo("<hr>
        Image: <image src='". $_POST['imageurl']"' height="50" width="50"><br>
        Id: $id <br>

        Date: $date<br>
        <a href='". $_SERVER['PHP_SELF']. "?id=". $id. "'>delete</a>");
    }
    ?>

    </body>
    </html>
    [/code]

    thanks,

    HotDawg
  10. thank you all so much for your help. The script is working Great! The only problem is I get the following error when using my latest page [b]gallery.php[/b]:

    [code]
    Parse error: syntax error, unexpected T_STRING in /home/cortez/public_html/testscripts/photoalbums/gallery.php on line 24
    [/code]

    Here is the script:

    [code]<html>
    <head>
    <title>Homework Administration- Delete Homework</title>
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    </head>
    <body>
    <?php

    $conn = mysql_connect("localhost","cortez","165745");

    //now choose the database to use
    mysql_select_db("cortez_photoalbums");

    $id = $_GET['id']; // retrieve id passed via URL
    if (isset($id)) {
        $query = "DELETE FROM images WHERE id = '$id' ";
        $result = mysql_query($query);
    }
    $getimages = mysql_query("SELECT * FROM images ORDER BY id DESC");
    while($r=mysql_fetch_array($getimages)) {
        extract($r); //remove the $r so its just $variable
        echo("<hr>
        Id: $id <br>
        Image: <image src="images/$imageurl" height="50" width="50"><br>
        Date: $date<br>
        <a href='". $_SERVER['PHP_SELF']. "?id=". $id. "'>delete</a>");
    }
    ?>

    </body>
    </html>
    [/code]

    I would be nowhere today if i had not found out about this site,

    Hotdawg

    PS: the reason I am adding the uploads/ in my image tag is because take a look at my database when I exported it:

    [code]
    -- phpMyAdmin SQL Dump
    -- version 2.6.4-pl2
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Mar 14, 2006 at 03:50 PM
    -- Server version: 4.1.14
    -- PHP Version: 4.3.11
    --
    -- Database: `cortez_photoalbums`
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table `images`
    --

    CREATE TABLE `images` (
      `id` int(15) NOT NULL auto_increment,
      `imageurl` varchar(255) NOT NULL default '',
      `titled` varchar(255) NOT NULL default '',
      `contributedby` varchar(22) NOT NULL default '',
      `date` varchar(50) NOT NULL default '0000-00-00',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9;

    --
    -- Dumping data for table `images`
    --

    INSERT INTO `images` VALUES (1, '"uploads/" . $_FILES["file"]["name"]', '4', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (2, '"uploads/"["file"]["name"]', '1', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (3, '"uploads/"["file"]["name"]', '7', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (4, '"uploads/"["name"]', '6', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (5, '("uploads/" . $_FILES["file"]["name"])', '5', 'asd', '03.13.06');
    INSERT INTO `images` VALUES (6, 'uploads/4.gif', '4', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (7, '2.gif', '2', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (8, '29.gif', 'some image', 'some guy', '03.14.06');
    [/code]
  11. appreciate the help a lot, but according to my export code, my code still doesnt work:

    [code]
    -- phpMyAdmin SQL Dump
    -- version 2.6.4-pl2
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Mar 13, 2006 at 05:58 PM
    -- Server version: 4.1.14
    -- PHP Version: 4.3.11
    --
    -- Database: `cortez_photoalbums`
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table `images`
    --

    CREATE TABLE `images` (
      `id` int(15) NOT NULL auto_increment,
      `imageurl` blob NOT NULL,
      `titled` varchar(255) NOT NULL default '',
      `contributedby` varchar(22) NOT NULL default '',
      `date` varchar(50) NOT NULL default '0000-00-00',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7;

    --
    -- Dumping data for table `images`
    --

    INSERT INTO `images` VALUES (1, 0x2275706c6f6164732f22202e20245f46494c45535b2266696c65225d5b226e616d65225d, '4', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (2, 0x2275706c6f6164732f225b2266696c65225d5b226e616d65225d, '1', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (3, 0x2275706c6f6164732f225b2266696c65225d5b226e616d65225d, '7', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (4, 0x2275706c6f6164732f225b226e616d65225d, '6', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (5, 0x282275706c6f6164732f22202e20245f46494c45535b2266696c65225d5b226e616d65225d29, '5', 'asd', '03.13.06');
    INSERT INTO `images` VALUES (6, 0x75706c6f6164732f342e676966, '4', 'some_guy', '03.13.06');

    [/code]

    thanks a lot though
  12. Hello,

    I am creating a photo gallery for the awsome people on my site (if any lol). What I am doing is once the image is uploaded, I want all the info added to a database. Everything is working great. The only problem is that I can not seem to get the location of the file once it is uploaded right. Take a look at the dumping data of my mySql database once I export it:

    [code]
    -- phpMyAdmin SQL Dump
    -- version 2.6.4-pl2
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Mar 13, 2006 at 05:22 PM
    -- Server version: 4.1.14
    -- PHP Version: 4.3.11
    --
    -- Database: `cortez_photoalbums`
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table `images`
    --

    CREATE TABLE `images` (
      `id` int(15) NOT NULL auto_increment,
      `imageurl` blob NOT NULL,
      `titled` varchar(255) NOT NULL default '',
      `contributedby` varchar(22) NOT NULL default '',
      `date` varchar(50) NOT NULL default '0000-00-00',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6;

    --
    -- Dumping data for table `images`
    --

    INSERT INTO `images` VALUES (1, 0x2275706c6f6164732f22202e20245f46494c45535b2266696c65225d5b226e616d65225d, '4', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (2, 0x2275706c6f6164732f225b2266696c65225d5b226e616d65225d, '1', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (3, 0x2275706c6f6164732f225b2266696c65225d5b226e616d65225d, '7', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (4, 0x2275706c6f6164732f225b226e616d65225d, '6', 'some_guy', '03.13.06');
    INSERT INTO `images` VALUES (5, 0x282275706c6f6164732f22202e20245f46494c45535b2266696c65225d5b226e616d65225d29, '5', 'asd', '03.13.06');
    [/code]

    weird eh? Here is the code for upload.html:

    [code]
    <html>
    <head>
    <title>Upload now!</title>
    </head>

    <form action="upload.php" method="post" enctype="multipart/form-data">
      <p>File Upload</p>
      <label for="file">File</label>
      <input type="file" name="file" id="file" /><br><br>
      <label for="titled">File Name</label><input type="text" name="titled"><br><br>
      <label for="contributedby">Contributed by:</label><input type="text" name="contributedby"<br><br>
      <br />
      <input type="submit" name="submit" value="Submit" />
    </form>
    <body bgcolor="#FFFFFF">

    </body>


    </html>
    [/code]

    here is the code for upload.php:

    [code]
    <?php
    if (($_FILES["file"]["type"] == "image/gif" OR "images/jpg") &&
    ($_FILES["file"]["size"] < 1500000)) {
      echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
      echo "Uploading " . $_FILES["file"]["name"];
      echo " (" . $_FILES["file"]["type"] . ", ";
      echo ceil($_FILES["file"]["size"] / 1024) . " Kb).<br />";

      if (file_exists("uploads/" . $_FILES["file"]["name"])) {
        echo $_FILES["file"]["name"] . " already exists.  ";
        echo "Please delete the destination file and try again.";
      } else {
        move_uploaded_file($_FILES["file"]["tmp_name"],
        "uploads/" . $_FILES["file"]["name"]);

        echo "The file has been successfully uploaded!:D";

    $imageurl = '("uploads/" . $_FILES["file"]["name"])';

    $titled = $_REQUEST['titled'];
    $contributedby = $_REQUEST['contributedby'];
    $date = date("m.d.y");

    $titled=strip_tags($titled);
    $contributedby=strip_tags($contributedby);

    $titled=addslashes($titled);
    $contributedby=addslashes($contributedby);

    $conn = mysql_connect("localhost","cortez","165745");

    //now choose the database to use
    mysql_select_db("cortez_photoalbums");

    //Save the request in SQL syntax to a string
    $request = "INSERT INTO images values(0,'".$imageurl."','".$titled."','".$contributedby."','".$date."')";

    $results = mysql_query($request,$conn);

      }

    } else
      echo "Sorry, we only accept .GIF, and .jpg images under 1500 Kb for upload.";
    ?>
    [/code]

    I would love any assistance in solving this problem.

    HoTDaWg
  13. hello,

    I have this script which allows users to upload files. I get the following error:

    [code]
    Parse error: syntax error, unexpected ',' in /home/cortez/public_html/testscripts/photoalbums/upload.php on line 2
    [/code]

    All i want to do is to be able to have more than just .gif images available for upload. I want jpg, and bmp, etc.

    here is the code for upload.html

    [code]
    <html>
    <head>
    <title>Upload now!</title>
    </head>

    <form action="upload.php" method="post" enctype="multipart/form-data">
      <p>File Upload</p>
      <label for="file">File</label>
      <input type="file" name="file" id="file" />
      <br />
      <input type="submit" name="submit" value="Submit" />

    </form>
    <body bgcolor="#FFFFFF">

    </body>


    </html>
    [/code]

    and the code for upload.php

    [code]

    <?php
    if (($_FILES["file"]["type"] == "image/gif", "images/jpg") &&
    ($_FILES["file"]["size"] < 150000)) {
      echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
      echo "Uploading " . $_FILES["file"]["name"];
      echo " (" . $_FILES["file"]["type"] . ", ";
      echo ceil($_FILES["file"]["size"] / 1024) . " Kb).<br />";

      if (file_exists("uploads/" . $_FILES["file"]["name"])) {
        echo $_FILES["file"]["name"] . " already exists.  ";
        echo "Please delete the destination file and try again.";
      } else {
        move_uploaded_file($_FILES["file"]["tmp_name"],
        "uploads/" . $_FILES["file"]["name"]);
        echo "File has been stored in your uploads directory.";
      }

    } else
      echo "Sorry, we only accept .GIF images under 15Kb for upload.";
    ?>
    [/code]

    help would be greatly appreciated. Thanks.

    HoTDaWg
  14. u can simply make the background through Html:

    [code]
    <html>
    <head>
    <title>Sample yo</title>
    </head>
    <body background="images/yourimage.gif">
    asdeasdas
    </body>
    </html>
    [/code]

    hope this helps!

    hotdawg
  15. hi all,

    I have a really messed up site. If you take a look, you will notice that the tables on the left and right are really messed up. You can view them at:

    [a href=\"http://www.thomasstreet.deccanhost.com/74\" target=\"_blank\"]Class 74's Website[/a]

    That is a website for my class.

    Here is the code for index.php:

    [code]
    <html>
    <head>
    <title>Class 74- Be the Change</title>
    <!- VIEW SOURCE PREVENTER SCRIPT BEGINS -!>

    <script type="text/javascript">
    <!--

    var message="Thomas Street Middle School- Live, Love, Laugh, Learn in harmony; and strive to leave a legacy"; // Your no right click message here
    var closeWin="0"; // Do you want to close window after message (1 for yes 0 for no)

    // JavaScript by Dave Lauderdale
    // Published at: www.digi-dl.com

    function IE(e)
    {
         if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
         {
              alert(message); if(closeWin=="1") self.close();
              return false;
         }
    }
    function NS(e)
    {
         if (document.layers || (document.getElementById && !document.all))
         {
              if (e.which==2 || e.which==3)
              {
                   alert(message); if(closeWin=="1") self.close();
                   return false;
              }
         }
    }
    document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");

    //-->
    </script>

    <!- VIEW SOURCE PREVENTER SCRIPT ENDS -!>

    <script language="JavaScript1.2">

    <!--

    var url = "#";
    var title = "#";

    function bookmark(){
    if(document.all)
    window.external.AddFavorite(url,title)
    }

    // -->

    </script>
    </head>
    <body bgcolor="#51616A" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    <center>
    <!- LINK CONTROLLING STARTS -!>

    <style type="text/css">
    <!--
    A:link { text-decoration: none; color:#FF0000 }
    A:visited { text-decoration: none; color:#FF0000 }
    A:hover { text-decoration: none; color:#FFFFFF }
    -->
    </style>


    <!- LINK CONTROLLING ENDS -!>

    <!- PRE NAVIGATIONAL BAR STARTS -!>
    <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" background="images/prenavback.gif">
    <center><img border="0" src="http://www.weight-click.com/loss.php?page=http://www.thomasstreet.hostlix.com/&digit=v5"  alt="Free Visitor Counters">
    </td>


    </tr>
    </table>

    <?php include 'header.php'; ?>


    <table width="750" height="0" border="0" cellpadding="0" cellspacing="0" valign="top">
    <tr>


    <td width="20" background="images/leftsidebar.gif">&nbsp;</td>

    <td bgcolor="#ffffff"><?php include 'leftnav.php'; ?></td>

    <td bgcolor="#ffffff">
    <center>
    <table width="385" height="0" style="border: 1px solid #000000;"  valign="top" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666"  valign="top"><font color="#FFFFFF">Welcome!</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc"><div align="center" valign="center">Welcome to Class 74's website! We suggest that you will visit our website frequently as we plan to update it throughtout the year. We hope that you will enjoy and explore this website and in the end, will be able to produce a clear and through idea of our class. If you have questions, concerns, feedback, etc.;<a href="contactus.php">you contact us by click here.</a>
    </div>
    </td>
    </tr>
    </table>
    <br>


    <?php include 'searchnav.php'; ?>

    </center>

    </td>
    <td bgcolor="#ffffff"><?php include 'rightnav.php'; ?></td>

    <td width="20" background="images/rightsidebar.gif">&nbsp;</td>

    <tr>
    </table>




    <table width="750" height="0" border="0" cellpadding="0" cellspacing="0">
    <tr>


    <td width="20" background="images/leftsidebar.gif">&nbsp;</td>

    <td bgcolor="#ffffff">&nbsp;<br><br></td>

    <td width="20" background="images/rightsidebar.gif">&nbsp;</td>

    </tr>
    </table>



    <table width="750" height="0" border="0" cellpadding="0" cellspacing="0">
    <tr>


    <td width="20" background="images/leftsidebar.gif">&nbsp;</td>

    <td><?php include 'subnav.php'; ?></td>

    <td width="20" background="images/rightsidebar.gif">&nbsp;</td>

    </tr>
    </table>

    </body>
    </html>
    [/code]

    Here is the code for left nav.php:

    [code]
    <?php echo '<table width="150" height="0" style="border: 1px solid #000000;" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666"  valign="top"><font color="#FFFFFF">Main Menu</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc"><div align="left">
    <a title="Home" href="index.php">Home</a><br>
    <a title="Homework Board" href="homeworkboard.php">Homework Board</a><br>
    <a title="About Us" href="aboutus.php">About Us</a><br>
    <a title="Contact Us" href="http://www.thomasstreet.deccanhost.com/74/phpBB2">Forum</a><br>
    <a title="Contact Us" href="contactus.php">Contact Us</a><br>

    </td></div>
    </tr>
    </table>
    <br>
    <table width="150" height="0" style="border: 1px solid #000000;" valign="top" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666"><font color="#FFFFFF">Quote</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc"><div align="left">
    "Do not worry about your difficulties in Mathematics. I can assure you mine are still greater"
    <br>
    - Albert Einstein
    </td></div>
    </tr>
    </table>
    <br>

    <table width="150" height="0" style="border: 1px solid #000000;" valign="top" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666"><font color="#FFFFFF">Message From Mr. Benoit</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc"><div align="left">
    "How will you make the world yours?" - Mr. Benoit, homeroom teacher of class 74
    </td></div>
    </tr>
    </table>
    <br>
    <table width="150" height="0" style="border: 1px solid #000000;" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666"><font color="#FFFFFF">Quick Links</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc"><div align="left">
    <a title="Google" href="http://www.google.ca">Google</a><br>
    <a title="Link To Learning" href="http://www.linktolearning.com">Link To Learning</a><br>
    <a title="Ask Jeeves" href="http://www.ask.com">Ask Jeeves</a><br>
    <a title="Yahooligans" href="http://www.yahooligans.com">Yahooligans</a><br>
    <a title="Thomas Street Middle School Home" href="http://thomasstreet.peelschools.org">Thomas Street Middle School Home</a><br>

    </td></div>
    </tr>
    </table>

    <br>
    <table width="150" height="0" style="border: 1px solid #000000;" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666"><div align="left"><font color="#FFFFFF">Class News</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc">
    <li>01/20/06- Patrick has returned from the dead!<i>posted by Sarah</i><br>
    <li>17/01/05- Patrick the hat has died. Patrick was a good fellow worn by a variety of people. He provided every student with a warm smile and ensured our happines.We will miss you patrick!<br>
    <li>30/12/05- This website has been released!<br>
    </td></div>
    </tr>
    </table>'; ?>[/code]

    rightnav.php

    [code]
    <?php echo '<br><table width="150" height="0" style="border: 1px solid #000000;" cellpadding="0" cellspacing="0">
    <tr>
    <td bgcolor="#666666" valign="top"><font color="#FFFFFF">Site News</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc" valign="top">
    <li>30/12/05- <u>HUGE NEWS-</u><b>THE FORUMS ARE NOW HERE</b><br>
    <li>30/12/05- The <a href="contactus.php">contact us page</a> has almost been completed<br>
    <li>30/12/05- Following a suggestion, a counter has been added.<br>
    </td>
    </tr>
    </table>

    <br><table width="150" height="0" style="border: 1px solid #000000;" cellpadding="0" cellspacing="0" valign="top">
    <tr>
    <td bgcolor="#666666"><font color="#FFFFFF">Show Your Support for Mr. Benoit</font></td>
    </tr>
    <tr>
    <td bgcolor="#cccccc" valign="top">
    To show your suport, visit this website- <a href="http://www.ratemyteachers.ca./schools/ontario/mississauga/thomas_street_middle_school/jason__benoit" target="blank">Click Here!</a>
    <br>
    </td>
    </tr>
    </table>'; ?>
    [/code]

    and those are about all I think you all will need. I have been hired by a teacher from my school to make him a website, this time for an organization he works for. I REALLY need to know how to fix this problem. Please help me.

    Bakhtawar Awan
  16. 12 male.

     

    Next July is gonna mark one year of php programming for me! But, just because of one year, it doesnt mean im good at php. I'm currently copying othere people's scripts (legally of course) and customizing them (and even then I am making mistakes lol)

×
×
  • 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.