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

  • Home
  • SEARCH
  • 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 7775773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:42:47+00:00 2026-06-01T17:42:47+00:00

Probably another basic question but its been annoying me for a while now… I

  • 0

Probably another basic question but its been annoying me for a while now…

I have a php file which is included on a php web page to bring in dynamic content from my mysql database.

Everything works fine with this except when i try get pictures to work and here is the problem.

I am using the code:

echo "<img src=fishery_images/$region/$url/$url1.jpg'/>";

All of which has been selected from the correct table and so on. an example of what i want this to resolve to is below:

fishery_images/fife/goldenloch/goldenloch1.jpg

However because i have the code:

$url1.jpg

and $url1 is not defined as anything then it resolves as the following:

fishery_images/fife/goldenloch/.jpg

i can have anything from goldenloch1.jpg all the way to goldenloch10.jpg so need to be able to say which image should be used.

how is it i say $url1.jpg without meaning $url1?

Really hope this makes sense… and 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-01T17:42:47+00:00Added an answer on June 1, 2026 at 5:42 pm
    echo "<img src=fishery_images/{$region}/{$url}/{$url}1.jpg'/>";
    

    http://en.wikipedia.org/wiki/String_interpolation#PHP

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It might be a basic question but everytime a user call a php file
This is probably a really basic question - but I have a list of
This is probably pretty basic, but I'm a beginner in PHP - I have
i have another (probably unanswered) question about map views. I have a map view
Probably a stupid question, but is there a Javascript method to browse another url,
Probably a long question for a simple solution, but here goes... I have a
This is probably a very basic question, but I could not get my way
This is probably a basic LINQ question. I have need to select one object
Probably a very basic question - I have 2 tables #favorites and #leaders ,
This is probably an extremely basic question but I'm having difficulty finding an answer.

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.