Parse error: syntax error, unexpected T_VARIABLE in /home/content/07/9656607/html/sales.php on line 44
this is the error I'm getting. I don't know why.
I put arrows on line 44
<?php
include("header.php");
global $db;
$artist_id = $_SESSION['user_id'];
$sq_song="SELECT * FROM `sales` WHERE `user` = '$artist_id' AND `download` = 'Y'";
$res_song=$db->select_data($sq_song);
?>
<div class="under_header">
<img src="images/assets/breadcrumbs12.png" alt="#">
</div><!-- under header -->
<div class="page-content back_to_up">
<div class="row row-fluid forum clearfix mbf">
<div class="span12 posts">
<div class="def-block clearfix">
<div class="mbf clearfix">
<span id="err1" class="lim_err"></span>
<form name="addsong" method="post">
<?php
{
$song_id = $res_song[$i]['song'];
$artist=$res_song[$i]['artist'];
$sale_date = $res_song[$i]['saleCreated'];
$sales_dt=date('m/d/Y',strtotime($sale_date));
$sel_song="select * from songs where songID='$song_id'";
$res_sel_song=$db->select_data($sel_song);
$song_title=$res_sel_song[0]['songTitle'];
$sq_artist="select artist_grp_nm,email from register where id='$artist'";
$res_artist=$db->select_data($sq_artist)
$artist_nm=$res_artist[0]['artist_grp_nm']; // <-------------
$email=$res_artist[0]['email'];
?>
<tr>
<td><?php echo $song_title; ?></td>
<td><?php echo $artist_nm; ?><br>
<a style="color:purple;" href="mailto:<?php echo $email; ?>"><?php echo $email; ?>
</a>