dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: stokie-ruch

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. hi guys still having trouble if i'm honest ...

    hi guys still having trouble if i'm honest

    someone has suggested that I add this into my code


    function fetchQuestions() {
    $stmt = $conn->prepare("SELECT `question` FROM `questions` ORDER...
  2. Ok not sure what you mean if i'm honest

    Ok not sure what you mean if i'm honest
  3. How To Show 20 Random Questions In A Quiz

    Hey guys, Hope that you are all well. I need a little help if that is ok?

    I'm building a multipolchoice quiz I want to just show 20 random questions from the 80 questions that I have in the...
  4. Just looking for hints and tips. Someone has...

    Just looking for hints and tips. Someone has suggested that I use this line of code


    $question_id = rand(1, 80); but the quiz is still showing all of the 80 questions
  5. that sounds something like what I want! Yeah its...

    that sounds something like what I want! Yeah its just so each user doesn't have to go through all 80 questions each time they use the quiz. So how do I implement this into my code?
  6. how to show 20 random questions in a quiz

    Hi guys,

    Hope you're all well. I have managed to get the quiz that I have been working on to work now thank god!

    I just want to show just 20 random questions from the 80 questions that I have...
  7. Replies
    12
    Views
    2,297

    right ok thanks for that I will have a look

    right ok thanks for that I will have a look
  8. Replies
    12
    Views
    2,297

    I have put some code into the quiz code this is...

    I have put some code into the quiz code this is how it looks at the moment:


    <?php
    //Connect with mysql
    $db = new mysqli("127.0.0.1", "root", "", "quiz");

    //Perform the query to choose...
  9. Replies
    12
    Views
    2,297

    Hey thanks for that and sorry for the late...

    Hey thanks for that and sorry for the late replay. When I run the page its now displaying

    output debug info here

    Sorry to sound like a tit! But how do I put debug info there?
  10. Replies
    12
    Views
    2,297

    hey ahh right ok thanks for that..... sorry to...

    hey ahh right ok thanks for that..... sorry to sound like an idiot but how on earth do I add error checking then to it?
  11. Replies
    24
    Views
    2,319

    This is where I make the connection in my code ...

    This is where I make the connection in my code


    require('connection_db.php');

    This is the connection code (please note that it works when I register a user)


    <?php
    mysql_connect...
  12. Replies
    12
    Views
    2,297

    I have managed to find the code from the quiz...

    I have managed to find the code from the quiz that I created a few months ago (from the website that I mentioned in the first post)

    below is the code


    <?php
    //Connect with mysql
    $db = new...
  13. Replies
    24
    Views
    2,319

    right ok so how on earth do i do that then? as my...

    right ok so how on earth do i do that then? as my register script works perfect, I have added quite a few "test" users so far and it works perfect so does the connection file
  14. Replies
    12
    Views
    2,297

    How to make a simple PHP with SQL quiz

    Morning people hope you're all well. I really need some advice from yourselfs. As you might know I'm in the middle of creating my own website. The site will let users register and to log in.

    I...
  15. Replies
    24
    Views
    2,319

    I will give it ago. I have defined the connection...

    I will give it ago. I have defined the connection to the database in another file that I have called

    require('connection_db.php'); I will let you know what comes of it
  16. Replies
    24
    Views
    2,319

    sorry again for this!! When I now try and log...

    sorry again for this!!

    When I now try and log in with a test username and password I'm now getting the following error

    Notice: Undefined variable: sql in C:\xampp\htdocs\login.php on line 39...
  17. Replies
    24
    Views
    2,319

    Please ignore what I have just said!! it works...

    Please ignore what I have just said!! it works whoooohoooo!! I didnt copy and past your suggestion and now it works thank you soo much
  18. Replies
    24
    Views
    2,319

    Hey I have done what you suggested and still...

    Hey I have done what you suggested and still getting the following :(

    Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${...
  19. Replies
    24
    Views
    2,319

    I'm using the following $form =

    I'm using the following


    $form =<<<EOT

    I'm still getting the following


    Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC)...
  20. Replies
    24
    Views
    2,319

    I want to echo out the form but also want the...

    I want to echo out the form but also want the form to work where the user fills in the info and they can log into the website
  21. Replies
    24
    Views
    2,319

    I've changed the code and this is how it looks...

    I've changed the code and this is how it looks now


    <!DOCTYPE html>
    <html>
    <head>
    <title>Richard Hemmings </title>
    <meta name="viewpoint" content="width=device-width,...
  22. Replies
    24
    Views
    2,319

    thanks for that I'm getting the same eorror as i...

    thanks for that I'm getting the same eorror as i did when I created my register page, this is the error now

    Parse error: syntax error, unexpected 'action' (T_STRING), expecting ',' or ';' in...
  23. Replies
    24
    Views
    2,319

    I've done what you suggested and this is the code...

    I've done what you suggested and this is the code now


    <?php
    include('inc/header.php');
    require('connection_db.php');
    if (isset($_POST['submit'])){
    $uname =...
  24. Replies
    24
    Views
    2,319

    login page script issues

    Hi guys, creating a log in script so my users can login to my website.

    This is the code so far


    <!DOCTYPE html>
    <html>
    <head>
    <title>Richard Hemmings </title>
    <meta...
  25. Replies
    4
    Views
    643

    Someone else has said this and I have used mysqli...

    Someone else has said this and I have used mysqli but for the life of me I cant remember how I did this
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles