Jump to content

tomfmason

Staff Alumni
  • Posts

    1,693
  • Joined

  • Last visited

Everything posted by tomfmason

  1. I fixed the syntax errors...ie the double quotes. I also included the main.php in the beging of the content page instead of at the end. I made this a lot more complacated then it needed to be...lol The fix to the content page: [code]<?php  $title = "The Home Of Owpt";  $content = "   <div class=\"feature\">          <img src=\"images/php.jpg\" alt=\"\" width=\"160\" height=\"120\">     <p>     <b>Look Ma No Tables</b>     </p>     <p>     This is a test page that is made entirely of css.     </p>     <p>     I am knew to web design. I know that this is a very simple layout but     it is my first.     </p>     <p>     So Back Off....LOL     </p>   </div>   <div class=\"story\">     <h3>Goals</h3>     <p>     My main goals are to learn html/xhtml, css, php. I will be posting tutorials     based on my experience. One of the first tutorials that I will be creating is     a step by step instruction on developing css based layouts. This means that I     must learn more about it first...lol     </p>   </div>   <div class=\"story\">     <h3>Problems</h3>     <p>     I have several problems the first being the layout of my columns.     </p>     <p>     &lt;------------------------------------------------------------------------------------------------&gt;     </p>     <p>     I would like the right, left and center columns lengths to be the same as     the longest of the three. There are many more but I will try to figure them     out my self.     </p>   </div>"  ?> <?php include("includes/main.php"); ?>[/code] Thanks for your help
  2. I have a main php file that has three columns with header and footer. The content is the only thing that will change from page to page. I am wondering how I can give the content a variable name and print it into the main. php here is the main.php [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- DW6 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>The Home of Owpt</title> <link rel="stylesheet" href="main.css" type="text/css"> </head> <body bgcolor="#707070"> <div id="master"> <div id="masthead">   <?php include("header.php"); ?> </div> <div id="navBar"> <?php include("navbar.php"); ?> </div> <!--end navBar div --> <div id="headlines"> <?php include("headlines.php"); ?> </div> <!--end headlines --> <div id="content"> <?php print('$content'); ?>        </div> <!--end content --> <div id="siteInfo"> <?php include("footer.php"); ?> </div> </div> <br> </body> </html>[/code] and here is the content for the main page [code]<?php include("includes/main.php"); $content = "<div class="feature">     <img src="images/php.jpg" alt="" width="160" height="120">     <p>     <b>Look Ma No Tables</b>     </p>     <p>     This is a test page that is made entirely of css layouts.     </p>     <p>     I am knew to web design. I know that this is a very simple layout but     it is my first.     </p>     <p>     So Back Off....LOL     </p>   </div>   <div class="story">     <h3>Goals</h3>     <p>     My main goals are to learn html/xhtml, css, php. I will be posting tutorials     based on my experience. One of the first tutorials that I will be creating is     a step by step instruction on developing css based layouts. This means that I     must learn more about it first...lol     </p>   </div>   <div class="story">     <h3>Problems</h3>     <p>     I have several problems the first being the layout of my columns.     </p>     <p>     &lt;------------------------------------------------------------------------------------------------&gt;     </p>     <p>     I would like the right, left and center columns lengths to be the same as     the longest of the three. There are many more but I will try to figure them     out my self.     </p>   </div>" ?> [/code] I know that I can use echo but I don't think that that is the proper way to do it. Any suggestions would be great.
  3. I got it fixed. The fix [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- DW6 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Pure CSS Test Page</title> <link rel="stylesheet" href="http://www.thomashostings.net/includes/test.js" type="text/javascript"> </head> <body bgcolor="#707070"> <div id="master"> <div id="masthead">   <object type="application/x-shockwave-flash" width="770" height="200" data="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">     <param name="movie" value="../../images/header.swf" />     <a href="alternativepath">         <img src="../../images/header.jpg" width="770" height="200" alt="NO FLASH PLAYER INSTALLED" />     </a>   </object>   <div id="breadCrumb">     <a href="#">breadcrumb</a> /   </div> </div> [/code]
  4. I am wondering which is the best way to display a flash header with a pure css layout. This is the way that I have it now and it works fine but when I try to validate the code it will not validate.  I know that the td must be child of tr which must be a child of table. This means that it is not the right way. Any suggestions would be great. The html: [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- DW6 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Pure CSS Test Page</title> <link rel="stylesheet" href="javascript:alert('test');" type="text/css"> </head> <body> <div id="master"> <div id="masthead">       <td>     <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="770" height="200">         <param name="movie" value="../../images/header.swf">         <param name="quality" value="High">       <embed src="../images/header.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="160" height="160"></object>     </td>   <div id="breadCrumb">     <a href="#">breadcrumb</a> /   </div> </div> [/code] What could I use instead of <td> . I know that I could create a table but I am trying to avoid tables where ever possible. Any suggestions would be great.
  5. Ok thank you. I will research this throughly.
  6. [!--quoteo(post=388269:date=Jun 26 2006, 06:37 PM:name=Caesar)--][div class=\'quotetop\']QUOTE(Caesar @ Jun 26 2006, 06:37 PM) [snapback]388269[/snapback][/div][div class=\'quotemain\'][!--quotec--] Can you please be a bit more specific as to what you're asking? [/quote] When I split my site into different columns (i.e header, footer, right column, left column and center) I get a big mess. Big mess being, The header is centered the way I want but the left column and center are in the center of the page (on top of each other) and the footer and right column are way off. I have an example and the problem explained better as well as copies of my php code at the site.
  7. I am not sure if this is a problem that can be solved with css or not. I have recently switched from straight html to php and have no experience in css. Basically I split my pages into 5 separate areas. Header, footer, right column, left column and center column. The problem that I am running into is that the header and footer are in the right spot on the page but the left, right and center columns are way off. Here is a link to my site [a href=\"http://www.owpt.biz/test/index.php\" target=\"_blank\"]OWPT[/a] I have my problem, with an example, explained in more detail. Any help would be greatly appreciated
  8. I am knew to php. Before now my site was html only. I am now switching to php and am running into some problems. I am not sure if css would be the best way to do what I want or not. I am not expecting anyone to write the code for me. I would rather be pointed in the right direction, so that I will learn. Here is a link to a page that will explain my problem better [a href=\"http://www.owpt.biz/test/index.php\" target=\"_blank\"]OWPT[/a]. Any help would be greatly appericated. Thanks
  9. I followed the [a href=\"http://www.phpfreaks.com/tutorials/8/1.php\" target=\"_blank\"]Theme Tutorial[/a]. And yet I get this same error with the footer
  10. I am sure that this is a simple syntax error but I get the following error when I run my test.php script: [b]Parse error[/b]: parse error, unexpected '<' in [b]C:\htdocs\users\www\owpt\header.php[/b] on line 2 here is my header.php file: [code]<?php <div class="fixcenter"> <table border="0" width="100%" cellspacing="0" cellpadding="0">   <tr class="header">     <td valign="middle"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="200" align="top">             <param name="movie" value="/images/header.swf">             <param name="quality" value="high"><param name="LOOP" value="false">             <embed src="images/header.swf" width="790" height="200" loop="false" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>     </td>   </tr> </table> ?>[/code] I am knew to php and realy have no idea if I am doing this right. Any Ideas would be great.
  11. I am wondering how I can print product names, from a product table, into a drop down menu? Any suggestions would be greatly apperciated.
  12. I purchased numerous templates and after much fumbling I have a combanation that I realy like. The only problem is that when I try to publish to html I get one large jpg image. I would rather have the slices as seperate jpgs. Any suggestions on how to sepperate the slices when publishing for the web would be great. I have both photoshop 7.0 and image ready 7.0 . 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.