Jump to content

Philip

Staff Alumni
  • Posts

    4,665
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Philip

  1. http://www.motif-services.com/Farid-KH/leight.htmt Is also called a "modal box" or "modal popup" http://foohack.com/tests/vertical-align/dialog.html Without the fancy page blackout, and you just want to show or hide a div: http://blog.movalog.com/a/javascript-toggle-visibility/
  2. Pagination? http://www.phpfreaks.com/tutorial/basic-pagination
  3. I've run into that problem. As soon as you think of a great name, you check the domain and its taken >.<
  4. Or we could just throw you, CV, out and you pick you up in a few weeks and you can tell us what you needed.
  5. #5: Computer with internet mine: Air Food Water Shelter Fire
  6. Or, if the sql file is too big to copy paste, place this under the comments in your sql file and above your first DROP IF...: USE `filehost`; That'll tell it to import into the database name filehost.
  7. Should read: <input type="button" name="View" value="View" OnClick="location.href=\''.$files.$row["file"].'\'" class="button_60"> Using a syntax highlighter would help: echo '<input type="button" name="View" value="View" OnClick="location.href=\''.$files.$row["file"].'\'" class="button_60">';
  8. Yeah, it has some good hardware in there.
  9. I still get a lot more satisfaction when I build my own. The thing is (as said before), you can get higher quality products and DIY, or go with cheaper products and be lazy/safe Personally, I would go and build my own (and if you don't know how, I'm sure you know somebody that would build it for you for a fraction of the cost.) However I think you already knew what you were going to do when you asked the question in the original post.
  10. The specs aren't that bad, but I still think it's a bit overpriced. I got better specs off of newegg (OS not included) for $2400 (US dollars ofc.) Hell, you could even switch out the processors for the BE EE, and still be under $3k (and thats 300MHz faster + easier to OC) Your only trade offs are: you dont have to build it yourself, and you have a complete warranty. But it's your call, after all it's your money
  11. But remember - the graphics cards also have limits on max resolutions. Most go up to around 2500*1600. I run dualscreen, 21" and 19" and have a hard time being productive on any screen setup with less real estate. I'm thinking about adding another monitor or two.
  12. Here is a sample script: <?php $id = intval($_GET['id']); // database connection here... $result = mysql_query("SELECT * FROM `images` WHERE `id` = ".$id." LIMIT 1", $conn) or die(mysql_error()); if(mysql_num_rows($result)>0) { $row = mysql_fetch_assoc($result); header( "Content-type: ".$row['filetype'].""); echo $row['image']; } ?> id would be the image id, filetype would contain the Content-type, and image would contain the blob of the image. Then in context: <img src="showimage.php?id=1" alt="some image"> Again, I'd strongly recommend just using normal images, and not storing them in the db since it would most likely cause a lot of strain on a site.
  13. You can store the image in the DB as a blob format. However I'd recommend against it, and just store it as a normal image If you do decide to store it in the database, you need to have a separate file that has a header with the correct file type.
  14. Not sure if this would make much a different, but try passing them as parameters to echo: echo getMonths("month")," ",getDays("day")," ",getYears("year", "1900", "2009"),"\n</td>\n</tr>"; If not, make sure error_reporting(E_ALL); is a the top of your script.
  15. D'oh! Haha, guess that's what I get for not looking on the main site I'm surprised I haven't run into more errors, only issue was a freeze on Opera - but a re-launch did okay.
  16. Yeah, my bad, I meant 2+3. Yeah I don't really like it either, but it beats trying the impossible: installing ie 6
  17. I just stumbled across this site tonight, thought I'd share it because it seems pretty helpful to me: http://www.xenocode.com/Browsers/ It allows you to test your designs in virtual versions of major browsers (right now they have IE 6-8 , FF 1 & 2, Chrome, Opera and Safari.) Anybody else ever used them?
  18. Escaping them would look like: print "<font color=\"#ffffff\">Your email<br /> has been removed from our mailing list. </font>";
  19. Ha, i just realized I also hit 1k the other day, time flies by eh?
  20. Mod rewrite cheat sheet Intro to htaccess (part 2 has the rewrite rules)
  21. Why not just use POST?
  22. <?php $open=strtotime("8:00:00"); $close = strtotime("20:00:00"); $now = time(); if($now>=$open && $now<=$close) { echo 'The store closes in ',floor(($close - $now)/(60*60)),':',floor(($close - $now)/(60)),' at ', date('g:i A',$close); } else { echo 'Sorry, we are closed!'; } ?> That's how I'd do it... but that's just me. No need for strtotime("now") when you could just do time();
  23. Opera? Who uses Opera still?! (Kidding of course - a good browser, just really never makes it into the headlines like Firefox or IE, or hell, even Chrome when it launched)
  24. I'm guessing you still didn't close that first statement correctly. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Save Invoice</title> <link rel="stylesheet" href="php_styles.css" type="text/css" /> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php $BillTo = $_POST["billto"]; $Date = $_POST["date"]; $Terms = $_POST["terms"]; $Description1 = $_POST["description1"]; $Description2 = $_POST["description2"]; $Description3 = $_POST["description3"]; $InvoiceNum = $_POST["invoicenum"]; $Quantity1 = $_POST["quantity1"]; $Quantity2 = $_POST["quantity2"]; $Quantity3 = $_POST["quantity3"]; $Rate1 = $_POST["rate1"]; $Rate2 = $_POST["rate2"]; $Rate3 = $_POST["rate3"]; $Amount1 = $_POST["amount1"]; $Amount2 = $_POST["amount2"]; $Amount3 = $_POST["amount3"]; $Total = $_POST["total"]; if (empty($BillTo) || empty($Date) || empty($Terms) || empty($Description1) || empty($Description2) || empty($Description3)) echo "<hr/><p>You must enter a value in each field. Click your browser's Back button to return to the invoice.</p><hr />"; else if (!is_numeric($InvoiceNum) || !is_numeric($Quantity1) || !is_numeric($Quantity2) || !is_numeric($Quantity3) || !is_numeric($Rate1) || !is_numeric($Rate2) || !is_numeric($Rate3) || !is_numeric($Amount1) || !is_numeric($Amount2) || !is_numeric($Amount3) || !is_numeric($Total)) echo "<p>You have an error! Please click on your browser's Back button to return to the form.</p>"; else { $InvoiceFile = fopen($InvoiceNum . ".txt", "w") ; echo "<h1>Invoice Saved</h1>"; echo "<hr /><br /><table frame='border' rules='rows'>"; echo "<tr><td><strong>Bill To</strong>"; echo "<pre>$BillTo</pre></td>"; echo "<td style='text-align: right' colspan='3'>"; echo "<br /><strong>Invoice #</strong>: $InvoiceNum<br />"; echo "<strong>Date</strong>: $Date<br />"; echo "<strong>Terms</strong>: $Terms</td></tr>"; echo "<tr>"; echo "<td><strong>Description</strong><br />$Description1<br />$Description2<br />$Description3</td>"; echo "<td style='text-align: right'><strong>Quantity</strong><br />$Quantity1<br />$Quantity2<br />$Quantity3</td>"; echo "<td style='text-align: right'><strong>Rate</strong><br />$$Rate1<br />$$Rate2<br />$$Rate3</td>"; echo "<td style='text-align: right'><strong>Amount</strong><br />$$Amount1<br />$$Amount2<br />$$Amount3</td></tr>"; echo "<tr><td colspan='4' style='text-align: right'><strong>TOTAL</strong>: $$Total</td></tr>"; echo "</table>"; } ?> <hr /> </body> </html>
  25. You dont close the if: if (empty($BillTo) || empty($Date) || empty($Terms) || empty($Description1) || empty($Description2) || empty($Description3) || echo "<hr/><p>You must enter a value in each field. Click your browser's Back button to return to the invoice.</p><hr />"; //... Also, you don't close your last else statement.
×
×
  • 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.