/    Sign up×
Community /Pin to ProfileBookmark

How we can fetch selected value

I can fetch the id of multiple selection but i am fetching the name as per their ids.then plz tell how we can do.

for e.g
$author_id=$fetch[“author_id”];
i am fetching the id of author_id in $author_id variable like this 1,3
then how this would be selected in edit page*

*=record changing page

I shall be very thankful to you

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@parveenauthorDec 27.2005 — plz, give me quick reply.
Copy linkTweet thisAlerts:
@chazzyDec 27.2005 — hey, you posted a reply 2 minutes after you posted your question, and it was about 3 am eastern, many of us are sleeping

anyways, edit pages typically use the get method, you know,your url looks like this:
<i>
</i>/yourpage.php?id=8

and you can get that value "8" by using[code=php]$id=$_GET['id'];[/code] Best of luck.
×

Success!

Help @parveen 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...