|
|||
You can't use: C:/phpdev/www/star/photo_profile/
You will need to use the HTTP equivalent, for example: Code:
<img src ="http://localhost/star/photo_profile/<?php echo $_SESSION['user_photo']; ?>" ... > Code:
<img src ="/star/photo_profile/<?php echo $_SESSION['user_photo']; ?>" ... > |
|
|||
|
||||
i tried the first one.. but it display the same result. then i looked up the image props from the browser, the file path is : http://localhost/http://localhost/star/photo_profile/(blank)
i had tried all the solution given but it still display the same result. anyway, thanks for your patient and help.
__________________
To follow the path: Look to the master, Follow the master, Walk with the master, See through the master, Become the master. |
|
|||
|
|
|
|||
could you post the full source to: user_profile.php
I don't know how you got: http://localhost/http://localhost/star/photo_profile/(blank)... |
|
||||
we need full source code of the page to help you solve the problem, not only full path.
btw, Quote:
PHP Code:
So, we still need the source code... |
|
||||
<?php
include 'Connections/star.php'; // file scripot connect to dbase session_start(); ?> <html> : : <tr> <td valign="top"><p><img name="gambar_anda" width="100" height="100" alt=<?php echo $_SESSION['user_name'];?> style="background-color: #FFFFFF" src="/star/profile_photo/"<?php echo $_SESSION['user_photo'];?>></p> <p> <span class="header">Selamat Datang : <?php echo $_SESSION['user_name'];?></span></p> <span class="para">Waktu : : : </html> aku store img tu folder spt path yg aku tulis tuh... aku try nak submit the whole script.. tp dah over 1000 char plak alert msg tu dipslay tadi.. lgpun yg tak work cuma this linejek.. yg lelain tupun cuma html code jek.. so, aku rasa aku paste kan yg ni jek laa.. kalau tak cukup bgtahu aku ekk.. lagi satunak bgtahu aku ada table nama user_mgt yg ada field user_photo type varchar 225/255 (some sort of that binary equivalent value laa. aku pun lupa..) with default value 'question.gif' yg aku simpan dlm foldr photo_profile tuh.. kira kalau first2 login n tak upload gamba.. gamba 'question.gif' ni yg aku try nak kuarkan tuk user. hopefully info ni membantu sesapa yg nk membantu aku.. TQ
__________________
To follow the path: Look to the master, Follow the master, Walk with the master, See through the master, Become the master. |
|
|||
I see the problem now...
Replace with: PHP Code:
|
|
|||
In your browser, try viewing a photo:
http://localhost/star/profile_photo/test.jpg (replace test.jpg with a photo in that folder) If you see a photo, then the code above should work. If you get an error (should be 404 error), means that the folder location is still wrong. |
|
||||
i got the same result, but the img is loaded when i tried to view with
http://localhost/star/photo_profile/question.gif means the foldr is ok, am i right, sufyan? well, really hope for all your patient. TQ
__________________
To follow the path: Look to the master, Follow the master, Walk with the master, See through the master, Become the master. |
|
|||
Ok, you tested http://localhost/star/photo_profile/question.gif and it works right?
How come in your code it's: /star/profile_photo/ instead of /star/photo_profile/ Which one is the actual folder you store your photos in??? Now try: PHP Code:
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free Image Host | Unknowmaster | Websites Review and Suggestion | 2 | 02-12-2006 11:06 AM |
| image position in css | xtau | Website Design | 6 | 21-06-2005 11:52 AM |
| setting image | bell | Website Programming | 1 | 09-08-2004 08:55 PM |
| Image Site | al1 | Websites Review and Suggestion | 2 | 22-03-2004 02:03 PM |
| How to create an image preloader | full time kille | Website Design | 7 | 15-10-2002 01:07 AM |
All times are GMT +8. The time now is 03:14 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.













Linear Mode

