Jump to content

jardrake

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by jardrake

  1. Greetings! I have been working on the design for site-seo-analysis.com. It's practically finished and the algorithm is good to go. Please help me by providing some helpful criticism (design, functionality, or usability). The beta version banner is only temporary and I have to remove it The website analyzes web pages or websites with respect to search engine optimization ultimately hoping to help people rank their awesome websites higher in search engine results. Thanks for your help!
  2. I don't know what all you have tried, but PHP can dynamically generate the CSS. Maybe not the best solution, but the power of PHP is always neglected. For some reason, people believe that files have to be a certain type, but PHP files can output whatever you want. RSS feeds can even be PHP files that just output xml code. Anyways, I hope this idea helps.
  3. Save your money! Programmers love sharing their knowledge, maybe not their scripts, but they will share useful knowledge about the language. Type in something like JavaScript tutorials into Google. Of course, w3schools will top the list, but there are others as well.
  4. I personally like the website. If I was to offer any critique it would be to incorporate color. Sure, black, gray, and white is a cool monochromatic scheme, but why not highlight focus with some red or another color. What I mean is that there is nothing that particular draws my attention to where I should begin. Colors are perfect for that. Best of luck to you!
  5. Thanks a lot Coaxsist for the fieldset catch. I have built my own CMS that does miss a few things I am glad you enjoy it. That is precisely what I intended it to be. I want to speak as plain as possible and have the tutorials flow as if I am talking to you. I always wanted to be taught that way.
  6. Well 2 things here, nothing should look like it is happening as AJAX is behind the scenes (use firebug on FireFox to see ajax calls). Second, PHP should be $tmp = json_decode($_POST["json"]);
  7. Hopefully, you are using jQuery You can place the buttons in a div and then do something like <form action="#" method="post"><div id="someId"><input type="button" onClick="sendRequest();return false;" value="Submit" name="someButton"/></div></form><script>function sendRequest() { $('#someId').html('Loading...'); setInterval('showButton()',2000); // too lazy to make an ajax request }function showButton() { $('#someId').html('<input type="button" onClick="sendRequest();return false;" value="Submit" name="someButton"/>');}</script> So on the success of your ajax request, you can call the function showButton() to remove the 'loading...' message. Of course, you could also set the HTML to a loading .gif image instead.
  8. pfft, there is no way you are new to JavaScript. You're code is rather advanced I didn't dig to deep into your serializeObject... But since you are harnessing the power of jQuery, you can probably do some modification of: jsonData = JSON.stringify($('form').serializeObject());jQuery.post("someFileName.php", {json: jsonData}, function(data){ console.log(data); });
  9. Try creating a class for all of the divs with something like: <html><head><style>.div-group { display:inline-block; width:33%; height:150px; background-color:#900;}</style></head><body><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div></body></html> You don't actually need the "background-color:#900;" that was for my testing purposes
  10. wendilogic What you are asking is not impossible, but a very messy solution would be required. The best option is how you currently have it. Since each column is different from each other, there is no good way for the middle column to know exactly how to space itself equally from the other two columns that are suppose to be flush with different ends.
  11. Whoa, what's up with using your # everywhere instead of their real values like ( and ). Anyways, what type of database are you using, are you sure it supports integer and not int?
  12. Since you never set $_SESSION['username'] equal to anything, it will only echo out null. Also, $username = "trainee" is silently failing because you are setting equal to and not testing if equal to. This is a remarkably common mistake of using = when you meant to use ==.
  13. This highly depends on what server side language you are using. Props to thescientist for recommending PDO because it is one of the awesome classes in PHP. Essentially, an sql injection occurs when a user injects code that looks like sql code and reads as sql code when put in the query. //partial PHP codeWARNING: this code is an example of bad code"SELECT username, passwordFROM usersWHERE username = $_POST['username']AND password = $_POST['password']" Suppose you have that query, and I send the post variables of $_POST['username'] = " 'aaa' OR 1=1 -- "Now you have, "SELECT username, password FROM users WHERE username = 'aaa' OR 1=1 -- The AND statement is now left out because it was commented, and now I get every username and password because 1 is always equal to 1. If for some odd reason you printed out those results to the screen like to show their username, I would have a list of all the usernames in your 'users' table. PDO escapes this issue with the execute statement and using placeholders in the sql query.
  14. Just a quick note $_SERVER['HTTP_USER_AGENT'] is going to give you a nasty little string like Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11 so you will need to employ some regex and tinker with all of the browsers to see exactly what each browser sends as the agent string. Personally, I think it is a terrible idea no matter what reason you provide.
  15. I acknowledge what you all are trying to do, and I am not trolling. I really just not a fan of correcting outdated deprecated code. You wouldn't want to fix something that you know will be on the next update or so. That makes me question why it is that we aren't fixing their bigger issue first. Let me try to explain with a pathetic analogy . If you had a problem with a small part of your car's muffler, and that part was recalled, wouldn't you want them to show you how to get a new muffler rather than to fix your old broken muffler? eh, I give up lol
  16. Greetings everyone! I just poured my life into a programming tutorial and reference website for beginners I was wondering what you all thought of the design, content, and structure of the website. The website is www.afterhoursprogramming.com. I am still not quite finished with adding all of the features that I would like, but it is complete for serving as yet another tutorial and reference website for web programmers. We can just never have enough of those Thank you for reading this post and I hope you have an awesome day!
  17. Your post on Link: http://w3schools.invisionzone.com/index.php?showtopic=44350 I saw that this thread is locked, but why do you not emphasis the order and structure that PHP classes provide? Not only does it help with order, but also provides the benefit of unit testing. I understand that this is so people can easily report issues. However, wouldn't it be more simple if they just told us what the class functions returned and then just showed their "view" code?

  18. Not to be mean or anything, but we should definitely not show or even give the idea that using mysql_query is a good idea anymore. I know that you mention we should use PDO or mysqli, but why continue on to show them how to get errors using mysql_query. Someone should write about how to get errors and read errors using PDO as it is tends to be quiet unless you force it to tell you.
  19. Apparently, w3 schools has had a forum since 2005. Well, I guess I will jump on the bandwagon.
  20. woot woot! I was accepted as a member. I feel like I am part of some awesome club just because it is restrictive

×
×
  • Create New...