I am trying to display all the record in MySQL Tables.
I can do select * from table but this is not what i want to do.
I want to do something like this
select app_id, app_name from app where app_sendto = '%'
I’ve tried the above, but does not display anything.
I would like to run the above query as follows
$get_app = "select app_id, app_name from app where app_sendto = ?";
$sth = $dbh->prepare($get_app);
$sth->execute('people') or die "Cannot execute sth: $DBI::errstr";
Can anyone please help me with this.
Just got the solution, the query should be