Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-11-2005, 11:56 PM   #1
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Php question - simple shit...

i need to insert an image into this page, and I know little about php

why when I put this in
<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>

does it give me a

Parse error: parse error, unexpected '<'

error?

how can I write that in php so the image shows up?
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2005, 11:59 PM   #2
newbreed
Confirmed User
 
newbreed's Avatar
 
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
Don't you need another " ' " before your last " ?
__________________

Loryn ‎(3:16 PM):
I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
fuck it we can have sex on money never did that before
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:01 AM   #3
newbreed
Confirmed User
 
newbreed's Avatar
 
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
Nevermind, I may be wrong on that.

What script are you trying to play with?
__________________

Loryn ‎(3:16 PM):
I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
fuck it we can have sex on money never did that before
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:02 AM   #4
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by newbreed
Don't you need another " ' " before your last " ?
there are no " in there, that fucks it all up, i have to use '

the code works fine outside the <?php tag, but within it parsese it wrong
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:03 AM   #5
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by newbreed
Nevermind, I may be wrong on that.

What script are you trying to play with?
oscommerce...customizing it....trying graphical infobox headers for the first time
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:03 AM   #6
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Paste more of the code... I think it's carry over from the line above.

echo "<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>";

Should work just fine.
__________________
Perfect Gonzo

Last edited by broke; 05-12-2005 at 12:04 AM..
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:04 AM   #7
newbreed
Confirmed User
 
newbreed's Avatar
 
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
Quote:
Originally Posted by JaceXXX
there are no " in there, that fucks it all up, i have to use '

the code works fine outside the <?php tag, but within it parsese it wrong

Paste the whole php tag
__________________

Loryn ‎(3:16 PM):
I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
fuck it we can have sex on money never did that before
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:05 AM   #8
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Code:
<!-- categories //-->
          <tr>
            <td>
<?php
<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>
  $categories_string = '';

  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");
  while ($categories = tep_db_fetch_array($categories_query))  {
    $foo[$categories['categories_id']] = array(
                                        'name' => $categories['categories_name'],
                                        'parent' => $categories['parent_id'],
                                        'level' => 0,
                                        'path' => $categories['categories_id'],
                                        'next_id' => false
                                       );

    if (isset($prev_id)) {
      $foo[$prev_id]['next_id'] = $categories['categories_id'];
    }

    $prev_id = $categories['categories_id'];

    if (!isset($first_element)) {
      $first_element = $categories['categories_id'];
    }
  }
i wanna insert an image at the very top of it all, but within the php code so there is no gap between where the php starts and the html ends
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:05 AM   #9
newbreed
Confirmed User
 
newbreed's Avatar
 
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
Quote:
Originally Posted by JaceXXX
oscommerce...customizing it....trying graphical infobox headers for the first time

Dude I am all over that shit, hit me up 346940591
__________________

Loryn ‎(3:16 PM):
I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
fuck it we can have sex on money never did that before
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:06 AM   #10
newbreed
Confirmed User
 
newbreed's Avatar
 
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
Like this?

http://www.newbreedmedia.com/rare/catalog/
__________________

Loryn ‎(3:16 PM):
I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
fuck it we can have sex on money never did that before
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:06 AM   #11
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Use:

Code:
<!-- categories //-->
          <tr>
            <td>
<?php
  echo "<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>";
  $categories_string = '';

  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");
  while ($categories = tep_db_fetch_array($categories_query))  {
    $foo[$categories['categories_id']] = array(
                                        'name' => $categories['categories_name'],
                                        'parent' => $categories['parent_id'],
                                        'level' => 0,
                                        'path' => $categories['categories_id'],
                                        'next_id' => false
                                       );

    if (isset($prev_id)) {
      $foo[$prev_id]['next_id'] = $categories['categories_id'];
    }

    $prev_id = $categories['categories_id'];

    if (!isset($first_element)) {
      $first_element = $categories['categories_id'];
    }
  }
__________________
Perfect Gonzo
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:06 AM   #12
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by broke
Paste more of the code... I think it's carry over from the line above.

echo "<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>";

Should work just fine.
that was it, thanks so much
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:07 AM   #13
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by newbreed
yeah

i have done oscommerce before, but just never played with graphical headers for the infobox....i am gunna make this design so dope...LOL

wish I could show you all, but it is kind of secret right now
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:08 AM   #14
newbreed
Confirmed User
 
newbreed's Avatar
 
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
Quote:
Originally Posted by JaceXXX
Code:
<!-- categories //-->
          <tr>
            <td>
<?php
<img src='images/CategoriesBox/header.jpg' width='150' height='15' border='0'>
  $categories_string = '';

  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");
  while ($categories = tep_db_fetch_array($categories_query))  {
    $foo[$categories['categories_id']] = array(
                                        'name' => $categories['categories_name'],
                                        'parent' => $categories['parent_id'],
                                        'level' => 0,
                                        'path' => $categories['categories_id'],
                                        'next_id' => false
                                       );

    if (isset($prev_id)) {
      $foo[$prev_id]['next_id'] = $categories['categories_id'];
    }

    $prev_id = $categories['categories_id'];

    if (!isset($first_element)) {
      $first_element = $categories['categories_id'];
    }
  }
i wanna insert an image at the very top of it all, but within the php code so there is no gap between where the php starts and the html ends
Gotcha, see the post above, he nailed it. I thought you meant the table headers.
__________________

Loryn ‎(3:16 PM):
I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
fuck it we can have sex on money never did that before
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:10 AM   #15
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
Damn... wow.... I'm just gonna keep my mouth shut.. ;)
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:12 AM   #16
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
Quote:
Originally Posted by JaceXXX
that was it, thanks so much
If you use any HTML in a PHP tag it has to be with an 'echo'

I would guess that it would be better practice to just put the image in before the PHP tag, but unless you talking about millions of hits I doubt it would make a difference.
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:20 AM   #17
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by damian2001
If you use any HTML in a PHP tag it has to be with an 'echo'

I would guess that it would be better practice to just put the image in before the PHP tag, but unless you talking about millions of hits I doubt it would make a difference.
when i put the html before the php tag it creates a gap between the image and php...and it needs to be seemless
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2005, 12:21 AM   #18
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by V_RocKs
Damn... wow.... I'm just gonna keep my mouth shut.. ;)
about what? actual knowledge being shared on gfy? LOL

i am a graphics guy who happens to know extensive html and basic coding i hire people to do my work! haha
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.