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)
-   -   PHP Help (https://gfy.com/showthread.php?t=362640)

Lace 09-27-2004 12:54 AM

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?

nolaman 09-27-2004 12:56 AM

you need a space or new line after/before the php tags

<?

print"$a";

?>

Lane 09-27-2004 12:56 AM

try this:

<? echo $_GET['a']; ?>

Lane 09-27-2004 12:56 AM

Quote:

Originally posted by nolaman
you need a space or new line after/before the php tags
no

Alky 09-27-2004 12:57 AM

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. :2 cents:

Lane 09-27-2004 12:58 AM

by the way, use it like this

<a href="http://blah.com/affiliateid=<? echo $_GET['a']; ?>">blah blah</a>

Lace 09-27-2004 01:04 AM

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.

nolaman 09-27-2004 01:06 AM

Quote:

Originally posted by Lane
no
For the color syntax to work in dreamweaver there needs to be a space.

Alky 09-27-2004 01:10 AM

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?

nolaman 09-27-2004 01:21 AM

http://www.google.com/search?num=50&...q=color+syntax

nolaman 09-27-2004 01:22 AM

or "syntax coloring". whatever you wanna call it.


All times are GMT -7. The time now is 01:18 PM.

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