Jump to content

[SOLVED] Information is not displaying can't see why!


jigsawsoul

Recommended Posts

$tablerows is not echoing out and i can't seem to understand why. $requestid = $_GET['id']; is getting the id.

 

any help

 

<?php

session_start();

include '../../library/opendb.php';
include '../../library/config.php';
include '../../library/functions/f_login.php';
include '../../library/functions/f_nav.php';

sessionAuthenticate( );

$message .= $_SESSION["message"];

$username = $_SESSION["username"];

$result = "SELECT * FROM wbl_login WHERE username = '$username'";
$result = mysql_query ($result) or die (mysql_error());
$row = mysql_fetch_assoc ($result);

$username = $row['username'];
$username = ucwords($username);

// Current page.
$page = "commissionrequest";

$requestid = $_GET['id'];

// Get all member's information
$result = "SELECT * FROM wbl_commission
			  LEFT JOIN wbl_customers ON wbl_commission.customer_id=wbl_customers.customer_id
			  LEFT JOIN wbl_login ON wbl_customers.customer_id=wbl_login.customer_id
			  WHERE  commission_id = $requestid";

$result = mysql_query ($result) or die (mysql_error());
while($row = mysql_fetch_assoc($result)) 
{		
	$tablerows .= 
		'
		<table id="project_members">
		<tr class="alt">
			<td>
			<b>Id:</b> '.$row['commission_id'].'	<b> Username:</b> '.$row['username'].' <b> Date:</b> '.$row['date'].' <b> Status:</b> '.$row['status'].'
			<br /><br />
			<b>Description:</b> '.$row['description'].'
			<br /><br />
			<b>Comments:</b> '.$row['comments'].'
			<br /><br />
			<a href = "details.php?id='.$row['enquiry_id'].'" >Respond</a> | <a href = "update.php?id='.$row['enquiry_id'].'" >Edit</a> | 
			<a href = "delete.php?id='.$row['enquiry_id'].'" >Delete</a></td>
		</tr>
		</table>
	';

 }

?>

<?php include ('../../library/template/admin/htmlstart.php'); ?>

<div id="wrap" class="clearfix">

	<?php include ('../../library/template/admin/adminpanel.php'); ?>
    
    <div id="content" class="clearfix">
    	    	
		<?php mainNav($page); ?>

    	<div id="left" class="clearfix">
    		<div id="left_container">
    			
				<?php subNav($page); ?>

				<?=$message?>

				<h1 class="section">Current Commission Requests</h1>
    					
				    <?=$tablerows?>
				      	
	   		</div>
    	</div>
    	<!-- Right Side Bar Here -->	    	
		<?php include ('../../library/template/admin/footer.php'); ?>
</body>
</html>

<?php

unset ($_SESSION["message"]);

include '../../library/closedb.php'; 

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.