Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
creating a new string from two other strings
Old 06-08-2005, 02:08 PM creating a new string from two other strings
Skilled Talker

Posts: 79
Trades: 0
hello

I'm looking to put a string into a database. It is uploadig the static path to an image. Thus, it takes the name of the image, and I need to put that onto the end of a URL (to make the direct path to the image) and then insert that URL into the database.

Then I get the results through, they look like this:

$file = $form1;

$url = "http://www.mydomain.com/uploads/";

How can I put these two together to get,

http://www.mydomain.com/uploads/image.jpg (assuming that $form1 was image.jpg)


Thanks for your help in advance. I think it is quite simple, but I just don't know where to start.

Cheers
Hamish
__________________

Please login or register to view this content. Registration is FREE
secure and fully automated computer data backup for small and medium sized companies.


Please login or register to view this content. Registration is FREE
hamish is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-08-2005, 02:24 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
string concatenation
PHP Code:
$path $url "/" $form1 
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-08-2005, 03:33 PM
Skilled Talker

Posts: 79
Trades: 0
Thank you!

Hamish
__________________

Please login or register to view this content. Registration is FREE
secure and fully automated computer data backup for small and medium sized companies.


Please login or register to view this content. Registration is FREE
hamish is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to creating a new string from two other strings
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17692 seconds with 12 queries