Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8051747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:22:14+00:00 2026-06-05T07:22:14+00:00

I need to design a hiscores system for a game. I have the user

  • 0

I need to design a hiscores system for a game. I have the user data stored like this:
userid, player_rights, level, 0, 1, 2, 3,4 .. etc

where 0-4 are skill IDs. I started using prepared statements more often recently, and I know that you usually have to bind the parameters after you execute the statement. There are about 26 fields and binding each one of them can’t be the only way to do it. I have no problem with using mysqli objects for this – just wanted to know if there was a way to do it with prepared statements that didn’t required binding all of the fields.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:22:16+00:00Added an answer on June 5, 2026 at 7:22 am

    Luckily, one of the things you can do is pass the values through an array to execute().

    $stmt->prepare('INSERT INTO .... ?,?,?,?,?...);
    $stmt->execute(array(value, value, value...));
    

    It does depend though on what type of access method you are using, ie PDO, MySQLi, etc.. as the value passing to execute is slightly different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new in data base design and I would like have your
I need to design a table like the sudoko Table where the user has
I need to design an arcade game using XNA. This will has 9 different
Why do we need design patterns like Factory, Abstract Factory and Singleton?
We need to design a secure web application. I would like to propose a
I need to design a data structure that supports the following operations: search element
I need to design a system that will control access to certain information. The
I need to design database for SQL Server, is there any MySQL workbench like
I need to design an application that protects some data in a database against
I need to design a bug alert system, where the web support team is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.