Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 06-15-05   #1 (permalink)
Unix Evangelist
 
MikeEnIke's Avatar
 
amd nvidia

Join Date: Nov 2004
Location: Delware, USA
Posts: 2,439

Rep: 210 MikeEnIke is acknowledged by manyMikeEnIke is acknowledged by manyMikeEnIke is acknowledged by many
Unique Rep: 133
FAQs Submitted: 12
Hardware Reviews: 1
Trader Rating: 2
Default PHP Question

Hey I'm building a new website for hardware reviews and at the moment using a free server host eventually hope to get a domain and hosting though. My question is I am using this code for the main page (not near finished just started today)
Code:
<html>
 <head>
 <title>Tech Guru - The best reviews on the web</title>
 </head>
 <body>
 <php? include ('layout.php');
And for the layout.php I am going to add a sidebar link set and a header with and image I will make. Now I will be using table and I was wondering if I did that how would I add information to the main table. IE: When I'm on home have it say welcome to blah blah... Would I have to go about this another way for if I just enter text will it go in that main window or what?
__________________
System: My System
CPU
Barton
Motherboard
Abit AN7
Sound Card
On Mobo
Power Supply
Aspire
Case
Aspire X-Navigator
OS
Windows XP Pro & FreeBSD
Monitor
****ty dell
MikeEnIke is offline   Reply With Quote
Old 06-15-05   #2 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 5,106

FAQs Submitted: 8
Folding Team Rank: 128
Hardware Reviews: 2
Trader Rating: 12
Default

Quote:
Originally Posted by MikeEnIke
Hey I'm building a new website for hardware reviews and at the moment using a free server host eventually hope to get a domain and hosting though. My question is I am using this code for the main page (not near finished just started today)
Code:
<html>
<head>
<title>Tech Guru - The best reviews on the web</title>
</head>
<body>
<php? include ('layout.php');
And for the layout.php I am going to add a sidebar link set and a header with and image I will make. Now I will be using table and I was wondering if I did that how would I add information to the main table. IE: When I'm on home have it say welcome to blah blah... Would I have to go about this another way for if I just enter text will it go in that main window or what?
I am afraid I am just not following your question, but I will try. It seems to me that you would just code that as plain HTML underneath your include.

Code:
<html>
<head>
<title>Tech Guru - The best reviews on the web</title>
</head>
<body>
<php? include ('layout.php'); ?>
Welcome message
</body>
</html>
A lot of this depends on how your layout is setup. I usually create both header and footer files.

