Good Day
I am using a program called Site Lock from Vibraloxig works great for what I need but have a question maybe someone can assist me.
The site allows me to draw certain information of the user using simple PHP echo commands
<?php echo $slusername; ?>
Will echo the user name for me and so on. What I would like to do is use this to filter a query in msql tables this is my current code
// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$query = "SELECT * FROM members WHERE ussd_dealer = '<?php echo
$slcustom1; ?>' ";
$result = mysql_query($query);
echo " ".mysql_num_rows($result)." ";
?>
My table has the ussd_dealer and the custom1 i am calling works on the site but does not work in the query to filter the table for me. Not sure if I need to use "" instead of '' after the WHERE ussd_dealer = . Assistance would be greatly appreciated.