Jump to content

mostafa_dadgar

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by mostafa_dadgar

  1. mostafa_dadgar

    Erro 1146

    Helloi have a priblem in MySQL data base I got error 1146 when I changed my operating system I can see the tables and the database, but in brwose tab I can't view and change the the data.
  2. Hi Can Help Me For Built This Menu This Menu Get Information From Another Page How Can I this Work
  3. hi all i want add two time for example: now is 8:30 and i want add 1:45 to this time (answer 10:15) how can i this work in php??? please help
  4. hi i write this code I have some Problem <HTML><HEAD><TITLE>Viewing Files in a Directory</TITLE></HEAD><BODY><TABLE BORDER=0 WIDTH="60%" CELLSPACING=2 CELLPADDING=2 ALIGN=CENTER><?phpif (@$Upload) { // Handle file uploads. print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Uploaded file name: $File_name</TD></TR>n"); print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Uploaded file size: $File_size</TD></TR>n"); if (copy ($File, "users/$File_name")) { print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Your file, $File_name, was successfully uploaded!</TD></TR>n"); } else { print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Your file, $File_name, could not be copied.</TD></TR>n"); } unlink ($File); print ("<TR><TD COLSPAN=4 ALIGN=CENTER> </TD></TR>n");}if (@$Delete) { // Handle file deletions. for ($i = 0; $i < count ($Delete); $i++) { if ( unlink ("users/$Delete[$i]") ) { print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Your file, $Delete[$i], was successfully deleted!</TD></TR>n"); } else { print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Your file, $Delete[$i], could not be deleted.</TD></TR>n"); } } print ("<TR><TD COLSPAN=4 ALIGN=CENTER> </TD></TR>n");}if (@$Rename) { // Handle file renaming. for ($n = 0; $n < count ($Rename); $n++) { $OldFilename = $Rename[$n]; $Old = "users/$OldFilename"; $New = "users/$NewName[$OldFilename]"; if ( rename ($Old, $New) ) { print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Your file, $Rename[$n], was successfully renamed!</TD></TR>n"); } else { print ("<TR><TD COLSPAN=4 ALIGN=CENTER>Your file, $Rename[$n], could not be renamed.</TD></TR>n"); } } print ("<TR><TD COLSPAN=4 ALIGN=CENTER> </TD></TR>n");}// Start the form.print ("<FORM ACTION="files.php" METHOD=POST ENCTYPE="multipart/form-data">n");print ("<TR><TD><B>File Name</B></TD><TD><B>File Size</B></TD><TD><B>Delete</B></TD><TD><B>Rename</B> (Enter the New Name in the Box)</TD></TR>n");// Read the files from the directory.$Open = opendir ("users");while ($Files = readdir ($Open)) { $Filename = "users/" . $Files; if (is_file ($Filename)) { $Size = filesize ("users/$Files"); print ("<TR><TD>$Files</TD><TD>$Size</TD><TD><INPUT TYPE=CHECKBOX NAME="Delete[]" VALUE="$Files"></TD><TD><INPUT TYPE=CHECKBOX NAME="Rename[]" VALUE="$Files"><INPUT TYPE=TEXT NAME="NewName[$Files]"></TD></TR>n"); }}closedir ($Open);// Give the upload option.print ("<TR><TD COLSPAN=4 ALIGN=CENTER> </TD></TR>n");print ("<TR><TD COLSPAN=4 ALIGN=CENTER><INPUT TYPE=CHECKBOX NAME="Upload" VALUE="Yes">Upload a file to theserver:<INPUT TYPE=FILE NAME="File" SIZE=20></TD></TR>n");print ("<TR><TD COLSPAN=4 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME="SUBMIT" VALUE="Submit!"></FORM></TD></TR>n");?></TABLE></BODY></HTML> when test this code in localhost, this code work correctly but when Upload this code On my Host dont work. http://gammarad.net/Test/PHPTest/files.php please help me
  5. hii want build page that have button or linkwhen click on add text box in my form dynamiclyhow can i build this?
  6. I test but not workplease give me sample code
  7. hii understand how build and used google map API (w3scholl sample ).but i want display Multiple point on my map.for example 20 upto 2000 point.i can using php and javascript in my websitehow can i buid it?
  8. hihow can i show my laptop webcam (live) for any body whit flash and php?please give me some sample about thisi seach on googlei dont find anything aboutplease help me
×
×
  • Create New...