Code:
<php? include (header.php'); ?>
Text
<php? include (footer.php'); ?>
That way you can more easily change the entire layout of the site. Many of the sites I have done utilize different skins by changing the header and footer includes.
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

Real Programmers Don't Document
If it was hard to write, it should be hard to understand.

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Rocketfish
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
Overclock.net - 2009 Chimp Challenge Champions 2 Million+ Folding at Home points

Last edited by BFRD : 06-15-05 at 10:30 AM
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Old 06-15-05   #3 (permalink)
Retired Section Director
 
Xaimus's Avatar
 
amd nvidia

Join Date: Dec 2004
Posts: 571

Trader Rating: 0
Default

<?php
not
<php?
Xaimus is offline Overclocked Account   Reply With Quote
Old 06-15-05   #4 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 5,106

FAQs Submitted: 8
Folding Team Rank: 128
Hardware Reviews: 2
Trader Rating: 12
Default

Quote:
Originally Posted by Xaimus
<?php
not
<php?
Thanks I didn't notice that, I usually just use <? but not every implementation allows that. Thats what I get for copy/paste without thinking.
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

Real Programmers Don't Document
If it was hard to write, it should be hard to understand.

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Rocketfish
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
Overclock.net - 2009 Chimp Challenge Champions 2 Million+ Folding at Home points
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Old 06-15-05   #5 (permalink)
Unix Evangelist
 
MikeEnIke's Avatar
 
amd nvidia

Join Date: Nov 2004
Location: Delware, USA
Posts: 2,439

Rep: 210 MikeEnIke is acknowledged by manyMikeEnIke is acknowledged by manyMikeEnIke is acknowledged by many
Unique Rep: 133
FAQs Submitted: 12
Hardware Reviews: 1
Trader Rating: 2
Default

Quote:
Originally Posted by Xaimus
<?php
not
<php?
Lol yes I noticed that. I wil include a header and footer but my question is if I can just have the template.php be two table and if somehow on the index.php by jsut righting on that it would show up in the second table.
__________________
System: My System
CPU
Barton
Motherboard
Abit AN7
Sound Card
On Mobo
Power Supply
Aspire
Case
Aspire X-Navigator
OS
Windows XP Pro & FreeBSD
Monitor
****ty dell
MikeEnIke is offline   Reply With Quote
Old 06-15-05   #6 (permalink)
Unix Evangelist
 
MikeEnIke's Avatar
 
amd nvidia

Join Date: Nov 2004
Location: Delware, USA
Posts: 2,439

Rep: 210 MikeEnIke is acknowledged by manyMikeEnIke is acknowledged by manyMikeEnIke is acknowledged by many
Unique Rep: 133
FAQs Submitted: 12
Hardware Reviews: 1
Trader Rating: 2
Default

Nevermind I got that to work. Now my question is when in a table is there a way to make the text at the top of the table i knwo there is but i forget how. It always turns out in the center for me.
__________________
System: My System
CPU
Barton
Motherboard
Abit AN7
Sound Card
On Mobo
Power Supply
Aspire
Case
Aspire X-Navigator
OS
Windows XP Pro & FreeBSD
Monitor
****ty dell
MikeEnIke is offline   Reply With Quote
Old 06-15-05   #7 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 5,106

FAQs Submitted: 8
Folding Team Rank: 128
Hardware Reviews: 2
Trader Rating: 12
Default

Quote:
Originally Posted by MikeEnIke
Nevermind I got that to work. Now my question is when in a table is there a way to make the text at the top of the table i knwo there is but i forget how. It always turns out in the center for me.
<td valign="top,bottom" align="left,right,center" .....

obviously use only one of each, or better yet use style sheets

create a file called default.css and add this line in your <head> tag

<Link rel="stylesheet" type="text/css" href="/Default.css">

as to the contents of the css here is a start

Code:
body {
 font-family:Arial, Helvetica, sans-serif;
 color:#000000;
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
 background-color:#FFFFFF; 
 font-size:8pt;
}
 
table
{
 font-size:8pt;
 padding:0px;
 margin:0px;
}
 
td
{
  text-align: left;
 vertical-align: top;
 
}
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

Real Programmers Don't Document
If it was hard to write, it should be hard to understand.

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Rocketfish
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
Overclock.net - 2009 Chimp Challenge Champions 2 Million+ Folding at Home points
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Old 06-15-05   #8 (permalink)
Unix Evangelist
 
MikeEnIke's Avatar
 
amd nvidia

Join Date: Nov 2004
Location: Delware, USA
Posts: 2,439

Rep: 210 MikeEnIke is acknowledged by manyMikeEnIke is acknowledged by manyMikeEnIke is acknowledged by many
Unique Rep: 133
FAQs Submitted: 12
Hardware Reviews: 1
Trader Rating: 2
Default

Quote:
Originally Posted by BFRD
<td valign="top,bottom" align="left,right,center" .....

obviously use only one of each, or better yet use style sheets

create a file called default.css and add this line in your <head> tag

<Link rel="stylesheet" type="text/css" href="/Default.css">

as to the contents of the css here is a start

Code:
 body {
  font-family:Arial, Helvetica, sans-serif;
  color:#000000;
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  background-color:#FFFFFF; 
  font-size:8pt;
 }
  
 table
 {
  font-size:8pt;
  padding:0px;
  margin:0px;
 }
  
 td
 {
   text-align: left;
  vertical-align: top;
  
 }
I'm no good with CSS thanks though
__________________
System: My System
CPU
Barton
Motherboard
Abit AN7
Sound Card
On Mobo
Power Supply
Aspire
Case
Aspire X-Navigator
OS
Windows XP Pro & FreeBSD
Monitor
****ty dell
MikeEnIke is offline   Reply With Quote
Old 06-15-05   #9 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 5,106

FAQs Submitted: 8
Folding Team Rank: 128
Hardware Reviews: 2
Trader Rating: 12
Default

Quote:
Originally Posted by MikeEnIke
I'm no good with CSS thanks though
It is very easy once you get the hang of it. I can help if you would like. If not that is cool too.
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

Real Programmers Don't Document
If it was hard to write, it should be hard to understand.

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Rocketfish
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
Overclock.net - 2009 Chimp Challenge Champions 2 Million+ Folding at Home points
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 10:25 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2010 Shogun Interactive Development. Most rights reserved.
Page generated in 0.14715 seconds with 8 queries