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-27-2003, 02:45 PM   #1
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
PHP Gurus, please help me.

Yes, I'm VERY new at this. Someone please tell me what I'm doing wrong. This won't output what it's supposed to, and it's for an assignment. (READ: no flames, please, I'm honestly seeking help.)

PHP Code:
<?
//set up the array first
$url=array('http://www.freakmanor.com',
'http://www.free-porn-spot.com','http://www.msnarcissa.com',
'http://www.chainleather.com','http://www.php.net',
'http://www.infidelguy.com','http://www.blowmeuptom.com',
'http://www.rotten.com','http://www.google.com',
'http://www.typeonegative.net','http://www.queensryche.com',
'http://www.big-tits.com', 'http://www.kinkinc.net',
'http://www.sex.com', 'http://www.boysrus.com',
 'http://www.gofuckyourself.com', 'http://www.hardcoredesigns.net', 
'http://www.whoopsie.com', 'http://www.nurple.com',
 'http://www.leathercellar.com', 'http://www.bmezine.com',
 'http://www.yahoo.com', 'http://www.silkandsteel.com', 
'http://www.porncity.net', 'http://www.gor.com', 
'http://www.halloween.com', 'http://www.gfy.com', 
'http://www.talawolf.com', 'http://www.naughtyfables.com',
 'http://www.dogfarts.com', 'http://www.homestarrunner.com');
//What day is it?
$day_of_month = (date("j")-1);
//Output
print("< a href=\"$url[$day]$url[$day]</A>");
?>
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.

Last edited by Tala; 10-27-2003 at 02:48 PM..
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 02:50 PM   #2
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
What I see is you want it to display that many times, but go throug the array and for every entry show a new link, yes? Well first, you have to use a loop to tell php to keep executing that code until the condition returns false

use a while loop or for loop
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 02:51 PM   #3
Butrflied
Confirmed User
 
Join Date: Aug 2002
Location: SoFLa
Posts: 1,344
PHP Code:
<?
//set up the array first
$url=array('http://www.freakmanor.com','http://www.free-porn-spot.com','http://www.msnarcissa.com','http://www.chainleather.com','http://www.php.net','http://www.infidelguy.com','http://www.blowmeuptom.com', 'http://www.rotten.com', 'http://www.google.com', 'http://www.typeonegative.net', 'http://www.queensryche.com', 'http://www.big-tits.com', 'http://www.kinkinc.net', 'http://www.sex.com', 'http://www.boysrus.com', 'http://www.gofuckyourself.com', 'http://www.hardcoredesigns.net', 'http://www.whoopsie.com', 'http://www.nurple.com', 'http://www.leathercellar.com', 'http://www.bmezine.com', 'http://www.yahoo.com', 'http://www.silkandsteel.com', 'http://www.porncity.net', 'http://www.gor.com', 'http://www.halloween.com', 'http://www.gfy.com', 'http://www.talawolf.com', 'http://www.naughtyfables.com', 'http://www.dogfarts.com', 'http://www.homestarrunner.com');
//What day is it?
$day_of_month = (date("j")-1);
//Output
print("<a href=\"$url[$day_of_month]\">$url[$day_of_month]</A>");
?>
You forgot the closing quote on your html link and you had the wrong variable name there
__________________
~Butrflied~
Butrflied is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 02:52 PM   #4
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally posted by lamerhooD
What I see is you want it to display that many times, but go throug the array and for every entry show a new link, yes? Well first, you have to use a loop to tell php to keep executing that code until the condition returns false

use a while loop or for loop



Sorry, you just sounded like Greek to me.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 02:54 PM   #5
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
DUH!

Thanks Butrified! I appreciate it.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 02:55 PM   #6
Butrflied
Confirmed User
 
Join Date: Aug 2002
Location: SoFLa
Posts: 1,344
Quote:
Originally posted by Tala
DUH!

Thanks Butrified! I appreciate it.
Anytime!
__________________
~Butrflied~
Butrflied is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 02:58 PM   #7
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Dammit, now I'm getting this:

Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site5/fst/var/www/html/talawolf/three.php on line 17


*bangs head against wall*

Oy, I'm a doofus.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:04 PM   #8
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
Quote:
Originally posted by Tala
Dammit, now I'm getting this:

Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site5/fst/var/www/html/talawolf/three.php on line 17


*bangs head against wall*

Oy, I'm a doofus.
check ' and " and make sure that if they are inside of your output, they are \"
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:09 PM   #9
Jimbo
Confirmed User
 
Industry Role:
Join Date: Oct 2001
Location: Montreal
Posts: 3,989
use that:

PHP Code:
<?
//set up the array first
$url=array('http://www.freakmanor.com',
'http://www.free-porn-spot.com','http://www.msnarcissa.com',
'http://www.chainleather.com','http://www.php.net',
'http://www.infidelguy.com','http://www.blowmeuptom.com',
'http://www.rotten.com','http://www.google.com',
'http://www.typeonegative.net','http://www.queensryche.com',
'http://www.big-tits.com', 'http://www.kinkinc.net',
'http://www.sex.com', 'http://www.boysrus.com',
 'http://www.gofuckyourself.com', 'http://www.hardcoredesigns.net', 
'http://www.whoopsie.com', 'http://www.nurple.com',
 'http://www.leathercellar.com', 'http://www.bmezine.com',
 'http://www.yahoo.com', 'http://www.silkandsteel.com', 
'http://www.porncity.net', 'http://www.gor.com', 
'http://www.halloween.com', 'http://www.gfy.com', 
'http://www.talawolf.com', 'http://www.naughtyfables.com',
 'http://www.dogfarts.com', 'http://www.homestarrunner.com');
