Your IP : 10.1.73.149


Current Path : /home/bolconlineco/www/admin/
Upload File :
Current File : /home/bolconlineco/www/admin/get_url.php

<?php
include("../includes/connection/connection.php");
$id=$_POST['id'];

?>
  <div class="right_url">
                      <h3>Course Url Management</h3>
                          <?php
				//$result=assignment_by_topic_id($topicId);
				$query1 = "select * from courseurls where course_id='$id'";
				
				$result1 = mysql_query($query1) or die(mysql_error());
				
				if(mysql_num_rows($result1) > 0 )
				 {
				?>
      <table class="tablestyle table table-striped table-bordered table-hover" id="sample_2">
		<thead>
            <tr>
                <th> Name</th>
                <th> Url</th>
                <th>Action</th>
            </tr><!-- end title -->
        </thead>
          <tbody>
          <?php
						   while($rowSet=mysql_fetch_array($result1)) { ?>
						<tr>
                            <td><?php echo $rowSet['url_name'];?></td>
                            <td><?php echo $rowSet['urls'];?></td>
                            <td>
                            	<a href="edit_url.php?id=<?php echo $rowSet['id']?>"> <img src="../images/edit-icon.png" alt="Edit" /> </a>
                                <a href="delete_urls.php?id=<?php echo $rowSet['id']?>" onclick='return confirm("Are you Sure to delete ?") ' ;> <img src="../images/delete-icon.png" alt="Delete" /> </a>
                            </td>
						</tr><!-- end values -->
                        <?php
								   }
				 } else {
					echo "No Urls Found"; 
				 }
						?>
          </tbody>
																																	
				</table>	
                      
                      </div>