Php mysql errror

software development

#1

i have 2 php pages
http://jaxviri.com/test2.php
http://jaxviri.com/test.php

it starts on test2 with this code that works
[php]

Start:
End:
[/php] it looking for 2 date in the format of xx/xx/xxxx the goes to test.php with the code of [php]<?php $con=mysqli_connect("mysql url","user","pass","DB"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } echo $_POST['a']; echo $_POST['b']; {$query = "SELECT * FROM `data` WHERE `Date` BETWEEN '". $_POST['a'] ."' AND '". $_POST['b'] ."'"; echo $query; $result = mysql_query($query); if (!$check1_res) { printf("Error: %s\n", mysqli_error($con)); exit(); }

while($row = mysqli_fetch_array($result))
echo $row[‘Id’] . " " . $row[‘Store_ID’]. " " . $row[‘Type’]. " " . $row[‘Name’]. " " . $row[‘Date’];
echo “
”;
}
?> [/php]

i know i should make my ver more clear but this is still just a fast test.
here are the errors

06/01/201408/01/2014SELECT * FROM `data` WHERE `Date` BETWEEN '06/01/2014' AND '08/01/2014'
Warning: mysql_query(): No such file or directory in /home/****/jaxviri.com/test.php on line 11

Warning: mysql_query(): A link to the server could not be established in /home/*****/jaxviri.com/test.php on line 11
Error: 

#2

test.php doesn’t return any errors for me - is this resolved?

Also, your code snippet (test.php) doesn’t define [color=#1E90FF]$row[/color] or [color=#1E90FF]$check1_res[/color]


#3

yes it fix thank you