views:

59

answers:

2

hello! i got a form:

<form name="form2" method="POST" action="post.php">
<p>ba$lik:&nbsp;&nbsp;&nbsp;&nbsp; 
<input type="text" name="baslik" size="90"></p>
<p>spot kisa: <textarea name="spot_kisa"></textarea></p>
<p>spot uzun: <textarea name="spot"></textarea> </p>
<p>kategori: <select name='kategori'>

<? while ($kat=mysql_fetch_array($kategori)) {
 echo "
<option value=".$kat[isim].">".$kat[isim]."</option>";
} ?>
</select>

tiklanma: 
  <input type="text" name="tiklanma" value="0" size="20" /disabled"></p>

tarih: <input value="<?php echo date("M j, Y - g:i"); ?>" name="tarih" />

    içerik:
   <textarea name="icerik"></textarea>
   <script type="text/javascript">

   </script>


   <input type="submit" />

 </form>

and post.php values:

mysql_query("INSERT INTO yazilar (baslik, spot, spot_kisa, icerik, kategori, tiklanma, eklemetarihi)
VALUES
('$_POST[baslik]','$_POST[spot]','$_POST[spot_kisa]','$_POST[icerik]','$_POST[kategori]','$_POST[tiklanma]','$_POST[tarih]')");

i need to add 2 picture links to table with upload form and insert db with post.php. two thumbnails with different size.

thanks!!

A: 

Your welcome. I don't know your question but maybe this helps you:

http://stackoverflow.com/questions/1312227/upload-a-file-to-a-mysql-db-with-php

It gives further information on how to upload files with PHP.

Felix Kling
A: 
Joel Alejandro
thank you very much. this is a good tutorial but what about thumbnail.php source?
Ronnie Chester Lynwood
Check out this: http://joelalejandro.pastebin.com/f1a493429It's a library that can help you handling images. Then, your thumbnail.php source could be something like this:http://joelalejandro.pastebin.com/f2de2dbf1
Joel Alejandro