This simple code isn't working, when I try, the error message comes:
Warning: mysql_result() expects parameter 1 to be resource
I tried a lotenter code here. Is there any function to call?
<?php require 'connection.php';
$query="SELECT id FROM log_reg WHERE username='raj' AND password='raj'";
$query_run=mysqli_query($con,$query);
echo $a=mysql_result($query_run,0,"id"); ?>'