Jump to content

herando

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

herando's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello all, i need to convert csv to xml using php. can anyone give me an example or some tutorial link about that. thnx.
  2. How to set initial value of file form field. If I set <input type="file" name="file" value="something" /> , the value doesn't appear on screen.
  3. Objective - to update table records via form field. If I have text field, the field remembers the value in such way: <input name="object" type="text" value=" <? echo $rows['object']; ?> "/> How to remember the value of List/Menu field? <select name="object"> <option selected="selected">--- choose ---</option> <option value="0">Beer</option> <option value="1">Wine</option> <option value="2">Vodka</option> </select>
  4. i choose a file from a form field and upload to folder and write a file name to table. when i delete a row, it deletes only file names from table. how to delete a corresponding file when a row is deleted? row delete line: $sql_del="DELETE FROM $data_table WHERE id='$id'";
  5. hi all, i choose a image file from form field and upload. but the browser shows such errors: Notice: Undefined variable: uploadfile in c:\program files\apache group\apache\htdocs\u-r\upload.php on line 20 Notice: Undefined variable: uploadfile in c:\program files\apache group\apache\htdocs\u-r\upload.php on line 23 Warning: imagecopyresampled(): supplied argument is not a valid Image resource in c:\program files\apache group\apache\htdocs\u-r\upload.php on line 37 Notice: Undefined index: uploadfile in c:\program files\apache group\apache\htdocs\u-r\upload.php on line 42 Warning: imagedestroy(): supplied argument is not a valid Image resource in c:\program files\apache group\apache\htdocs\u-r\upload.php on line 45 could anyone help me, please. here is the resizing code: <?php $uploadedfile = $_FILES['uploadfile']['tmp_name']; $src = imagecreatefromjpeg($uploadfile); list($width,$height)=getimagesize($uploadfile); $newwidth=260; $newheight=195; $tmp=imagecreatetruecolor($newwidth,$newheight); imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); $filename = "../images". $_FILES['uploadfile']['name']; imagedestroy($src); imagedestroy($tmp); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.