No, you should try to use mysqli_connect(), mysqli_query().
You installed using that guide, which means that you must use mysqli_ functions. Those have similar, yet different, formats.
Same functions, different parameters & syntax:
PHP mySQLi Manual
You need not change anything, just use this code:
<?php
$link = mysqli_connect("localhost", "sebycot", "")
or die("Could not connect : " . mysql_error());
echo "Connected successfully<BR>";
$bname="auto";
mysqli_select_db($link,$bname) or die("Could not select database");
echo "Database selected successfully<BR>";
$sql="SELECT masina,magazin FROM lista";
$result=mysqli_query($link, $sql)or die ("Query failed : " . mysql_error());
echo "Query OK <BR>";
while($record=mysql_fetch_row($result))
{
for($i=0;$i<count($record);$i++)
{
echo $record[$i];
}
}
?>
~Brett