Jump to content

xjake88x

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by xjake88x

  1. I think it looks good but but anti aliasing on the introductory block font doesn't look right. It seems a bit too skinny for the anti aliasing it's using. Maybe try using a few different fonts and compare?
  2. The mix of mspaint graphics with photoshop "3d" effects is not a good combination. Remove the 3D "crescent" and redo the main logo to be a flat effect, maybe just do it with text in an <h1> tag.. Then it will have a really true to 1995 nostalgic vibe! Or you could replan it and make it more modern but hey that might not be the direction you are trying to go in.
  3. #3 is easily the best, it has a pretty modern feel to it Good job!
  4. Should I always use HTTPS when users are inputting credit card numbers & billing info? Do you know any sites that don't use HTTPS? I just want to know if it's a total no-no for web applications. Discuss.
  5. xjake88x

    Forum

    Essentially the same thing I said but instead of naming the table "last_read" you are naming it "read_posts" and once it is read, it can never be seen as "unread" again because you have no date. Another thing to do would be associate a value in your "users" table called "read_before." This would enable users to "mark all posts as unread" without creating 50,000 new rows. Just set the current date in "read_before." Any posts taking place before that date are considered "read."
  6. xjake88x

    Forum

    It depends on how you want to handle "new posts." Do you want it to be unread until somebody reads it? You could associate a last_updated value with each thread, and maintain a "relationship table" for last_read, connecting a user id with a thread id and a date. Something like id, user_id, thread_id, timestamp And every time a user opens a thread, create/update their corresponding relationship with that thread. To see if it's unread or read, have a database function to determine if a thread's last_updated timestamp is newer or older than the last_read value for that user + that thread. It's just like friend relationships on social networking, connecting an object with a target, or an event log.
  7. It's called a Rich HTML Editor Try http://ckeditor.com/
  8. To convert html to a pdf - DOM PDF For more control over the pdf - R&OS PDF
  9. You can also use "\r\n" which is called a CrLf or carriage return line feed. (It's just for cross-os compatibility) http://en.wikipedia.org/wiki/Crlf
  10. You are declaring a function in a loop.. Meaning every iteration of the loop it tries to redeclare the function.
  11. You should definitely click "Mark as solved" on this topic!
  12. Did you try doing what sader just said? Your query isn't selecting all (*) or selecting the "highlight" row.
  13. Can you post your latest code, the whole thing (on that file)?
  14. Glad I could help - how did you set your post as solved by the way? I haven't made threads I usually just reply to them.
  15. Sader probably just solved your problem. It always turns out to be the simple typos. Anyways you can try print_r($row_Featured) to make sure all the data is there.
  16. The semicolon will still be used because that generates things like < and whatnot.
  17. No problem, somehow you can change this to be "resolved" but it's a relatively new feature I don't know how it works.
  18. The simplest and easiest way is to strip them out before using the data: $search_text = $_POST['search']; $disallowed_chars = array(';', '\\', '/', '<', '>', '='); $search_text = str_replace($disallowed_chars, '', $search_text);
  19. It won't let me edit that one but here is a cleaner version function myLevel($my_xp) { global $my_level, $stuff; /*the above references the $my_level variable out of the function's scope. without it, $my_level will be a separate variable specific only to this function in this scope (when it is being run this specific time) */ $xp_table = array( array('level' => 0, 'req_xp' => 0), array('level' => 1, 'req_xp' => 500), array('level' => 2, 'req_xp' => 1000), array('level' => 3, 'req_xp' => 2000), array('level' => 4, 'req_xp' => 3500), array('level' => 5, 'req_xp' => 5500) ); //loop backwards for($i = count($xp_table)-1; $i >= 0; $i++) { //check if their XP matches the XP req of each level starting with the highest if($my_xp >= $xp_table[i]['req_xp']) { $my_level = $xp_table[i]['level']; break; //stop looping if we found the level } } //now switch between level which was already determined switch($my_level) { case 0: $stuff = 'happens'; break; case 1: $stuff = 'happens'; break; case 2: $stuff = 'happens'; break; } //possible return value }
  20. Switch won't work for what you're trying to do at that point. Here is a simpler approach: function myLevel($my_xp) { global $my_level, $stuff; /*the above references the $my_level variable out of the function's scope without it, $my_level will be a separate variable specific only to this function in this scope (when it is being run this specific time*/ $xp_table = array( array('level' => 0, 'req_xp' => 0), array('level' => 1, 'req_xp' => 500), array('level' => 2, 'req_xp' => 1000), array('level' => 3, 'req_xp' => 2000), array('level' => 4, 'req_xp' => 3500), array('level' => 5, 'req_xp' => 5500) ); //loop backwards for($i = count($xp_table)-1; $i >= 0; $i++) { if($my_xp >= $xp_table[i]['req_xp']) { $my_level = $xp_table[i]['level']; break; } } //now switch switch($my_level) { case 0: $stuff = 'happens'; break; case 1: $stuff = 'happens'; break; case 2: $stuff = 'happens'; break; } //possible return value }
  21. Yeah sorry I just realized that, haha. Try changing it to explode because that can be thought of as an "internal error" in that context.
  22. Just realized you do indicate which line is 207. Also the "split" function is deprecated and highly discouraged (by the php manual). It's also not what you want, it uses regex. Use "explode" instead, same parameters. A Paamayim Nekudotayim is a double colon like :: which you would use to call a static member function of a class.
  23. Try something like this (read the comments in the php) <script language="JavaScript"> function autoSubmit() { var formObject = document.forms['CommentsForm']; formObject.submit(); } </script> <Select name=district onChange="autoSubmit();"> <option>Choose District</option> <?php //moved district_selection up here, because you need it $district_selection = isset($_GET["district"]) ? $_GET["district"] : false; //Select School district you want info on $district_query="select distinct district from school order by district"; $district_result=mysql_query($district_query); //$options_d=""; //*** loop over the results ***/ while ($row=mysql_fetch_array($district_result)) { $district=$row["district"]; $selected = $district_selection == $district ? 'selected': ''; $options_d.="<option value=\"$district\" $selected>".$district.'</option>'; } ?> <?php echo "$options_d" ?> </select> <br><br> <Select name="school_name_box"> <option value=0>Choose School <?php //moved the $district_selection variable to before the other select box //Select School you want info on $school_query="select school_tag,school_name from school where district = \"$district_selection\" order by school_name"; $school_result=mysql_query($school_query); $options=""; //*** loop over the results ***/ while ($row=mysql_fetch_array($school_result)) { $tag=$row["school_tag"]; $school=$row["school_name"]; $options.="<option value=\"$tag\">".$school.'</option>'; } ?> <?php echo "$options" ?> </select> And next time please put your code in tags
  24. Most of the characters are escaped there. < is supposed to be < > is supposed to be > " is supposed to be " (a quotation mark) But that statement wouldn't make much sense even if you fixed the symbols. What akitchin was kindly saying is that we need it in context. Give us a chunk of the script it's in, and next time put it in tags tags
  25. I really don't understand the current fascination with video tutorials these days. Can't people read? Of course, but we're able to take in more data when there is audio associated with it. It can convey much more, with capabilities such as seing the work taking place on photoshop, or an IDE, while listening to a thorough explanation. Most jobs will have training and they are almost always in video format whether you're working at Best Buy, GNC, Google, or Adobe. I should mention there is always literature associated with the training as well. Ultimately it's a totally subjective question but video is a major branch of the industry's professional training!
×
×
  • 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.