We help IT Professionals succeed at work.
Get Started

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

CalmSoul
CalmSoul asked
on
1,221 Views
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 ...

regards,
<!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">
<head>
<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;
}
-->
</style></head>
 
<body>
<form action="" method="post" name="form1" class="style1" id="form1">
 
  <p class="style2">Add New Cricket Match</p>
  <table width="100%" border="0">
    <tr>
      <td><strong>Category</strong></td>
      <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>
    </tr>
    <tr>
      <td><strong>Official Match # </strong></td>
      <td><input name="textfield" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Title</strong></td>
      <td><input name="textfield2" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Season</strong></td>
      <td><input name="textfield3" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Series</strong></td>
      <td><input name="textfield4" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Description</strong></td>
      <td><textarea name="textarea2" cols="70" rows="6"></textarea></td>
    </tr>
    <tr>
      <td><strong>Player of the match </strong></td>
      <td><input name="textfield8" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Result</strong></td>
      <td><input name="textfield6" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Scorecard</strong></td>
      <td><input name="textfield7" type="text" size="50" /></td>
    </tr>
    <tr>
      <td><strong>Upload Match Picture </strong></td>
      <td><input name="textfield5" type="text" size="50" />
      <input type="submit" name="Submit" value="Browse" /></td>
    </tr>
    <tr>
      <td><strong>Download Links </strong></td>
      <td><textarea name="textarea" cols="70" rows="15"></textarea></td>
    </tr>
    <tr>
      <td><strong>Status</strong></td>
      <td><p>
        <label>
          <input type="radio" name="RadioGroup1" value="Normal" />
          Normal</label>
        <br />
        <label>
          <input type="radio" name="RadioGroup1" value="Featured" />
          Featured</label>
        <br />
      </p></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit2" value="Submit" />
      <input type="reset" name="Submit3" value="Clear Form" /></td>
    </tr>
  </table>
</form>
</body>
</html>

Open in new window

Comment
Watch Question
system administrator
Top Expert 2007
Commented:
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