close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Master/Details page

Thread began 7/10/2017 9:05 am by Leon | Last modified 7/12/2017 12:08 pm by Leon | 585 views | 4 replies

Leon

Master/Details page

I am trying to build a master/details page:

master:

<?php require_once('Connections/mitoWebsiteMSQLI.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
//query lists all database records?>
<?php
$masterAllRecordset1 = new WA_MySQLi_RS("masterAllRecordset1",$mitoWebsiteMSQLI,10);
$masterAllRecordset1->setQuery("SELECT * FROM completedProjects");
$masterAllRecordset1->execute();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<ul>
<?php
while(!$masterAllRecordset1->atEnd()) {
?>
<li><a href="details1.php?bymission_id=<?php echo($masterAllRecordset1->getColumnVal("mission_id")); ?>"><?php echo($masterAllRecordset1->getColumnVal("project_name")); ?></a></li>
<?php
$masterAllRecordset1->moveNext();
}
$masterAllRecordset1->moveFirst(); //return RS to first record
?>
</ul>
</body>
</html>

Details:

<?php require_once('Connections/mitoWebsiteMSQLI.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
$details1Recordset1 = new WA_MySQLi_RS("details1Recordset1",$mitoWebsiteMSQLI,1);
$details1Recordset1->setQuery("SELECT * FROM completedProjects WHERE mission_id = ?");
$details1Recordset1->bindParam("i", "".(isset($_GET['bymission_id'])?$_GET['bymission_id']:"") ."", "-1"); //colname
$details1Recordset1->execute();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body
<?php echo($details1Recordset1->getColumnVal("project_name")); ?></body>
</html>

This is a simple Master/detail. I am having issues with the details page returning no value from the master page. It seems that the master page does go to the details page when the link is clicked, but no data is returned or printed to the page on the details page.
Please help me resolve this
Thank you.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...