Jump to content

kevloink

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Posts posted by kevloink

  1. Like this website http://www.recipekey.com

     

    If you add sugar, salt, flour, baking powder, milk, eggs, and butter to your "pantry," it gives you three recipes that you have all the ingredients for, then it gives you a few that you have 88% of the ingredients for, then some that you have 86% of the ingredients for, and so on.

     

    How would I set up my table, and then how would I determine the percentage of matched ingredients?

     

    P.S. I'm not actually doing anything with recipes, but it's very similar.

  2. This is my code
    [code]$sql = "UPDATE 'phpbb_users' SET 'user_points' = '$after_bet_points' WHERE 'username' = 'kevloink';";[/code]

    But it doesn't do anything at all.

    Can you please help, I have been trying for about 40 mins.
  3. I am trying to do this:

    [code]SELECT user_points FROM `phpbb_users` WHERE username='kevloink'[/code]

    but in php, and then display the result.  I have been editing my code for about 45 mins.  Its 1:47 am, I have to go to school at 8 am, and I still have homework to do so I decided instead of wasting my time I would ask for help.
  4. I need the php code to insert something into a sql table.
    I am using [quote] PHP Version 5.1.7-dev[/quote].


    This is the code I am using, and it wont work.
    [code]$sql="INSERT INTO users (name, username, password)
    VALUES
    ($name, $user, $pass)";[code][/code][/code]
×
×
  • 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.