Reply
is it correct to save urls in mysql tables or php vars ?
Old 11-25-2007, 02:16 PM is it correct to save urls in mysql tables or php vars ?
Average Talker

Posts: 25
This should work with $photo="/images/search/image1.jpg"]

<img src="<?= $photo ?>" alt="h" width="200" height="132" />

is it correct to save urls in mysql tables or php vars ?
lse123 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 11-25-2007, 03:13 PM Re: is it correct to save urls in mysql tables or php vars ?
joder's Avatar
Flipotron

Posts: 6,446
Name: James
Location: In the ocean.
It's according to what you are going to do with the photos.

If your uploading them, I would have the directory containing the images as a variable and put the name of the image in the database. Not the full path.
joder is offline
Reply With Quote
View Public Profile
 
Old 11-26-2007, 03:47 AM Re: is it correct to save urls in mysql tables or php vars ?
Average Talker

Posts: 25
is it correct to save urls in mysql tables or php vars ? slashes can be saved ?

for a table field entry the value below is correct ?

"/images/search/image1.jpg"
lse123 is offline
Reply With Quote
View Public Profile
 
Old 11-26-2007, 06:19 AM Re: is it correct to save urls in mysql tables or php vars ?
chrishirst's Avatar
Super Moderator

Posts: 12,752
Location: Blackpool. UK
yes ..
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to is it correct to save urls in mysql tables or php vars ?
 

Thread Tools

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

vB 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.11950 seconds with 13 queries