Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8086325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:24:41+00:00 2026-06-05T18:24:41+00:00

<a href=details.php?phoneid=1><img src=phone01.jpg></a> When I write the code like this it’s working fine. But

  • 0

<a href="details.php?phoneid=1"><img src="phone01.jpg"></a>

When I write the code like this it’s working fine. But when I edit this to assign a php variable to GET value, it’s not working.

<a href="Details.php?phoneid=<?php $Pid_arr[count($Pid_arr)-1]?> " class="product" title="Product 1">

Can someone pleas explain why ?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:24:43+00:00Added an answer on June 5, 2026 at 6:24 pm

    You need to echo the variable:

    <a href="Details.php?phoneid=<?php echo $Pid_arr[count($Pid_arr)-1]; ?>" >
    

    You can also do it this way:

    <?=$Pid_arr[count($Pid_arr)-1]?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is what I want to parse <div class=photoBox pB-ms> <a href=/user_details?userid=ePDZ9HuMGWR7vs3kLfj3Gg> <img width=100
I have a href link and I would like it to be clicked when
I have this href link with text either attivo or non attivo User can
I have this href defined in my markup: foreach (Car car in Model.Cars) {
UPDATE: This is the CFC code that I'm using to retrieve the data. I'm
Extracting the href value from the following sample HTML code is straight forward if
I'm using QueryPath and PHP. This finds the .eventdate okay, but doesn't return anything
i have a link: <a href=? processor=<?php echo $value['processor']; ?>& auth_code=<?php echo $value['auth_code']; ?>
Using jquery address I'm setting my href links like so: <a href=#view_profile=123>view 123</a> When
I'm trying a redirect on a page that goes like this: original URL: http://www.foo.com/products/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.