Jump to content

dvayne

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dvayne's Achievements

Member

Member (2/5)

0

Reputation

  1. when I click a link it will display a message.. it is possible in javascript? please help me..
  2. here's the table messages username message1 name1 message2 name2 message3 name2 message4 name1 message5 name3 I want to display like this.. name1 message1 message4 name2 message2 message3 name3 message5 please help me..
  3. if I check one or more checkbox then I select yes in dropdown then I click the submit button, the usergroup of the checked names will be updated to verified member.. any help would be appreciated..
  4. I want to select names that are checked (multiple checkbox).. any help would be appreciated.. thanks
  5. thanks, please explain your code... i'm newbie in php
  6. how to check if this url http://www.domain.com/file.php?id=1 , http://www.domain.com/file.php?id=2... is already visited once?? please help me.. thanks..
  7. I want to notify not in email. Every time I login in my site, computer will notify me if new values are inserted in the database. example: you have new messages.. new file uploaded.. new members registered (waiting for approval)..
  8. <html> <head> <title>Upload File To MySQL Database</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .box { font-family: Arial, Helvetica, sans-serif; font-size: 12px; border: 1px solid #000000; } --> </style> </head> <body> <? // you can change this to any directory you want // as long as php can write to it $uploadDir = '..../uploads/'; if(isset($_POST['upload'])) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; // get the file extension first $ext = substr(strrchr($fileName, "."), 1); // generate the random file name $randName = md5(rand() * time()); // and now we have the unique file name for the upload file $filePath = $uploadDir . $randName . '.' . $ext; // move the files to the specified directory // if the upload directory is not writable or // something else went wrong $result will be false $result = move_uploaded_file($tmpName, $filePath); if (!$result) { echo "Error uploading file"; exit; } include 'library/config.php'; include 'library/opendb.php'; if(!get_magic_quotes_gpc()) { $fileName = addslashes($fileName); $filePath = addslashes($filePath); } $query = "INSERT INTO upload2 (name, size, type, path ) ". "VALUES ('$fileName', '$fileSize', '$fileType', '$filePath')"; mysql_query($query) or die('Error, query failed : ' . mysql_error()); include 'library/closedb.php'; echo "<br>File uploaded<br>"; } ?> <form action="" method="post" enctype="multipart/form-data" name="uploadform"> <table width="350" border="0" cellpadding="1" cellspacing="1" class="box"> <tr> <td width="246"><input type="hidden" name="MAX_FILE_SIZE" value="2000000"><input name="userfile" type="file" class="box" id="userfile"> </td> <td width="80"><input name="upload" type="submit" class="box" id="upload" value=" Upload "></td> </tr> </table> </form> </body> </html> please check...
  9. I want to notify not in email. Every time I login in my site, computer will notify me if new values are inserted in the database. example: you have new messages.. new members registered (waiting for approval)..
  10. I want to notify if new values are inserted in the database.. any help would be appreciated..
  11. I'm asking if it's possible to store the values in 1 table
  12. i want the input values to stored in database
  13. is it possible to store the values in 1 table?? name and job title are related to each other.. same with year, no. of employees, no. of agency staff, percentage loss.. any help would be appreciated..
×
×
  • 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.