search

Home  >  Q&A  >  body text

Why do the inserted values ​​need to be concatenated?

values('" . $username . "','" . $password . "','" . $time . "','" . $ip . "')";

values ("$username","$password","$time","$ip")Isn't this possible?

NO1NO12299 days ago1319

reply all(2)I'll reply

  • Don't cry

    Don't cry2018-10-08 16:39:50

    Because you need to correspond to the data type of each field in the database, if the string is not enclosed in quotation marks, an error will be reported

    reply
    0
  • NO1

    I know, but I don’t understand when using splicing.

    NO1 · 2018-10-09 14:32:06
  • Cancelreply