www.webdeveloper.com

Search:

Type: Posts; User: Error404

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    726

    Part of the reason for making HTML5 was to reduce...

    Part of the reason for making HTML5 was to reduce the need for plug-ins all over the place, such as for videos and sound files. It made coding a lot easier, improved performance, standardization,...
  2. Replies
    6
    Views
    1,218

    The way you wrote your HTML will affect how your...

    The way you wrote your HTML will affect how your CSS will produce the effects you want, so without seeing it, we cant help.

    Here is a simple example:



    <!DOCTYPE html>
    <html>
    <head>
    ...
  3. Replies
    5
    Views
    756

    All tags need to be closed, either with an ending...

    All tags need to be closed, either with an ending tag or they're "self-closing". For example, for links within a page:



    <!-- the id isn't used for re-directing but can be used for CSS styling...
  4. Replies
    1
    Views
    572

    A couple ways to do this but the simplest would...

    A couple ways to do this but the simplest would be through using a database. You can have 1 table for each thread that is created but this will NOT contain any posts! Next, you'll have a table only...
  5. Replies
    4
    Views
    933

    session_start() is meant to be used on any page...

    session_start() is meant to be used on any page that will in some way access a $_SESSION variable, whether that means reading the information in it, setting information, unsetting the variable,...
  6. Replies
    1
    Views
    532

    You could store the course information in 1 table...

    You could store the course information in 1 table in a database and log-in information in another table. Communication between the database and your web site can be done using PHP. You could either...
  7. I'm guessing $rawData is an image String, in...

    I'm guessing $rawData is an image String, in which case, base64_decode won't return the image you're expecting as you still haven't made the image. When you enter it into your database, you're...
  8. You haven't shown your date-picker so assuming...

    You haven't shown your date-picker so assuming it's a date form field, which would look something like:



    <form action = "script.php" method = "get">
    <input type = "date" name =...
  9. Replies
    1
    Views
    554

    This will change all the text that has the class...

    This will change all the text that has the class "text" to black, then change the selected text to red. If you want to change the background colour, then it would be x.style.backgroundColor = ... .
    ...
  10. Replies
    28
    Views
    2,722

    For your second foreach loop, change the -> to =>...

    For your second foreach loop, change the -> to => . Also, you're missing the { } for your second foreach loop, so code starting with var_dump($keys, $values); is only in the first foreach loop, not...
  11. You're going to have at least 54 combinations, so...

    You're going to have at least 54 combinations, so if you're not open to a database, then I'd probably go for XML. Since it should be fairly straight-forward in that it's only reading (unless you're...
  12. Keep in mind, before you do any programming for...

    Keep in mind, before you do any programming for this, you need to have a server that can handle this. From what I've read (since this idea also got me interested :) ) is to have a video streaming...
  13. Replies
    28
    Views
    2,722

    The reason for that syntax error is you're...

    The reason for that syntax error is you're missing a semi-colon on the line above $query_vals = array(); . After you fix that, there are 3 other errors. First, your foreach loops aren't doing...
  14. If you're open to using open source libraries,...

    If you're open to using open source libraries, there probably are a bunch out there that can help you out and be easily integrated in your chat system, such as this (however I've never used it, just...
  15. Thread: PHP Quiz

    by Error404
    Replies
    1
    Views
    643

    The first things I'd do is figure out where the...

    The first things I'd do is figure out where the users, their previous scores, questions and answers will be stored (probably a database). Next, I'd create a HTML template for the site and figure out...
  16. Replies
    6
    Views
    1,139

    Simplest way is to use single-dimension arrays,...

    Simplest way is to use single-dimension arrays, however, it will consume more space in terms of lines of code. You can swap the switch statement for if-else statements if you wish. The <div> is just...
  17. It's hard to tell where the error may be since...

    It's hard to tell where the error may be since you're calling functions that you haven't shown code for but more importantly, you haven't shown the code for where you're calling the stored procedure....
  18. Replies
    4
    Views
    840

    You can use imagecreatefromgif("path/file.gif")...

    You can use imagecreatefromgif("path/file.gif") to retrieve and return it as an image. If it's an animated gif, then I believe only the first frame will be returned. If it's a custom font you're...
  19. In the ConvertToPound function, replace if...

    In the ConvertToPound function, replace


    if (from == 0) { response = val; }

    with the code I provided.

    If you wrote the script you initially provided, you shouldn't have a problem writing...
  20. Replies
    5
    Views
    814

    If the forms are on different pages and you only...

    If the forms are on different pages and you only have to use/want/know JavaScript, then you have a few options. First, use hidden fields to store the amounts. Not the best but still an option....
  21. Try something like this (although I'm not sure...

    Try something like this (although I'm not sure why it has to be 3 if the value is less than 100):



    if (from == 0) {
    if(val >= 100) {
    response = val * 0.03;
    } else {
    ...
  22. Replies
    4
    Views
    740

    You could do something like this just before you...

    You could do something like this just before you perform your calculations:



    if(strpos($data2['value'], ",") !== false) {
    $data2['value'] = (float) str_replace(",", "", $data2['value']);...
  23. Replies
    6
    Views
    1,572

    After looking at the source code on the site, I...

    After looking at the source code on the site, I believe the slide show is made by THEMEPUNCH TOOLS. It also mentions Wait For Images to load the image events and jQuery Transit for smooth CSS...
  24. Replies
    4
    Views
    1,763

    You need to convert your values to a type...

    You need to convert your values to a type compatible for math calculations, otherwise you'll keep getting a total of NaN. You can save yourself some effort by re-writing your JavaScript and onClick...
  25. Replies
    7
    Views
    1,817

    In regards to your notice at line 7, check your...

    In regards to your notice at line 7, check your HTML form to make sure there is actually a field with an attribute of name = "user". Also, you might want to first check whether your $_POST variable...
Results 1 to 25 of 156
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles