search

Home  >  Q&A  >  body text

mysqli

MySQL returns:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php

$link = mysqli_connect('localhost','root','root')' at line 1

The teacher doesn’t know what’s going on


小萌₂₀₁₇小萌₂₀₁₇2637 days ago1110

reply all(2)I'll reply

  • 寻觅 beyond

    寻觅 beyond2017-09-22 19:53:29

    I suggest you take a screenshot, and also check whether the mysqli extension is enabled

    reply
    0
  • 按键盘手指磨破皮

    按键盘手指磨破皮2017-09-13 23:59:37

    $link = mysql_connect('localhost','root','root') or die ('出错了');
    mysql_connect 你打成了 mysqli_connect

    reply
    0
  • 寻觅 beyond

    People are asking about mysqli, not mysql

    寻觅 beyond · 2017-09-22 19:51:47
  • Cancelreply