sungpeng
-
Posts
290 -
Joined
-
Last visited
Posts posted by sungpeng
-
-
$update=mysql_query("UPDATE listings set $hihi='' WHERE rid = '$rid'");
header('Location: http://www.example.com/housing/test2.php?rid=2');
Hi check I need the page to immediately go to the location after update but it always show me a error message Warning: Cannot modify header information - headers already sent by (output started at /home2/exmple/public_html/delete.php:6).
Why is that so?
-
$delete=mysql_query("DELETE FROM listings.img0 WHERE rid = '$rid'");
hi check how to delete one field "img0" from index number "rid".
Above code not working
Thank
-
<a href='delete.php?"rid=$indexnumber", "$hihi=$hihi"'>sent</a>
Can I know how to sent two variables to next pages? Above code not working..
$rid= $_GET[rid];
$hihi=$_GET[hihi]; on delete pages
Thank
-
I have fields img1, img2, img3, img4, img5, img6, img7, img8, img9 in mysql.
Given 3 input box only
for($i=1; $i<=3; $i++){
echo "<tr><td>text $i</td></tr>";
echo "<tr><td><input type=text name='text[]''></td></tr>";
}
I need a code that can insert 3 values into mysql above fields if the fields is empty. How to code? Can help?
-
Can anyone help I need to resize image dimension 300 x 200 pixels to 100 x 100 pixels?
-
hi PFMaBiSmAd,
Could help explain the "outputting content to the browser before a header" and the "Your files have BOM (Byte Order Mark) characters". Trying to understand. I find that I just put the include 'header'; later than the session it solve the problem.
-
one thing I not sure why php want to make thing hard for us.. why when I sent over _SESSION _POST there is whitespace.
-
I change to a new hosting provider and the problem arise.. beforehand when I am with another is ok.
-
because I always got the error "cannot send session cache limiter" "cannot send session cookie" when doing with session
-
ok everytime if I need to stored a session and display on next pages got to trim(_session['data']); ?
-
Can anyone help explain what is whitespace in php. thank
-
it doesn't upload the picture into the folder "instant" which is set to 777
-
This code work on readyspace.com.sg but it doesn't work on hostmonster.com
-
<?php include 'config.php'; if($_POST[action]=="Update") { $folder_path="instant/"; $image_path=$folder_path.$_FILES['imagefile']['name']; $img_name=$_FILES['imagefile']['name']; copy($imagefile, "$image_path"); } ?> <html> <title>Upload an image to a database</title> <body> <h2>Update with new information</h2> <form name="form" enctype="multipart/form-data" method="post" action="<?php echo"$PHP_SELF?pid=$_GET[pid]"; ?>"> <input type='file' name='imagefile'><br> <input type="submit" name="action" value="Update"> </form> </body> </html>
Hi good day check is there error in my code? Why I cannot upload anything picture using this code. Thank
-
I also see it does not unlink (delete) previous images.
-
hi shadiadiph,
Thank for the effort, I think the code allow all type of file to upload as I only require jpg file to upload for security reason. Is there a way?
-
anticipate your coding. Thank for help. 3.10am in singapore here. I will read your posting tmr morning.
-
-
imgdata1type is it neccessary for exta "type" row as my previous one photo insertion does not have it?
-
<a href='insertphoto.php?pid=$doing[pid]'>insert photo</a>
this is the previous pages code
-
yes it does, they already log on, but for extra security I ask them to key in their user name and password again.
-
If the user did not upload any photo on image 5, the picture remain there. If the user upload a photo on image 6, then unlink the previous image 6 and upload the new one.
-
Yes the images name can save in imgdata1, imgdata2, imgdata3 etc in the database. The images itself saved in the unique folder of the user. The folders name is just numbers.
-
so that the photos is all in one folder belong to one person.
[SOLVED] header error message
in PHP Coding Help
Posted
hi Ayon, can teach me how to code? I am new to php..
[html starting the page and layout]
[php echoing the results]
[form code if failed - exit(); if successful]