Hi. I'm creating a mobile website using wml and php.
In wml I have a textfield. I can display the value of the field by using variable correct but when I try to use the variable in a mysql select query nothing happens. I know my query is correct it's like the variable is just empty.
Here is my code:
Any help would be appreciated
Thanx
In wml I have a textfield. I can display the value of the field by using variable correct but when I try to use the variable in a mysql select query nothing happens. I know my query is correct it's like the variable is just empty.
Here is my code:
Code:
$sql="SELECT * FROM words WHERE afrikaans='$(word)'"; //$(word) is the variable from the textfield $result=mysql_query($sql); $count=mysql_num_rows($result); $row = mysql_fetch_array($result); echo $row['english'] . " " . $row['afrikaans'];
Thanx
Comment