Jump to content

chennaibala

Members
  • Posts

    38
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chennaibala's Achievements

Member

Member (2/5)

0

Reputation

  1. it not redirecting.it saying The page cannot be found..http 404 error.actually gift.php is present in newyear folder.
  2. hi frds, i want to redirect from one page to other directory php page.it poosible? assume rite now we are in login page.after submit i should redirect my page called gift.php which in other sub directory(newyear) from /login.php to /newyear/gift.php. header('Location: /newyear/gift.php); it not works..any other way? thanks in advance
  3. can u say how to pass value in query using javascript pls...
  4. hi frd, how to getvalue from textbox without submitting . <td align="center"><input id="hidevalue" name="hidevalue" type="text" size="10"></td> i need these hidevalue to pass in query. // $hidevalue' =$_POST["hidevalue"]; $q2="select id, name from tabname where id='$hidevalue' "; $r2=mysql_query($q2); thanks in advance
  5. hi frd... $s1 = "INSERT INTO ..................." mysql_query($s1); mysql_query("COMMIT"); but no idea on roll back ShaolinF ...
  6. thanks for reply taquitosensei ....my code work fine in wamp server installed machine. it get image frm server path and displayed...if i run that same site in other machine in lan network by calling server number of wamp installed machine..picture is not displayed,because it serching for image in running machine path....wht is solution to to get image path of server while i run in lan connection?
  7. hi frd i have upload my photo in upfile folder inside www folder of wamp.now i want to display my photo to modify.for that i got root path in hiden textbox and append upload photo name to diplay. <td align="center"><input id="sam" name="text" type="text" size="10" value="<?php error_reporting(E_ALL^E_NOTICE); $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); $val1=$_SERVER['DOCUMENT_ROOT'] . $directory_self . 'upfile/'; echo "$val1" ; ?>"></td> when i run the code..i can get phot image root path like below.. D:/wamp/www//upfile/ for display purpose i used java script.. document.getElementById('pic1').src=document.getElementById('sam').value+sun.gif; these code work nice in local machine....when i run these code in lan network machine where wamp server installed in other machine.pic is not diaplaying because my code serching for photos D:/wamp/www//upfile/sun.gif in that running machine!!!it not getting server path to get show that image..wht may problem..thanks in advance frdss
  8. thanks mike...after the change ,now control is not going inside loop itself..$picname is not printed...wht may problem..
  9. hi frd here coding for u...by using these code i can insert only first image i.e image0056.jpg,other imagename not inserted.wht may be probem?thanks in advances... for($i=1; $i<=3; $i++) { // $tmp_name= $_FILES["file"]["tmp_name"][$i]; $no = 0; $picname = $_FILES["file"]["name"][$i]; // echo $name; $sql1 = "INSERT INTO pictable(no, picname) VALUES('$no','$picname )"; mysql_query($sql1); mysql_query("COMMIT"); mysql_close($con); }
  10. hi PFMaBiSmAd.. it is not problem of uploading..it problem inserting image name in that sql in that format...
  11. hi am upload image by using below html tag <input id="file1" type="text" value=0> <input id="file1" type="file" name="file[]" > <input id="file2" type="file" name="file[]" > <input id="file3" type="file" name="file[]" > <input type="submit" value="Send" /> <input id="file1" type="file" name="file[]" > upload image show path like C:\Documents and Settings\My Documents\My Pictures\images0056.jpg i need image name with extension like images0056.jpg etc from file[] insert in database. it must insert in these format value imagename ------- ----------- 0 image0056.jpg 0 image0057.jpg 0 image0058.jpg thanks in advance..
  12. thanksss,but i using same name for all input type="file".so problem in getting name.. <input id="file1" type="file" name="file[]" > <input id="file2" type="file" name="file[]" > <input id="file3" type="file" name="file[]" >
  13. hi frds.. <input id="file1" type="file" name="file[]" > upload image show path like C:\Documents and Settings\My Documents\My Pictures\images0056.jpg i need image name with extension like images0056.jpg..thanks in advance....
×
×
  • 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.