We help IT Professionals succeed at work.
Get Started

How to insert images in mysql db and display it in a table?

CalmSoul asked
Last Modified: 2012-06-27
here is my form code

I want to insert image in sql db and display it ... with 300 and height 300

also ...

how can i make that browse btn work ...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
	background-image: url(bkgd-mid.gif);
.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
.style2 {
	font-size: 14px;
	font-weight: bold;
<form action="" method="post" name="form1" class="style1" id="form1">
  <p class="style2">Add New Cricket Match</p>
  <table width="100%" border="0">
      <td><select name="select">
        <option value="Test Match">Test Match</option>
        <option value="ODI Match">ODI Match</option>
        <option value="T20 Match">T20 Match</option>
        <option value="English County">English County</option>
        <option value="-- Choose --" selected="selected">-- Choose --</option>
      </select>      </td>
      <td><strong>Official Match # </strong></td>
      <td><input name="textfield" type="text" size="50" /></td>
      <td><input name="textfield2" type="text" size="50" /></td>
      <td><input name="textfield3" type="text" size="50" /></td>
      <td><input name="textfield4" type="text" size="50" /></td>
      <td><textarea name="textarea2" cols="70" rows="6"></textarea></td>
      <td><strong>Player of the match </strong></td>
      <td><input name="textfield8" type="text" size="50" /></td>
      <td><input name="textfield6" type="text" size="50" /></td>
      <td><input name="textfield7" type="text" size="50" /></td>
      <td><strong>Upload Match Picture </strong></td>
      <td><input name="textfield5" type="text" size="50" />
      <input type="submit" name="Submit" value="Browse" /></td>
      <td><strong>Download Links </strong></td>
      <td><textarea name="textarea" cols="70" rows="15"></textarea></td>
          <input type="radio" name="RadioGroup1" value="Normal" />
        <br />
          <input type="radio" name="RadioGroup1" value="Featured" />
        <br />
      <td><input type="submit" name="Submit2" value="Submit" />
      <input type="reset" name="Submit3" value="Clear Form" /></td>

Open in new window

Watch Question
system administrator
Top Expert 2007
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE