Jump to content

merck_delmoro

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by merck_delmoro

  1. can any one here know how to resize temporary file image and upload to mysql coz large images is hard to buffer on my school project
  2. I am trying to move a file from a pc to another pc but i got a problem, how to move a file if there is a password permission on the pc that i want to move the file? any help will be appreciated thank you
  3. is there any library do i need to download just to do it? if not what function do i used in php? the only thing i knew is uploading files to server ^^ not transferring files from computer to computer can u gave me guild for it? just a simple logic no idea entering my mind now :'(
  4. Is it posible to transfer files using computer to computer using lan php?? like the netop does?
  5. I am building a php code that sends an email but when I use mail function it is not working properly I try a simple code of mail it is not working either and also i try the codes form w3schools the tutorial of scripts I copy paste the code and try it but still not working is there any alternative ways to mail using php???
  6. use $_POST to sends the check values in every page and make a $_SESSION for them
  7. @ignace I dont have problem on searching the multiple words my problem was I want to arrange all the matching strings from my csv file starting from the nearest match string that I typed
  8. make a condition like if(!isset($_COOKIE["username"])) { header("location:login.php"); }
  9. Use this PHP function mail(to,subject,message,headers,parameters)
  10. you should always place the include on the top of your code not on the bottom and "mysql_query" not "msql_query"
  11. because you don't have any image created make an image using any picture editor dn change the SRC value from <INPUT TYPE="image" SRC="button.gif" VALUE="Search" ALT="Search" NAME="Search"> to the name of your picture that been create
  12. Change <input type='submit' name='submit' value='Search'> to <INPUT TYPE="image" SRC="button.gif" VALUE="Search" ALT="Search" NAME="Search">
  13. read this article http://javascript.internet.com/forms/email-validation---basic.html
  14. study the program inside this page http://php.about.com/od/phpwithmysql/ss/php_pagination.htm
  15. Sorry I forgot to tell you that ^^ yup the function was a JavaScript function
  16. there are no errors it checks all the check boxes when I click it are you sure you are clicking the right button??? <?php error_reporting(E_ALL); require("inc/config.php"); if (isset($_POST['del'])) { for ($count = 0;$count<count($_POST[delchk]);$count++) { $delete = $_POST[delchk][$count]; $query = "DELETE FROM persons WHERE id = '$delete'"; $result = mysql_query($query); if (!$result) { die("Error deleting persons! Query: $query<br />Error: ".mysql_error()); } } } $result = mysql_query("SELECT * FROM persons"); // Check how many rows it found if(mysql_num_rows($result) > 0){ echo "<table id=\"mytable\"> <thead> <tr> <th align=\"center\" scope=\"col\">Delete</th> <th align=\"center\" scope=\"col\">First Name</th> <th align=\"center\" scope=\"col\">Last Name</th> <th align=\"center\" scope=\"col\">High Scores</th> <th align=\"center\" scope=\"col\">Date of Entry</th> <th align=\"center\" scope=\"col\">IP Address</th> </tr> </thead> <tbody>"; echo "<form name = 'myform' action='' method='post'>"; while($row = mysql_fetch_array($result)) { echo "<tr align=\"center\">"; echo '<td><input type="checkbox" id="delchk" name="delchk[]" value="'.$row['id'].'" /></td>'; echo "<td>" . $row['FirstName'] . "</td>"; echo "<td>" . $row['LastName'] . "</td>"; echo "<td><a target=frame2 href='" ."profile.php?user1=". $row['FirstName'] ."'>Check HighScores</a></td>"; echo "<td>" . $row['AddedDate'] . "</td>"; echo "<td>" . $row['Ip'] . "</td>"; echo "</tr>"; } echo "</tbody>"; echo "</table>"; echo "<hr>"; echo "<input type='submit' name = 'del' value='Delete Selected'></form>"; echo "<input type='button' onclick='checkall(document.myform.delchk);' value='Select All'>"; echo "<input type='button' onclick='uncheckall(document.myform.delchk);' value='UnSelect All'>"; } else{ // No rows were found ... echo "No Registered Members"; echo "</tbody>"; echo "</table>"; } mysql_close($con); ?>
  17. I have tested the code it check all the checkboxes when I click button named "SELECT ALL" try your code from your post yesterday here is the link http://www.phpfreaks.com/forums/index.php/topic,266488.0.html
  18. on your place onSubmit("return action();") on your <form> and make a function named action() or any thing you want to name it dn make a if else condition for your validation if validation creates an error return false; and if no errors return true;
×
×
  • 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.