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
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 10-29-2008, 05:55 PM   #1
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
Any ideas what the error is in this code?

Getting an error with a script...

Parse error: syntax error, unexpected T_LNUMBER on line 31

31 would be the line starting with print

Code:
<?php if($get[avatar] == '') {
  print "<img src=http://$site_url/avatars/non.gif width="80" height="80">";
}else{ print "<img src=$get[avatar] width="80" height="80">"; } ?>
any ideas?
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 05:59 PM   #2
jimbona
Confirmed User
 
Join Date: Jan 2007
Posts: 190
Code:
<?php if(empty($get["avatar"])) {
  print "<img src='http://$site_url/avatars/non.gif' width=\"80\" height=\"80\">";
}else{ print "<img src='".$get["avatar"]."' width=\"80\" height=\"80\">"; } ?>
__________________
Thanks
Paul
Thunder-Ball.net - Member
jimbona is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 06:03 PM   #3
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
Quote:
Originally Posted by jimbona View Post
Code:
<?php if(empty($get["avatar"])) {
  print "<img src='http://$site_url/avatars/non.gif' width=\"80\" height=\"80\">";
}else{ print "<img src='".$get["avatar"]."' width=\"80\" height=\"80\">"; } ?>
thanks man, works good
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 06:06 PM   #4
marketsmart
HOMICIDAL TROLL KILLER
 
Industry Role:
Join Date: Dec 2004
Location: Sunnybrook Institution for the Criminally Insane
Posts: 20,419
Quote:
Originally Posted by jimbona View Post
Code:
<?php if(empty($get["avatar"])) {
  print "<img src='http://$site_url/avatars/non.gif' width=\"80\" height=\"80\">";
}else{ print "<img src='".$get["avatar"]."' width=\"80\" height=\"80\">"; } ?>
way to help out.. nice to see acts of kindness....
marketsmart is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 06:09 PM   #5
jimbona
Confirmed User
 
Join Date: Jan 2007
Posts: 190
@scroto No worries, glad it works.
@marketsmart Guess its default mode lol, what I do on a daily basis for other forums ;)
__________________
Thanks
Paul
Thunder-Ball.net - Member
jimbona is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 06:22 PM   #6
Scroto
Confirmed User
 
Scroto's Avatar
 
Join Date: Nov 2005
Posts: 2,804
yeah kind of sad that i've been after the developer of the actual script for 4 days, but come here and get a quick fix in 5 minutes
Scroto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 06:59 PM   #7
ExLust
Confirmed User
 
ExLust's Avatar
 
Join Date: Aug 2008
Posts: 3,223
Good job, jim!
__________________

BE A PARTNER
ExLust is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2008, 07:07 PM   #8
Zuzana Designs
All Your Design Needs
 
Zuzana Designs's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 20,825
nice to see good peeps
__________________

Website Design - Consulting - Development
sarah [at] zuzanadesigns.com - See Our Work
Need a SFW landing page or tour for age verification?
Zuzana Designs 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



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.