Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 2989 points

Lewis

Favorite Answers15%
Answers283

Studying Physics, have A-levels in maths,chemistry and physics. I write and read far too much. Love football Liverpool is my team. I do boxing four years now..

  • Help with homework ?..............................?

    I have an assignment to make an article about TV game platforms, like red button games and things like that, I know that they have been around for about 10 years or so but I cannot find out anything about them, what the first one was or the ones leading up to today's TV games. Can you give me the right direction to go in ? What the first digital box was to have interactive games ?

    2 AnswersHomework Help8 years ago
  • Army details help...................?

    My dad was a royal marine commando. He treated me badly but I like to remember him as the once brave soldier that he was. He died a few years ago now and I want to make a set of dog tags to wear with his details alongside ASNF. But I have no idea of his details can you tell me what goes on the dog tags in the format of those details please ? Thanks.

    1 AnswerMilitary8 years ago
  • how to start session with this?

    I want to make this code such that I can start a session with the username and password, then put something into the logout function to fully terminate the session when clicked. Ideas ?

    <?php

    function logout()

    {

    if ()

    }

    function login()

    {

    session_start(); #session start goes at the top of the script

    if(isset($_POST['submit'])) #checks the form has been submitted

    {

    if(isset($_POST['myusername'], $_POST['mypassword'])) #checks the form fields have values; client side checking with HTML attributes can be easily bypassed

    {

    $link = mysqli_connect('localhost', 'root', '') or die("connection error"); #now connect to our database once we know we have data submitted

    mysqli_select_db($link, 'test') or die( "db error"); #database connection with error reporting

    global $user_name;

    global $pass_word;

    $user_name = mysqli_real_escape_string($link, $_POST['myusername']); #escape the data upon input of information. ONLY convert entities upon output of data

    $pass_word = hash('sha512', $_POST['mypassword']); #hash password with a stronger cryptocraphic hashing method; sha512

    $exists = mysqli_query($link, "SELECT COUNT(*) FROM members WHERE username = '{$user_name}' AND password = '{$pass_word}'") or die("selection error"); #use mysql's built-in COUNT function to get the number of columns (it's faster)

    if(mysqli_fetch_array($exists, MYSQL_NUM)) #grab the number of columns from results and make sure there's one result only (no more, no less)

    {

    header("location: sidebar.php");

    }

    else

    {

    echo "error";

    }

    }

    }

    else #output the form. Either break out of PHP for this, or use the heredoc or nowdoc method (nowdoc is used below, but requires PHP v5.3.0)

    {

    echo <<< 'end'

    <form method="post">

    <h1> Adventure awaits </h1>

    <div style="position: absolute; left: 0px; top: -10px; " >

    <a href="http://www.bannerfans.com"><img/ src="http://img69.imageshack.us/img69/4143/9z5f.jpg%22 border="0" width="728" height="90" alt="BannerFans.com" /></a>

    </div>

    <div style="position: absolute; left: 600px; top: 10px;">

    Username <br> <input name="myusername" style="color: white; background-color: black; border: 2pt ridge white" type="text" id="myusername"></td>

    </br>

    </div>

    <div style="position: absolute; left: 750px; top: 10px;">

    Password <br> <input name="mypassword" style="color: white; background-color: black; border: 2pt ridge white" type="password" id="mypassword"></td>

    </br>

    </div>

    <div style="position: absolute; left: 900px; top: 24px;">

    <input type="submit" style="color: white; background-color: black; border: 2pt ridge white" name="submit" value="Login"></td>

    </div>

    </form>

    end;

    }

    }

    ?>

    1 AnswerProgramming & Design8 years ago
  • Is the fractal design core 3000 a good case for cooling ?

    Here are the computer specs:

    CPU: NEW! AMD FX 8350 Black Edition

    CPU Cooler: NEW! Xigmatek Dark Knight Nighthawk SD1283

    Motherboard: Asus M5A97 R2.0

    RAM: 16GB DDR3 1333mhz (2x8GB)

    Hard Drive: NEW! Plextor 128GB M5S SSD S-ATAIII 6.0Gb/s

    Additional Storage: 500GB S-ATAIII 6.0Gb/s

    Optical Drive: 4x Blu-Ray ROM S-ATA

    Graphics card: AMD Radeon HD 7970 3GB

    Sound card: Onboard 7.1 Audio

    The case has three default fans:

    1 x 140mm front

    1 x 120mm rear

    1 x 140mm top

    I am not going to overclock or anything like that, but I will be running games on high settings.

    Do you think the cooling is adequate ? I am really worried it will overheat, thanks for answers.

    2 AnswersOther - Computers8 years ago
  • Opinion on pc build....................?

    ASUS M5A97 V2 AMD 970 Chipset.

    AMD FX-4350 4.20 GHz Quad-Core.

    16GB (4X4GBGB) DDR3.

    AMD Radeon HD 7850 2GB X 2.

    What is your opinion on this build ? Thanks.

    3 AnswersDesktops8 years ago
  • What is wrong with this code?

    I am trying to make this display the username when the username entered in login is equal to the one in the database, but it will not work.

    <?php

    ob_start();

    include 'checklogin.php';

    ob_end_clean();

    $host="localhost"; // Host name

    $username="root"; // Mysql username

    $password=""; // Mysql password

    $db_name="test"; // Database name

    $tbl_name="members"; // Table name

    // Connect to server and select database.

    mysql_connect("$host", "$username", "$password")or die("cannot connect");

    mysql_select_db("$db_name")or die("cannot select DB");

    // Retrieve data from database

    $sql="SELECT * FROM $tbl_name where username = '$myusername' ";

    $result=mysql_query($sql);

    // Start looping rows in mysql database.

    $rows=mysql_fetch_array($result);

    // close MySQL connection

    mysql_close();

    The database and tablename are correct. And there is a user with the same name as the one I am trying to log on with. Ideas? Thanks

    3 AnswersProgramming & Design8 years ago
  • help with php + sql game coding ?

    This is the code for a text based game I am doing. It is to retrieve data from the database and display it within the game. However it is only displaying the first user in the database, what can I do to make it check to see if the username inputted is equal to the name in the database then if so display that data. I know that there are alternatives however this is the way I want to do it. Thanks a lot.

    <?php

    $host="localhost"; // Host name

    $username="root"; // Mysql username

    $password=""; // Mysql password

    $db_name="test"; // Database name

    $tbl_name="members"; // Table name

    // Connect to server and select database.

    mysql_connect("$host", "$username", "$password")or die("cannot connect");

    mysql_select_db("$db_name")or die("cannot select DB");

    // Retrieve data from database

    $sql="SELECT * FROM $tbl_name";

    $result=mysql_query($sql);

    ?>

    <?php

    // Start looping rows in mysql database.

    $rows=mysql_fetch_array($result);

    // close MySQL connection

    mysql_close();

    ?>

    </table>

    1 AnswerProgramming & Design8 years ago
  • What is wrong with this code ?

    I am trying to make this registration page for my game but this code will not work and i cannot understand why ?

    Data.php

    <?php //data.php

    require_once 'login.php';

    // Get values from form

    $username = $_POST['username'];

    $email = $_POST['email'];

    $password = $_POST['password'];

    // Insert data into mysql

    $sql="INSERT INTO users (username, email, password)

    VALUES ('$username','$email', SHA1('$password')";

    $result = mysql_query($sql);

    // if successfully insert data into database, displays message "Successful".

    if($result){

    echo "Well done";

    header('Location: ../mainpage.php');

    }

    else {

    echo "ERROR";

    }

    // close mysql

    mysql_close();

    ?>

    login.php:

    <?php //login.php

    $db_hostname = 'localhost';

    $db_database = 'game';

    $db_username = 'root';

    $db_password = '';

    // Connect to server.

    $db_server = mysql_connect($db_hostname, $db_username, $db_password)

    or die("Unable to connect to MySQL: " . mysql_error());

    // Select the database.

    mysql_select_db($db_database)

    or die("Unable to select database: " . mysql_error());

    ?>

    the name of my database and pass are correct, and I have a main page where data.php is called but all I get is ERROR and a blank screen, ideas ? Thanks.

    1 AnswerProgramming & Design8 years ago
  • What is wrong with this code?

    reg form :

    <form action="data3.php" method="post">

    <p>

    <label>Username:</label>

    <input name="first_name" required="required" placeholder="Jon" type="text">

    <p>

    <label>Password:</label>

    <input name="password" required="required" placeholder="e.g. X8df!90EO" type="password">

    </p>

    <p>

    <input value="Submit" type="submit">

    </p>

    </form>

    data3.php:

    <?php//data3.php

    require_once'login3.php';

    //get values

    $Username = $_POST['username'];

    $password = $_POST['password'];

    $sql="INSERT INTO users (username, password)

    VALUES ('$'username', SHA1('$password'), NOW())";

    $result = mysql_query($sql);

    // if successfully insert data into database, displays message "Successful".

    if($result){

    echo "Thank you your data is being submitted";

    }

    else {

    echo "ERROR";

    }

    mysql_close();

    ?>

    login3.php:

    <?php //login.php

    $db_hostname = 'localhost';

    $db_database = 'random3';

    $db_username = 'root';

    $db_password = '';

    // Connect to server.

    $db_server = mysql_connect($db_"hostname", $db_"username", $db_password"")

    or die("Unable to connect to MySQL: " . mysql_error());

    // Select the database.

    mysql_select_db($db_database)

    or die("Unable to select database: " . mysql_error());

    ?>

    I type in username and password, it redirects to the data3 page but it is a blank screen and it doesn't put the dtata into the database. Please help??????????

    2 AnswersProgramming & Design8 years ago
  • Help with programming?

    Ok so I am making a website on which you have to login, then using mysql it checks the username and password. This function is fine it all works. But I was wondering how I would make it go to the main page of my website once login is successful.

    here is the code:

    <?php

    @$username = $_POST['username'];

    @$password = $_POST['password'];

    if ($username&&$password)

    {

    $connect = mysql_connect("localhost","root","") or die ("couldn't connect");

    mysql_select_db("phplogin") or die ("couldn't find db");

    }

    else

    die("enter a username and password");

    ?>

    What would I add to here to make it go to my main page, which is called mainpage.html ? Thanks.

    2 AnswersProgramming & Design8 years ago
  • Help with game programming?

    I am currently making my first full game in c++ and am a little stuck. the game is a simple stickman game, where you attack the other stickman whilst he attempts to move away. I want to insert a while loop or something so that without pressing space his weapon is down and when space is pressed he jabs with it. But my while loops keep crashing. Can you give me an example of how to do this please ?

    Thanks for answers. Too much code to paste

    3 AnswersProgramming & Design8 years ago
  • Internal bleeding help?

    Just been in for an operation in which the surgeon took away a section of my bladder and half of an ovary. A week after surgery I have A massive bruise on my lower abdomen and am getting bad pain. Could this be internal bleeding? I had my stitches taken out friday. Thanks

    3 AnswersWomen's Health8 years ago
  • 3d game programming?.................?

    I am about to begin doing 3d programming in c++ ,directx. I am about to buy a new computer and I am just wondering what kind of specs are required to do 3d programming?

    1 AnswerProgramming & Design8 years ago
  • Do you ever feel like this?

    Whenever I see or read or hear about something to do with the army, about an innocent soldier dying, about an attack on a base or anything remotely similar to this I feel terrible. I feel as if I should be fighting out there alongside my brothers and if needs be dying with them. I cannot join army because I have to care for my mother. Does anyone else feel like this ?

    5 AnswersPhilosophy8 years ago
  • Manchester united's problem with Suarez?

    Why do all of you Man U fans call Suarez so much? Other teams do yeah but Man u fans call him the most saying he is sad and whatever, but remember what Cantona did ? So be quiet hypocrites.

    9 AnswersEnglish Football8 years ago
  • What should I learn next to become game programmer?

    I want to be a game programmer, I have learned a lot in c++ and I was wondering what I should learn next?

    3 AnswersProgramming & Design8 years ago
  • Is this illegal?...............,,,,,,,?

    Ok so my mum has this crazy ex boyfriend who has raped her and hit her ans stolen from his kids at the age of 2.He said he will come to my house and kill my mum, I know I could take him though I am easily twice his size I am and a trained fighter. The problem is I doubt I would stop hitting him I would probably end up killing him, if he attacked my mum with intent to kill and i beat him to death would this be a crime? Of course I wouldn't give a crap at the time, just the aftermath.

    4 AnswersLaw & Ethics8 years ago
  • Writing a short speech, is this ok ?

    My class has to do a speech about miracles, what we think about them. I wrote this just as a basic, is this ok? Thanks.

    What do we consider a miracle? To most of us the word is associated with God, where the wonderful, unexplainable and unthinkable occur. But to me, a miracle doesn’t have to be biblical nor does it have to be godly. On our daily travels; whether it be the commute to work or picking up children from school, we bypass miracles of lower magnitude but which deserve no lesser degree of recognition. A working class single mother of four, struggling to scrape together the money to feed and clothe her precious children. So she works ridiculous hours and in ridiculous jobs to gather the money for them. For neither benefit nor reward for her. But we neither note nor long ponder about these people, these admirable people. Do you not perceive this as a miracle? Love so strongly bound that feelings for yourself, your health and your pride come after something not about you but about others. People who will stand forth before prejudice and announce their sexuality with pride, people disabled and less capable than other physically but who still fight to achieve, people who sacrifice themselves daily to ensure our safety. These people; whose trophies of their own triumphs are pushed aside for others, perform miracles daily with little to no reward. So no I don’t think that miracles are just biblical, they can be seen each and every day among us you just need to look more closely.

    5 AnswersHomework Help8 years ago
  • Nothing is appearing in console, c++ help please?

    Ok so I started a project in c++ 2010 express. I used all of the default stuff that is already on the win32 application project.

    Game.h

    #pragma once

    #include "resource.h"

    class Game

    {

    public:

    Game();

    void Go();

    private:

    void Homepage();

    void Gym();

    //functions go here

    private:

    //variables go here

    };

    Game.cpp

    Game::Game()

    {}

    void Game::Homepage()

    {

    char username;

    std::cout << "Please enter your username";

    std::cin>>username;

    std::cout<< "Welcome"<<username;

    }. The rest is just includes and the default text that is with the application.

    Can anybody guess why this is happening ? Thanks

    2 AnswersProgramming & Design8 years ago
  • Reached pns account limit on ps3 help?

    Ok so I am about to buy a ps3 but it has reached its pns account limit or something. What does this mean? What are the restrictions of this? What is a pns account ? Thanks

    3 AnswersVideo & Online Games8 years ago