Jump to content

MJ12

Programmer
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MJ12's Achievements

Newbie

Newbie (2/21)

0

Reputation

  1. You'd bind the output of the SQL statement to a variable and then echo it normally, I'd imagine. I haven't written PHP in many years, so you'd probably echo each column out as echo $row['column_name']; or something like that.
  2. You'd want to use a prepared statement SELECT currency, rank FROM users WHERE name = ? LIMIT 1; where ? is replaced by the username as a bound variable. An example of this is shown here: https://www.w3schools.com/php/php_mysql_prepared_statements.asp.
×
×
  • Create New...