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 09-27-2004, 12:54 AM   #1
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
PHP Help

Trying to get some hosted galleries up..I remember JupzChris I believe was trying to explain how to do it with php, but I cant get it to work.

He said:

point the affiliates to www.domain.com/galleries/gallery001/?a=USERID

then modify index.php and inset this wherever you want the USERID to appear (like in another link)
<?=$a?>


that <?=$a?> tag is showing up red in macromedia and im getting an error when i load the page..

So say I have banner1.gif that needs to be linked to blah.com/affiliateid=XXXXXX

how would I do this? and set the main url?
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 12:56 AM   #2
nolaman
Confirmed User
 
Join Date: Mar 2004
Location: New Orleans, LA
Posts: 1,001
you need a space or new line after/before the php tags

<?

print"$a";

?>
__________________
PHP Programmer ICQ 215-504-788
nolaman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 12:56 AM   #3
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
try this:

<? echo $_GET['a']; ?>
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 12:56 AM   #4
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
Quote:
Originally posted by nolaman
you need a space or new line after/before the php tags
no
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 12:57 AM   #5
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally posted by nolaman
you need a space or new line after/before the php tags

<?

print"$a";

?>
no, but you do need a space after print.
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 12:58 AM   #6
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
by the way, use it like this

<a href="http://blah.com/affiliateid=<? echo $_GET['a']; ?>">blah blah</a>
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 01:04 AM   #7
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
Quote:
Originally posted by Lane
by the way, use it like this

<a href="http://blah.com/affiliateid=<? echo $_GET['a']; ?>">blah blah</a>
nm got it, thanks.
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash

Last edited by Lace; 09-27-2004 at 01:07 AM..
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 01:06 AM   #8
nolaman
Confirmed User
 
Join Date: Mar 2004
Location: New Orleans, LA
Posts: 1,001
Quote:
Originally posted by Lane
no
For the color syntax to work in dreamweaver there needs to be a space.
__________________
PHP Programmer ICQ 215-504-788
nolaman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 01:10 AM   #9
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally posted by nolaman
For the color syntax to work in dreamweaver there needs to be a space.
the color syntax? whats a color syntax?
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 01:21 AM   #10
nolaman
Confirmed User
 
Join Date: Mar 2004
Location: New Orleans, LA
Posts: 1,001
http://www.google.com/search?num=50&...q=color+syntax
__________________
PHP Programmer ICQ 215-504-788
nolaman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2004, 01:22 AM   #11
nolaman
Confirmed User
 
Join Date: Mar 2004
Location: New Orleans, LA
Posts: 1,001
or "syntax coloring". whatever you wanna call it.
__________________
PHP Programmer ICQ 215-504-788
nolaman 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.