PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon May 25, 2020 12:45 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 18, 2016 8:12 pm 
Offline
Forum Contributor

Joined: Fri Jun 11, 2010 1:17 pm
Posts: 214
Hi.
I'm having an issue with the ahref linking to the file of each row correctly. if I echo the path, it displays correctly, but not when i add the path to the ahref. Any help would be appreciated.
Syntax: [ Download ] [ Hide ]
<?php
        $company_presentation_list_query = "SELECT * FROM company_presentations ORDER BY date DESC";
        $company_presentation_result = mysqli_query($dbc, $company_presentation_list_query) or trigger_error("Query Failed! SQL: $query - Error: ". mysqli_error($mysqli), E_USER_ERROR);
        if($company_presentation_result) {
                while($company_presentation_result_row = mysqli_fetch_assoc($company_presentation_result)) {
                        $path = "images/" . $company_presentation_result_row['company_name']. "/" . $company_presentation_result_row['presentation_file_name'] ;
                        echo '<li><em><a href=' . $path . ">" . $company_presentation_result_row['presentation_name'] . '</a></em> <small>' .  $company_presentation_result_row['date']. '</small>';
                        echo '<span class="uk-float-right"><a href="del_presentsation.php?id=' . $company_presentation_result_row['id'] . '">Delete</a> </span>';                      
                }                
                echo "<br />";
        }          
 ?>
 


Top
 Profile  
 
PostPosted: Wed May 18, 2016 8:30 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
Looks like you've got mismatched quotes. Beyond that, can you be a little more descriptive of what's happening?

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group