This question already has an answer here:
- How to change mysql to mysqli? 10 answers
- How to replace MySQL functions with PDO? 1 answer
- Why shouldn't I use mysql_* functions in PHP? 15 answers
- Reference - What does this error mean in PHP? 34 answers
mysql_connect is not working and I don't know how to fix it with mysqli.
I have tried to degrade my PHP Version from PHP 7 to 5, but I failed either
Here is my code:
<?php
$query1=mysql_connect("localhost","root","");
mysql_select_db("edgedata",$query1);
$start=0;
$limit=8;
if(isset($_GET['id']))
{`
$id=$_GET['id'];
$start=($id-1)*$limit;
}
$query=mysql_query("select * from items LIMIT $start, $limit");
while($query2=mysql_query_fetch_array($query))
{
</div>