mysqli
小萌₂₀₁₇
小萌₂₀₁₇ 2017-09-13 18:15:57
0
2
1105

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


小萌₂₀₁₇
小萌₂₀₁₇

reply all(2)
寻觅 beyond

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

phpcn_u2434
$link = mysql_connect('localhost','root','root') or die ('出错了');
mysql_connect 你打成了 mysqli_connect
  • reply People are asking about mysqli, not mysql
    寻觅 beyond author 2017-09-22 19:51:47
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template