I want to insert a PHP variable's value within select query in PHP-MySQL:
$result = @mysql_query('SELECT * FROM table where var1="<?php echo $value1?>;');
There is a syntax error. I'm sure it would be because of the inappropriate use of quotes. Please answer the right coding. Thanks
$result = @mysql_query('SELECT * FROM table where var1="<?php echo $value1?>;');
There is a syntax error. I'm sure it would be because of the inappropriate use of quotes. Please answer the right coding. Thanks