php - How to get upload image for particular user -


database tables: [a].registationform [b].login

total file (1)registrationform.php (2)login.php (3)profile.php

in file details: (1)html fields: upload profile picture , other details.

(2)username, password only registrated user allow use of session

problems: (3)profile.php display details own picture. how can get picture form "registrationform" table. dbtable olny image name there , file in upload folder.

my query

$order = "select * `registrationform` user_id='$id'";      $result = mysql_query($order);    while($data = mysql_fetch_row($result))  {   echo("<tr><td>fistname:$data[1]</td></tr>     <tr><td>lastname:$data[2]</td></tr>     <tr><td>image:$data[5]</td></tr>");  } 

can give me suggestion

thank you.

you may use following statement:----

$order = "select * `registrationform` user_id='$id'";      $result = mysql_query($order);    while($data = mysql_fetch_row($result))  {   echo("<tr><td>fistname:$data[1]</td></tr>     <tr><td>lastname:$data[2]</td></tr>     <tr><td><img src='upload/$data[5]'></td></tr>");  } 

i hope display image of particular user.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -