473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

selected picture from database is not appearing?

Paul NIcolai Sunga
are these codes are right?
these are what i use in retrieving the picture..


Expand|Select|Wrap|Line Numbers
  1.  <?Php   
  2.  error_reporting (E_ALL ^ E_NOTICE);
  3.  
  4.  $Link = mysqli_connect("localhost","root","tupi", "amyak_maleh");
  5.              if (!$Link)
  6.                {
  7.                trigger_error("Could not connect", E_USER_ERROR );
  8.                }
  9.  $query = mysqli_query($Link, "SELECT picture FROM Registration_form ORDER BY form_no DESC LIMIT 1" );
  10.  
  11.     if($row = mysqli_fetch_row($query))
  12.     {
  13.       $picture1 = $row['picture'];
  14.     }
  15.  
  16.     ?>
  17.  
  18.  <table width="200" border="1">
  19.    <tr>
  20.  <td><input name="pix" type="image" value="<?Php  error_reporting (E_ALL ^ E_NOTICE);  echo $picture; ?>"/></td>
  21.  </tr>
  22.  </table>
  23. ?>
  24.  
Jul 29 '09 #1
3 1545
Dormilich
8,658 Expert Mod 8TB
nope, see this thread for an explanation ;)
Jul 29 '09 #2
<input type="image" src="<?Php error_reporting (E_ALL ^ E_NOTICE); echo $picture; ?>" />

try this...
Jul 29 '09 #3
Dormilich
8,658 Expert Mod 8TB
@vinothPHP
won't work either (for the same reason)

the complete definitions for an input element (src attribute marked in bold)
Expand|Select|Wrap|Line Numbers
  1. <!ENTITY % InputType
  2.   "(TEXT | PASSWORD | CHECKBOX |
  3.     RADIO | SUBMIT | RESET |
  4.     FILE | HIDDEN | IMAGE | BUTTON)"
  5.    >
  6.  
  7. <!-- attribute name required for all but submit and reset -->
  8. <!ELEMENT INPUT - O EMPTY              -- form control -->
  9. <!ATTLIST INPUT
  10.   %attrs;                              -- %coreattrs, %i18n, %events --
  11.   type        %InputType;    TEXT      -- what kind of widget is needed --
  12.   name        CDATA          #IMPLIED  -- submit as part of form --
  13.   value       CDATA          #IMPLIED  -- Specify for radio buttons and checkboxes --
  14.   checked     (checked)      #IMPLIED  -- for radio buttons and check boxes --
  15.   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  16.   readonly    (readonly)     #IMPLIED  -- for text and passwd --
  17.   size        CDATA          #IMPLIED  -- specific to each type of field --
  18.   maxlength   NUMBER         #IMPLIED  -- max chars for text fields --
  19.   src         %URI;          #IMPLIED  -- for fields with images --
  20.   alt         CDATA          #IMPLIED  -- short description --
  21.   usemap      %URI;          #IMPLIED  -- use client-side image map --
  22.   ismap       (ismap)        #IMPLIED  -- use server-side image map --
  23.   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  24.   accesskey   %Character;    #IMPLIED  -- accessibility key character --
  25.   onfocus     %Script;       #IMPLIED  -- the element got the focus --
  26.   onblur      %Script;       #IMPLIED  -- the element lost the focus --
  27.   onselect    %Script;       #IMPLIED  -- some text was selected --
  28.   onchange    %Script;       #IMPLIED  -- the element value was changed --
  29.   accept      %ContentTypes; #IMPLIED  -- list of MIME types for file upload --
  30.   >
Jul 29 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: big E | last post by:
Ahoy I need to make a webpage (php) where users can select some excercises(with picture) out of 40, and then display a page with only the selected excercises (with their picture) that you can...
2
by: Ulrike | last post by:
I need to bind in (thumbnail-sized) pictures into an Access Database in such a way that there is one picture for each record (abt. 3000 records on the whole). Ideally, the pictures should show on...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
1
by: jw01 | last post by:
Im trying to write a java script in HTML in which when a particular radio button is selected, a textbox would appear write next to the selected item. e.g (RADIO BUTTON) fhd: (RADIO BUTTON) fdj:...
3
by: abspring | last post by:
Hi I am a technology teacher/support person at an elementary school. I have created a database in which I need to insert a picture for each of our 650+ students. I have a table of student...
1
by: davidwelli | last post by:
Hello, I have a Access 200 format database that contains contact details and a picture for each record. The contact details are held in one table and the images are held in another as OLE...
0
by: Nathan Sokalski | last post by:
I have a DropDownList in which I set the SelectedIndex property in my code. However, when I run a debug it does not appear selected (actually, none of the ListItems are even visible in the...
34
Paul NIcolai Sunga
by: Paul NIcolai Sunga | last post by:
here's the code for retrieving the info in the pic..but the info in filedata only showing a set of strings.. <?php $Link = mysqli_connect("localhost","root","tupi", "amyak_maleh");...
1
oranoos3000
by: oranoos3000 | last post by:
hi i make a shopping online that in home page i show my product picture's to user (information product's such as address location of picture and name and the other properties is kept in database my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.