Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do i get the actual image to show on my page rather than the text?
    primarykey
    data
    text
    <pre><code>&lt;?php require 'db.php'; include_once("header.php"); include_once("functions.php"); if(isset($_POST['search_term'])){ $search_term = mysql_real_escape_string(htmlentities ($_POST['search_term'])); if(!empty($search_term)){ $search = mysql_query("SELECT users.username, users.id, tbl_image.photo, tbl_image.userid FROM users LEFT OUTER JOIN tbl_image ON users.id=tbl_image.userid WHERE users.username LIKE '%$search_term%' and users.business &lt;&gt; 'business'"); $result_count = mysql_num_rows($search); $suffix = ($result_count != 1) ? 's' : ''; echo '&lt;div data-theme="a"&gt;Your search for &lt;strong&gt;' , $search_term ,'&lt;/strong&gt; returned &lt;strong&gt;', $result_count,' &lt;/strong&gt; record', $suffix, '&lt;/div&gt;'; while($results_row = mysql_fetch_assoc($search)){ echo '&lt;div data-theme="a"&gt;&lt;strong&gt;',$results_row['photo'], $results_row['username'], '&lt;/strong&gt;&lt;/div&gt;'; $following = following($_SESSION['userid']); if (in_array($key,$following)){ echo ' &lt;div action= "action.php" method="GET" data-theme="a"&gt; &lt;input type="hidden" name="id" value="$key"/&gt; &lt;input type="submit" name="do" value="follow" data-theme="a"/&gt; &lt;/div&gt;'; }else{ echo " &lt;div action='action.php' method='GET' data-theme='a'&gt; &lt;input type='hidden' name='id' value='$key'/&gt; &lt;input type='submit' name='do' value='follow' data-theme='a'/&gt; &lt;/div&gt;"; } } } } ?&gt; </code></pre> <blockquote> <p>How do i get the actual image to show on the page rather than the name of the image. I have the images in the file system under a folder called image. How do I echo that image on screen or if echo is not the right way to do it how would you do it?</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload