GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any ideas what the error is in this code? (https://gfy.com/showthread.php?t=865493)

Scroto 10-29-2008 05:55 PM

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? :)

jimbona 10-29-2008 05:59 PM

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\">"; } ?>


Scroto 10-29-2008 06:03 PM

Quote:

Originally Posted by jimbona (Post 14972576)
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 :thumbsup

marketsmart 10-29-2008 06:06 PM

Quote:

Originally Posted by jimbona (Post 14972576)
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.... :thumbsup

jimbona 10-29-2008 06:09 PM

@scroto No worries, glad it works.
@marketsmart Guess its default mode lol, what I do on a daily basis for other forums ;)

Scroto 10-29-2008 06:22 PM

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 :1orglaugh

ExLust 10-29-2008 06:59 PM

Good job, jim!

Zuzana Designs 10-29-2008 07:07 PM

nice to see good peeps :)


All times are GMT -7. The time now is 05:01 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123