Jump to content

-twenty

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by -twenty

  1. I tried searching but came up empty handed, hoping you guys can give me some assistance. I have a login script that I would like to lock down a little from flooding. What is the easiest way to do this? Something that will restrict the IP if the script encounters x amount of failed attempts in x amount of minutes. Thanks!
  2. Are you referring to something similar to how Kijiji creates sub domains for certain cities? ie: http://toronto.kijiji.ca http://vancouver.kijii.ca Pointing them to the same location, but the output of the page is based upon the dns suffix currently being used? Ie: Toronto returns results from the Toronto database, etc.?
  3. Which one do you guys use and why? I'm looking at the pros and cons of both applications and just wondering if anyone has experience using both these applications.
  4. I've used dotProject many times and I love it, for the cost it's a great app.
  5. Microsoft has an AJAX Toolkit that includes a pretty snazzy little WYSIWYG editor, might want to check it out.
  6. What kind of detail are you looking for? If you wanted to echo it... <?php echo $_GET['varname']; ?>
  7. To pass variables in your URL, and then use them in the page can be done like so: URL with variable:http://www.yourdomain.com/index.php?title=texthere Echo on the page (as the title, in your case): <title><?php echo $_GET['title'] ?></title>
  8. Looks like a pretty robust little app. I entered "Test Test" as my firstname, and it said I cannot have numbers in my first name. Might want to check that out. Other then that, great job!
  9. I haven't tested your application as I don't readily have a .NET testbed outside of work, but I really like the appeal of your website; very professional and Web 2.0ish. Best of luck!
  10. Not sure if you need to do this with .htaccess, but you can setup a PHP page with a form allowing for input of your variables and would execute like so: [*]Post your variables, entering them into a database table [*]Upon sucessful post/validation of the text, redirect the user to the PDF via <? header(location: mypdf.pdf); ?> Hope this helps!
  11. Full blown Management Studio is available for you to use if you actually own the SQL Server license itself, otherwise you can download Management Studio Express from MSDN which is basically the same thing minus some functionality that may not be important to you as your webhost should be responsible for (maintenance plans, SQLMail, etc.)
  12. Same thing... *sigh* <?php $eventsquery = "SELECT * FROM events WHERE PO = $thispo"; $eventsqueryhandle = mysql_query($eventsquery) or die ("Events query failed: " .mysql_error()); for($count=0;$eventsrow = mysql_fetch_array($eventsqueryhandle);++count) { echo "<tr>"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['date']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['userid']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['details']</td>\r\n"; echo "</tr>"; } ?>
  13. Hi all, I'm having some problems with a simple query and can't quite figure out what the cause is.. I've searched the syntax error, but it doesn't appear like I am missing anything. Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM on line 74 <?php $eventsquery = "SELECT * FROM events WHERE PO = $thispo"; $eventsqueryhandle = mysql_query($eventsquery) or die ("Events query failed: " .mysql_error()); for($count=0;$eventsrow = mysql_fetch_array($eventsqueryhandle);++count) { echo "<tr>"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['date']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['userid']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['details']</td>\r\n"; echo "</tr>; } ?>
  14. -twenty

    PDFLib

    Had too many issues with PDFLib with PHP 5 so I ended up finding FPDF actually, using that instead. Can't comment on implementation yet, haven't developed that module yet. I'll report back once I do with some examples!
  15. -twenty

    PDFLib

    Anyone using PDFLib with PHP5? I found a nice tutorial online on how to install it manually but I'm having some issues. It's been a long night so I'm going to troubleshoot it tommorow. Just wondering what else you guys are using to generate PDF files from PHP?
  16. Oops! Haha. Well, entering it with strtotime directly into the database seems to work fine as well- no one will be looking at the raw data anyways. Both ways would generate the same end result, so were good! Thanks again.
  17. Cool, thanks for the info. What I did was generate 1 January 2010 with strtotime and it resulted in 1262325600. I replaced that with 2010-01-01 in the database and the end result is now Fri, 1 Jan. Thanks!
  18. Hi all, this is a simple one but it has be stumped. I'm storing the date in my database as 2010-01-01. I'd like it formatted a little nicer when I return the output to the user, so I'm doing this... echo "<td>". date("D, j M", $$ordersrow['requiredby']) ."</td>\r\n"; Though, the returned output is Wed, 31 Dec and not Fri, 1 Jan. Help?
  19. Realistically I'd like to do it without a framework since this will be the only piece of JS in the application, so traditional javascript functions are preferred...this is seeming to be a harder task then I thought it would have been!
  20. Cool, thanks for the quick response! But I'm not quite sure that's what I'm looking to do... When character count = 10, then submit the form.
  21. I know this is done with JS, I just can't find any examples on how it's done. I'm looking for a form to automatically post once the character count in a textbox reaches a certain number. Can anyone suggest any examples?
  22. Cool- thanks for the info on generating bar codes. I'm not sure if HTML templates is the direction I want to go with this, though I will keep it open as an option if I can't figure out a simple alternate. The idea is to use a label printer (3.5" x 2.0" or so), rather then getting two on an 8 1/2 x 11 page. Any single PO can easily have 20+ pieces, so paper itself isn't really the most economic way to do it I think.
  23. Hi all, I'm currently in the process of developing a purchase order system for a local company. Basically, the application tracks purchase orders as they come in and the staff updates the order as the work progresses- fairly basic input/output system using PHP/MySQL. I've come up with the idea of integrating labels to track each individual item. My initial idea was to use PDFLib to generate a specific sized PDF of all the pertinent order details, and then would be able to be printed directly from Acrobat. I've found a few libraries that allow the generating of barcodes as well- but I think I'm going to hold off on that part until the second release of the application. What are your thoughts/inputs of generating barcodes this way? Have any of you done something similar like this before? Any input is greatly appreciate! Cheers.
×
×
  • 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.