Firstly I am brand new to PHP and MySQL.
My goal is to display testimonies from students that are in the database. I realize that my code is probably WAYYY overcomplicated, but any help is much obliged. Currently, It is displaying the same result. I think it's because I call for the same thing. Idk I am very confused. Help please!!
<div class="block_main_testimonials">
<h4>Student Corner</h4>
<?php
// Connect to the file above here
require "includes/connect.php";
$data = mysql_query("SELECT * FROM `testimonials` ORDER BY RAND() LIMIT 0,1")
or die(mysql_error());
$info = mysql_fetch_array( $data ) ;
?>
<div class="one_half">
<div class="block_testimonials_2">
<div class="content">
<div class="text">
<p>“<?php echo $info['quote'] ;?>”</p>
<div class="tail"></div>
</div>
<div class="author">
<p><?php echo $info['name'] ; ?>,<span class="position"> <a href="/<?php echo $info['url']" echo $info['department']; ?</a></span></p></div>
</div>
<div class="clearboth"></div>
</div>
</div>