/    Sign up×
Community /Pin to ProfileBookmark

Help – Forgot Command @ end of php extension…

hi there. i had a script made for me, and the script would make items in a list for me, starting @ 1 point and ending at another point.

i think inside the code, this is the command:

[QUOTE]

for( $i = $start; $i <= $end; $i++ ){

[/QUOTE]

what would be the command i put in the address bar after script.php ? how would it looks?

[QUOTE]

script.php=?25&50

[/QUOTE]

or something like that? meaning it would start from 25 and end at 50?

thanks for your help

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@scragarJan 15.2009 — I assume you mean script.php?start=25&amp;end=50
But with the code you have shown above that might or might not work based on code around it and settings.
Copy linkTweet thisAlerts:
@GoTTiauthorJan 16.2009 — check pm
Copy linkTweet thisAlerts:
@GoTTiauthorJan 16.2009 — if anyone else can help me with this also id appreciate it
Copy linkTweet thisAlerts:
@scragarJan 16.2009 — Oh, sorry about this, I received two notifications this morning at 3am, looked at the thread then went straight back to bed, sorry about that.

You want to look for some code looking similar to:
[code=php]$start = $_GET['start'];[/code]if that makes sense.
Copy linkTweet thisAlerts:
@QuidamJan 16.2009 — For example:

The adress : index.php?start=75&end=192

The variables: $_GET[start] and $_GET[end], $_GET[start] will have a value of 75 and $_GET[end] a value of 192.

You can save those to other variables:
[code=php]
$start = $_GET[start];
$end = $_GET[end];
[/code]


Hope it helped.
Copy linkTweet thisAlerts:
@GoTTiauthorJan 16.2009 — ya its not working. it doesnt do what its suppose to do...
Copy linkTweet thisAlerts:
@QuidamJan 16.2009 — Can you post your code?
×

Success!

Help @GoTTi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...