//What day is it?
$day_of_month = (date("j")-1);
//Output
print("<a href=\"".$url[$day].$url[$day_of_month]."\"></A>");
?>
__________________
free sex videos
Jimbo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:11 PM   #10
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally posted by Jimbo
use that:

PHP Code:
<?
//set up the array first
$url=array('http://www.freakmanor.com',
'http://www.free-porn-spot.com','http://www.msnarcissa.com',
'http://www.chainleather.com','http://www.php.net',
'http://www.infidelguy.com','http://www.blowmeuptom.com',
'http://www.rotten.com','http://www.google.com',
'http://www.typeonegative.net','http://www.queensryche.com',
'http://www.big-tits.com', 'http://www.kinkinc.net',
'http://www.sex.com', 'http://www.boysrus.com',
 'http://www.gofuckyourself.com', 'http://www.hardcoredesigns.net', 
'http://www.whoopsie.com', 'http://www.nurple.com',
 'http://www.leathercellar.com', 'http://www.bmezine.com',
 'http://www.yahoo.com', 'http://www.silkandsteel.com', 
'http://www.porncity.net', 'http://www.gor.com', 
'http://www.halloween.com', 'http://www.gfy.com', 
'http://www.talawolf.com', 'http://www.naughtyfables.com',
 'http://www.dogfarts.com', 'http://www.homestarrunner.com');
//What day is it?
$day_of_month = (date("j")-1);
//Output
print("<a href=\"".$url[$day].$url[$day_of_month]."\"></A>");
?>
well, that took care of the message I was getting, but now I don't see anything at all.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:13 PM   #11
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Quote:
Originally posted by Jimbo
use that:

PHP Code:
<?
//set up the array first
$url=array('http://www.freakmanor.com',
'http://www.free-porn-spot.com','http://www.msnarcissa.com',
'http://www.chainleather.com','http://www.php.net',
'http://www.infidelguy.com','http://www.blowmeuptom.com',
'http://www.rotten.com','http://www.google.com',
'http://www.typeonegative.net','http://www.queensryche.com',
'http://www.big-tits.com', 'http://www.kinkinc.net',
'http://www.sex.com', 'http://www.boysrus.com',
 'http://www.gofuckyourself.com', 'http://www.hardcoredesigns.net', 
'http://www.whoopsie.com', 'http://www.nurple.com',
 'http://www.leathercellar.com', 'http://www.bmezine.com',
 'http://www.yahoo.com', 'http://www.silkandsteel.com', 
'http://www.porncity.net', 'http://www.gor.com', 
'http://www.halloween.com', 'http://www.gfy.com', 
'http://www.talawolf.com', 'http://www.naughtyfables.com',
 'http://www.dogfarts.com', 'http://www.homestarrunner.com');
//What day is it?
$day_of_month = (date("j")-1);
//Output
print("<a href=\"".$url[$day].$url[$day_of_month]."\"></A>");
?>
Better print, but your html skills are lacking ;)

PHP Code:
print("<a href=\"" $url[$day_of_month] . "\">" $url[$day_of_month] . "</a>"); 
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:16 PM   #12
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally posted by punkworld


Better print, but your html skills are lacking ;)

PHP Code:
print("<a href=\"" $url[$day_of_month] . "\">" $url[$day_of_month] . "</a>"); 
Hon, that garnered me this:

Parse error: parse error, unexpected $ in /home/virtual/site5/fst/var/www/html/talawolf/three.php on line 41



There IS no line 41.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:19 PM   #13
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
http://www.captainevil.com/gfy/tala.php
http://www.captainevil.com/gfy/tala.phps
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:19 PM   #14
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
This is ridiculous. Should be an easy fix and I'm confusing the hell out of my fuckin prof.! Time for a re-write.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:21 PM   #15
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
PHP Code:
print("<a href=\"".$url[$day].$url[$day_of_month]."\"></A>"); 
That gets rid of the parse error, but it still doesn't output. Remember html -- The out is after the a href = bla>[right here] </a>

Good luck!
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:22 PM   #16
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
w00t!!!!!


Thank you!!!!
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:23 PM   #17
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
hahaha, nevermind, I see what you are doing -- very nicely done... *early in the morning, yawn*
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com

Last edited by jwerd; 10-27-2003 at 03:26 PM..
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:30 PM   #18
Jimbo
Confirmed User
 
Industry Role:
Join Date: Oct 2001
Location: Montreal
Posts: 3,989
this is GFY day, WEEE
__________________
free sex videos
Jimbo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2003, 03:35 PM   #19
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally posted by Jimbo
this is GFY day, WEEE
Indeed.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala 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.