Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Whats Wrong Here - Damnit
Old 07-22-2010, 06:34 PM Whats Wrong Here - Damnit
Experienced Talker

Posts: 45
Trades: 0
Website: Gift-For-Men.com

As you can see the php grabs data from the database and inserts it into the webpage. PROBLEM IS none of my stylings are showing up.

The data stored is HTML... Can that be the problem? I'm also using .png for the images. none of the elements are loading damnit!

PHP Code:
<?php
     
include 'include/simple.php';
     
$query  "SELECT * FROM suggestions ORDER BY Rand() LIMIT 1";
     
$result mysql_query($query);
  
$row mysql_fetch_array($result);
     
?> 
    <head>
         <?php
              
echo $row['title'];
           
?>
             
         <meta name="keywords" content="Gift For Men, Gift" />
         <meta name="description" content="Don't know what to get a man? With Gifts-For-Men.Com we'll randomly make suggestions to you!" />
         <link rel="stylesheet" type="text/css" href="assets/Stylesheet.css" />
</head>
<!--HEADER-->
<body>
      <div id="contain" class="header">      
              <div id="contain" class="title">
                        <h1><a href="http://gift-for-men.com/" title="Gift For Men">Gift For Men</a></h1>
                   <?php
                        
echo "Get your man " $row['link'];
                     
?>
              </div>
              
                    <div id="contain" class="logo">
                    <center><img src="assets/logo.png" width="115" height="160" alt="Gift For Men Logo" /></center>
                    </div>
</div>

<!--BODY -->
<div id="funny">
                <?php
                     
echo $row['funny'];
                  
?>
</div>
 
<div id="body" class="contain">
      <div id="body" class="amazon">
                                   <?php
                                        
echo $row['product'];
                                     
?>
      </div>
</div>
<!--FOOTER -->
      <div id="suggest">
      <a href="http://gift-for-men.com/" title="Need another suggestion?">Need another suggestion?</a>
      </div>

<div id="footer" class="contain">
    
      <div id="footer" class="copyright">
      <p><a href="http://gift-for-men.com/" title="Gift For Men">Gift For Men</a> - Copyright 2010 &copy;</p>
      </div>
      
      <div id="footer" class="facebook">
      </div>
</div>
   
</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Thizzle is offline
Reply With Quote
View Public Profile Visit Thizzle's homepage!
 
 
Register now for full access!
Old 07-22-2010, 06:58 PM Re: Whats Wrong Here - Damnit
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Missing DTD, missing opening <html> tag.

The style sheet returns a 403 response so is a copy of the home, (error page presumably)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-22-2010, 07:04 PM Re: Whats Wrong Here - Damnit
ModDish's Avatar
Super Talker

Posts: 116
Trades: 0
are you using modx?

just wondering from the assets folder.

if so, php code has to be placed in a snippet.
__________________
Thanks
Evan
From ModDish -
Please login or register to view this content. Registration is FREE
ModDish is offline
Reply With Quote
View Public Profile
 
Old 07-22-2010, 07:56 PM Re: Whats Wrong Here - Damnit
Experienced Talker

Posts: 45
Trades: 0
Nope, not MODX... The assets folder is where I store CSS/ Javascript/ Page Elements. Just how I was taught to do things.

WHAT I WAS DOING WRONG, was I accidently uploaded a "Deny from all" .htaccess file into the assets/ images folder. Chris you pretty much got it. This was my first .php document so I thought that the error was being returned because of the missing HTML. Thanks guys.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Thizzle is offline
Reply With Quote
View Public Profile Visit Thizzle's homepage!
 
Reply     « Reply to Whats Wrong Here - Damnit
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18772 seconds with 12 queries