I need help

This is a discussion on "I need help" within the PHP Forum section. This forum, and the thread "I need help are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 30th, 2006, 19:32
New Member
Join Date: Jul 2006
Location: Indiana
Age: 22
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I need help

I know that http://www.ctrlaltdel-online.com/ was done with PHP. What I want to know is how they made the news box look unattatched to everything else. Can anyone help me with how this is done so I can make mine appear unattatched to everything?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 30th, 2006, 20:39
New Member
Join Date: Jul 2006
Location: Indiana
Age: 22
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

I'm not going to copy what they did, I just need to know how to do it. Please help... that is why I joined here...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 30th, 2006, 21:51
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

Are you asking about the grey boxes down the middle of the page?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 30th, 2006, 22:07
New Member
Join Date: Jul 2006
Location: Indiana
Age: 22
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

If it has the green bar and a picture of a comic guy in it then yes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 30th, 2006, 23:42
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

They are just standard tables. Dynamically generated with data from mysql via php.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 31st, 2006, 00:26
New Member
Join Date: Jul 2006
Location: Indiana
Age: 22
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

But I don't understand how its done... I'm new to this stuff... how do you do it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 31st, 2006, 00:37
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

First you need to learn the basics of php/mysql.

www.tutorialized.com read as many php tutorials as possible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 31st, 2006, 03:03
Junior Member
Join Date: Jun 2006
Location: Wisconsin
Age: 30
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

view the source of the website. You will see how they put the table together. And as stated above, php prints that html depending on the logic in the code. Play around with it, and should become apparent how things are done.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 31st, 2006, 16:21
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help

I'll be happy to help but this is really just too basic to answer. Find a tutorial on cms and walk through it.

The basic way is to have the html at the top and bottom of the page as separate static files and use include to put them at the top and bottom. Then you use php to add dynamic content, either by starting and stopping php or else by using "echo" to add the html markup, like:

Code: Select all
<div class="lower">
<?php
$query = "SELECT name, biography FROM pornstars blah blah";
$result = mysql_query ($query);
blah blah;
?>
</div>
or else

Code: Select all
<div class="lower">
<?php
echo ('<div class="lower">');
$query = "SELECT name, biography FROM pornstars blah blah";
$result = mysql_query ($query);
blah blah;
echo ('</div>');
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
help

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 16:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42