I'm creating some code to display all the records from a MySQL database into a PHP view.
The query is perfect: using HeidiSQL it retrieves all the values needed:
At the moment, is giving the following error:
How can I debug this?
The code:
    <?php $sql = "select * from specials group by Start_Date DESC";
                $result = @mysqli_query($sql)
                if($result){
                    while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
                        echo '<div class='deal-item col-md-12'>
                                <div class='col-md-4'>
                                    <img src='lascruces_styles/img/deals-img/oil-deal.jpg' alt='' class='deal-thumb'>
                                    <p class='expire'>The deal expires '.$row['End_Date'].'</p>
                                </div>
                                <div class='col-md-6 info-container'>
                                    <h2 class='deal-title'>'.$row['Special_Name'].'</h2>
                                    <p class='offer-user'>Offered by
                                        <a href=''>'.$row['Added_By'].'</a></p>
                                    <p class='deal-desc'>'.$row['Description'].'</p>
                                <div class='share-row'>
                                    <a href='' class='share'>Share this deal</a>
                                <div class='social'>
                                    <i class='icon-facebook'></i>
                                    <i class='icon-gplus'></i>
                                    <i class='icon-linkedin'></i>
                                    <i class='icon-mail-squared'></i>
                                </div>
                            </div>
                            </div>
                            <div class='col-md-2 view-deal-container'>
                                <p class='old-price'>'.$row['Normal_Price'].'</p>
                                <p class='current-price'>'.$row['Special_Price'].'</p>
                                <a href=''><div class='view-deal'>
                                <p>VIEW DEAL</p>
                            </div>
                            </a>
                            </div>
                            </div>';
                            mysqli_free_result ($result); // Free up the resources                        } 
                }
            ?>


 
     
     
    