I have this error.. Can help me to solve this matter?
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 '296''' at line 1
1 <?php include("db.php"); ?>
11 <?php
12 $Kod=$_REQUEST;
13 echo "$Kod";
14 ?>
Value has been passed succ. VALUE = 296
<?php
$query="SELECT * FROM hartanah_pt WHERE JKODPRO='$Kod'";
$result=mysql_query($query) or die(mysql_error());
This is my SQL query
39 while($row= mysql_fetch_array($result))
40 {
41 $JKODPRO_HAR=$row;
42 $HAR_KOD=$row;
43 }