Jump to content

F1Fan

Members
  • Posts

    1,182
  • Joined

  • Last visited

Everything posted by F1Fan

  1. You'll need to use CSS. <td style="height:100px;overflow:hidden;"> The overflow:hidden attribute will hide anything larger than the element size.
  2. Have you looked at http://www.w3schools.com/? They're a great resource. That site will help you learn, but also is a great reference. I've been doing this for years, and I still hit their site daily.
  3. F1Fan

    what's this

    ignace and I were both overlooking the fact that you had an input type of "file." If you have a form with enctype="multipart/form-data", then the file type is $_FILE and all other inputs are still $_POST. So, to correct my first post: $_FILE['fileArray'][0];
  4. Hmm. I would trust jQuery's own documentation first. Maybe you're right about the version, but everything says you can use a JS date, so just do that.
  5. Those min/max dates need to be JavaScript dates, not strings. Go to http://docs.jquery.com/UI/Datepicker#option-dateFormat and click on "formatDate." Also, you can add all those options together and put them into the first datepicker() call.
  6. Nope. You don't actually need any options, as they are options.
  7. In this line: $("#datepicker").datepicker(); "datepicker" needs to be the ID of the text field that you are trying to apply the datepicker to. So it should be "txtEnddate." Also, these two lines: $( ".selector" ).datepicker( "option", "altField", 'txtEnddate' ); $( ".selector" ).datepicker( "option", "showOn", 'both' ); need to be inside the document.ready function, and they need to reference the ID of the datepicker field. Try this instead: $(document).ready(function() { $("#txtEnddate").datepicker(); $( "#txtEnddate" ).datepicker( "option", "altField", 'txtEnddate' ); $( "#txtEnddate" ).datepicker( "option", "showOn", 'both' ); });
  8. I assume that there is a "Members" table in the database that you're connecting to? Have you tried running that query manually using phpMySQLAdmin, or any other SQL tool, using the same connection parameters that you're using on this page?
  9. Both of the functions that I listed are JavaScript functions. And, yes, you could use regex to modify what I sent. Or, you could even add what you want as valid characters to the "ValidChars" variable.
  10. Hmm. Try adding the connection object to the select: $result = mysql_query("SELECT * FROM Members", $con);
  11. Well, without completely writing the code for you, here's an example of something I wrote that only allows numeric entries: $s='<td><input type="hidden" name="txtMID[]" value="'.$row['mid'].'" size="6" onkeyup="this.value=getNumeric(this.value);" />'; echo "$s\n"; function getNumeric(text){ if (!isNumeric(text)){ text = ''; } return text; } function isNumeric(sText){ var ValidChars = "0123456789.-"; var IsNumber=true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++){ Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1){ IsNumber = false; } } return IsNumber; }
  12. http://jqueryui.com/ has a great one.
  13. You'll need to either use JavaScript to validate before the page is submitted, or PHP to do it after the fact.
  14. Possibly the DB select. Try this (also, please post code in the code tags, as it makes it far easier to read): $db_con = mysql_select_db("my_db", $con); if (!$db_con) { die('Could not connect to "my_db": ' . mysql_error()); }
  15. When you try what? What error? Please post the rest of your code. There probably isn't a problem with that line, it's just that's the first time that PHP sees a problem.
  16. So you just want a PHP page that gets a list from a table in MySQL and displays it for you? If so, you've posted in the wrong place, as that would be PHP and MySQL, not just HTML. Start with a simple PHP/MySQL tutorial like this one: http://www.w3schools.com/php/php_mysql_select.asp
  17. Like phpMySQLAdmin? http://www.phpmyadmin.net/home_page/index.php
  18. F1Fan

    what's this

    Here's a quick little tutorial that may help: http://www.w3schools.com/php/php_file_upload.asp
  19. F1Fan

    what's this

    Post your code.
  20. F1Fan

    what's this

    You have your brackets in the wrong place: $_POST['fileArray'][0]; If all else fails, do this to see what you're getting: print_r($_POST);
  21. Well, post your code. What exactly is freezing up? The computer, the web page, or your browser? If you use Firefox, you can install the Firebug add-on. It will allow you to actually watch your ajax calls as they happen and it is a great troubleshooting tool.
  22. F1Fan

    password protect

    This would be server-side, not client-side. A server configuration that password protects each directory is what you'd need in this situation.
  23. Do you mean "beside," because that's very different. If so, use the CSS "display" and "float" attributes. Add "display: inline;" to both tables. Then, add "float: left;" and "float: right;" to the left and right tables, respectively. Finally, make sure that the total width of each table doesn't exceed the width of the window. If you're using percentage widths, never exceed 100% total. In fact, sometimes margins and padding will make 100% too much, so try 99%, 98%, etc. Try that.
  24. F1Fan

    Submit Code

    Well, I know that clicking a submit button in a form will submit that form. So, I used the click() function to simulate clicking that submit button. I figured that out a while back when trying to figure out a way to call a JavaScript function that is on one page from another page, usually in a form.
  25. You could have a JavaScript function that runs every 60 seconds, either using setTimeout or setInterval, that will call an AJAX/PHP script that searches the DB.
×
×
  • 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.