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-29-2005, 07:12 AM   #1
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
I need a php whiz smarter than me to look at this code.

I don't understand why this gives errors. I have used it before in .php hosted gallery pages etc.

PHP Code:
{
      echo "<tr><td align=\"center\" colspan=\"".(COL_CATEG * 2)."\"><a href=\"".$PHP_SELF."?categ=".$categ."&sta=".($sta - $show)."\"><img border=\"0\" src=\"http://site.com/members/images/back.jpg\" style=\"border: 1px solid #FF3399\" alt=\"Previous page of members area content\" width=\"150\" height=\"45\"></a>
&nbsp;nbsp;<a href=\"<?=$_GET["categ"]?>_next.php\"><img border=\"0\" src=\"http://site.com/members/images/next.jpg\" style=\"border: 1px solid #FF3399\" alt=\"Next page of members area content\" width=\"150\" height=\"45\"></a></td></tr>";
This is the code giving the error:
PHP Code:
<a href=\"<?=$_GET["categ"]?>_next.php\">
I have also used:
PHP Code:
<a href=\"<?=$_GET[\"categ\"]?>_next.php\">
This is the error:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING

Ideas?

Thanks.
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:14 AM   #2
spacemonk
Confirmed User
 
Join Date: Jul 2004
Location: in da VIP
Posts: 969
you forgot an echo
__________________
I sale fu-fme, hit me up for a killer deal!
spacemonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:16 AM   #3
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
Looks to be

<a href="<?=$_GEThahaha91;"categ"]?>_next.php\">

Look at the categ... you have ;" instead of ;\" like your other example shows. Hard to know without seeing the code work etc, but looking at your other example and based on the error its missing the \ which is an escape.
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:17 AM   #4
Veterans Day
Confirmed User
 
Join Date: Jul 2003
Location: The Windy City
Posts: 8,403
contact silvertab he is php ninja, tell him I sent ya. Hes a good friend of mine. I wont fuck with noone else 94586959
Veterans Day is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:20 AM   #5
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
Where?

What makes it any different? The only code in question is:

href=\"<?=$_GET["categ"]?>_next.php\"
vs
href=\"next.php\"

http://adult-site-traffic.com/phpcode.htm is the real code. Board fucked it up.

.
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:24 AM   #6
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
Quote:
Originally Posted by AcidMax
Looks to be

<a href="<?=$_GEThahaha91;"categ"]?>_next.php\">

Look at the categ... you have ;" instead of ;\" like your other example shows. Hard to know without seeing the code work etc, but looking at your other example and based on the error its missing the \ which is an escape.
Ok, I tried this:
href=\"<?=$_GET[\"categ\"]?>_next.php\"

and this:
href=\"<?=$_GET["categ"]?>_next.php\"

But I should have this instead ?
href=\"<?=$_GET[\"categ"]?>_next.php\"

Thank you.

.
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:27 AM   #7
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
Why don't you just use this:

<a href=\"" . $_GET["categ"] . "_next.php\">

Last edited by ssp; 05-29-2005 at 07:29 AM..
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:28 AM   #8
spacemonk
Confirmed User
 
Join Date: Jul 2004
Location: in da VIP
Posts: 969
Quote:
Originally Posted by Adult Site Traffic
Ok, I tried this:
href=\"<?=$_GET[\"categ\"]?>_next.php\"

and this:
href=\"<?=$_GET["categ"]?>_next.php\"

But I should have this instead ?
href=\"<?=$_GET[\"categ"]?>_next.php\"

Thank you.

.
You forgot an echo

href=\"<? echo $_GET["categ"] ?>_next.php\"
__________________
I sale fu-fme, hit me up for a killer deal!
spacemonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:32 AM   #9
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
echo 5<> output echo roger over

print <> word
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:38 AM   #10
Trafficbrokercom
Confirmed User
 
Join Date: Dec 2002
Posts: 542
He did not forget an echo the '=' equals "echo" in this case ..

the problem is a little bit more complex , what you are trying to do is basically starting a second php instance within an existing one (<? ... <?)

so change this code:

Code:
<a href="<?=$_GET["categ"]?>_next.php\">
to

Code:
<a href=\"" . $_GET["categ"] . "_next.php\">
the two quotation marks after the href are very important btw ..

Last edited by Trafficbrokercom; 05-29-2005 at 07:39 AM..
Trafficbrokercom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:42 AM   #11
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
Quote:
Originally Posted by ssp
Why don't you just use this:

<a href=\"" . $_GET["categ"] . "_next.php\">
YOU are fucking smart

.
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:43 AM   #12
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
Quote:
Originally Posted by Juicy D. Links
echo 5<> output echo roger over

print <> word
LOL Juicy

format C:\
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 08:01 AM   #13
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
Glad I could help you out.
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 10:35 AM   #14
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
Sorry I guess the shit was encoded when you put it on here, so it looked like a " was unescaped. Glad you got it sorted out.
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax 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.