Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. Just seen Brian's post, try that, if it doesn't work give below a bash! ----- Perhaps you could do this PHP side? Something like... $dtype = (some condition) ? "dtype = 'dtype' AND" : ""; $query = "SELECT COUNT(*) as num FROM $tbl_name WHERE {$dtype} dmajorp = '$smajor' OR dmajorc1 = '$smajor' OR dmajorc2 = '$smajor' OR dmajorc3 = '$smajor' ORDER BY jpted"; A
  2. You're setting the expiry time for the "session cookie" to an un-natural amount of time (I believe is the problem). When you use session_start(); the cookie will be automatically created. When you use session_destory(), close the browser or make no action for x amount of time; the cookie is destroyed. You never need to use setcookie(); for a session cookie! A
  3. You need to modify the headers in the file to force the download, perhaps this could be of help to you: http://www.phpfreaks.com/forums/index.php/topic,95433.0.html A
  4. He'd need to convert them to HTML tags first, try: echo strlen(strip_tags(html_entity_decode($CharS))); A
  5. It's pretty good. The colour scheme's not bad but I'd say a little too much blue. Layout is nice and clean though there are a few slight spacing issues, like for example on the left side content boxes there's a large padding at the bottom of each; but none at the top. In IE (8 BETA I'm using) in the main content area, text from the first block overlaps the next block. The images look a little amateur, especially the picture of a house. Also the footer text looks like you forgot about it. There are a few things that could be done better as I've said, but on a positive note it's a really good start. Get more content up there! A
  6. Ummm as I think someone added a similar comment on your site, I don't the think topic your creating the presentation on will ever allow you to make it perfect. Not in a useful sense at least.. If anyone wanted to find out about PHP they can simply Google for "PHP". If this is just a personal project, to gain experience creating presentations or whatever... I'd probably recommend rewriting each slide; making better use of the English language. Full of grammer and punctuation errors. Also the font is exactly the same throughout, no bold text or sub-headers... It's very basic, basically. A
  7. Hah beat me to the first mistake there. And for the second you have't executed the query. Should be: $sql_p = mysql_query("SELECT * FROM thelist WHERE dmajorp = '$smajor' ORDER BY jposted '$max'"); A
  8. echo $recruit[$i][1] . ' (' . $recruit[$i][15] . ')'; A
  9. Extremely common problem, try searching the forum for: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource" .. Try switching: $rs = mysql_query($sql); To: $rs = mysql_query($sql) or die(mysql_error()); A
  10. hmmm try first: echo $recruit[$i][1] . '<br />'; echo $recruit[$i][15] . '<br />'; See what that displays. If not what you're expecting please show us the code the defines the arrays.. A
  11. echo "{$recruit[$i][1]} ({$recruit[$i][15]})"; edit: made a mistake! A
  12. I like it. I do agree with that it's slightly too much, in things like the repeated thumbnails. Laregly though it's very nice to browse through and extremely easy to navigate. On your portfolio page there are a few bugs though. If you click read more, then read more again (and however many times more you want) the list goes blank. Also when using the arrows to navigate through the sites when you pass the last one on the first page, the list doesn't update to the next page.. Not exactly massive issues but something you may want to sort later.. A
  13. I have to agree with everything jcombs_31 said. The content is poorly written. Do you have the right to host those games on your website? I'm not aware of how the author's released them but I should imagine you'd have to link to the games' site rather than host them yourself? At the very least provide a link to the site underneath... Hmmm I don't find celebrity homes particularly funny? A
  14. Not exactly a 'website' critique, so not a lot to say. Looks like a PowerPoint template..? On the 'why I am interested in PHP' section you've put: "Cross plate form", shouldn't it be "Cross-platform"? I wouldn't say it's easy to learn either, perhaps the very basics? The 'am I comfortable with PHP' slide is pretty pointless! It's not very well written... To be honest I can't really see a point to this presentation. Everything you can find there is available as an "Introduction" to any full PHP tutorial. A
  15. Try this out... http://www.heidisql.com/jheidi/ A
  16. I don't think it's that... I don't think he has the 'open-blog.tk' domain setup to the correct host. A
  17. In my opinion it just sounds like a typical contract going over-board on the issue to ensure their own legal safety. Although broad it still means work you produce away from the company would be yours as it's not linked to them, directly or indirectly... A
  18. Using MySQL's "WHERE" .. SELECT Product_ID, Genus, Common_name, Description FROM products WHERE Genus = 'Narcissus' AND Division = 4 ORDER BY Product_ID DESC Obviously you'll want to use variables instead of fixed values - just be sure to secure your variables before using them in queries! A
  19. Need to read some JavaScript tutorials.. A good place to start is w3schools. Also you may want to look into 'events', 'conditionals' and "window.open" (if you mean a pop-up WINDOW). A
  20. Remove the "@" below: if (@mysql_num_rows($result) == 1) { ... Could be an error you're hiding. Obviously if there is an error it should make things a lot clearer as to why it's not working! A
  21. Just use them as usual... $this->any_var = preg_replace($re, $1, $this->html_snippet); The $1, $2, etc. vars are created by the preg_replace function and do not require you to reference them as part of the class object ..Think I worded that right?? A
  22. Really helpful tutorials: http://www.w3schools.com/ajax Some useful examples: http://www.w3schools.com/ajax/ajax_examples.asp A
  23. Hah there's some pretty strong 'FULL CSS' fan boys here! Personally I aim to be compliant with todays standards as a means to promote myself as a web developer. A valid website gives a stronger impression than an invalid one! I don't hold no hatred to tables but try to not use them where possible, occasionally I give up. I pretty much always use a table to layout a form nicely though.. Though I must imagine FULL CSS websites will climb search engine rankings quicker? A
  24. Hah.. dam it, missed that, or read the first sentence wrong. Anywho, topic solved! Cheers for help! A
  25. Ah okay.. Results from IE8 and FF3 on my machine: IE8 Test 1: 2230 Test 2: 71 FF3 Test 1: 50 Test 2: 67
×
×
  • 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.