Mysql group by in mysql and php
<?php
$sql="select sum (payment) from 'your table name ' GROUP BY name ";
?>
or
<?php
$sql="select sum (payment) from 'your table name ' GROUP BY name , name LIKE 's%' ";
?>
<?php
$sql="select sum (payment) from 'your table name ' GROUP BY name ";
?>
or
<?php
$sql="select sum (payment) from 'your table name ' GROUP BY name , name LIKE 's%' ";
?>
Comments
Post a Comment