close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Colname not working

Thread began 12/28/2018 3:51 am by john70964 | Last modified 1/04/2019 2:25 pm by john70964 | 1344 views | 8 replies

john70964

Colname not working

Hello Ray
I have a simple list and details page.
The list seems OK and when I hover over a record number the url shows
correctly at the bottom right hand of the page.
However when I click the link to the details page
I get the correct url http://localhost/boatsforsalenow_mysqli/categories/details.php?11791=11791 but the page remains blank.
Have you an idea why this could be?
Thanks
John

List.php
========

<?php require_once('../Connections/conn1_i.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php
$rsCanalBoatList = new WA_MySQLi_RS("rsCanalBoatList",$conn1_i,0);
$rsCanalBoatList->setQuery("SELECT RecNo, Manufacturer, Model, Image1_250 FROM boats WHERE Category1 = 'Canal Boats'");
$rsCanalBoatList->execute();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p>List Canal Boats </p>
<?php
$wa_startindex = 0;
while(!$rsCanalBoatList->atEnd()) {
$wa_startindex = $rsCanalBoatList->Index;
?>
<p><a href="details.php?<?php echo($rsCanalBoatList->getColumnVal("RecNo")); ?>=<?php echo($rsCanalBoatList->getColumnVal("RecNo")); ?>"><?php echo($rsCanalBoatList->getColumnVal("RecNo")); ?></a><?php echo($rsCanalBoatList->getColumnVal("Manufacturer")); ?><?php echo($rsCanalBoatList->getColumnVal("Model")); ?><a href="details.php"><img src="../BoatImages/<?php echo($rsCanalBoatList->getColumnVal("Image1_250")); ?>" alt="Canal Boats" /></a></p>
<?php
$rsCanalBoatList->moveNext();
}
$rsCanalBoatList->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
</body>
</html>
==================
Details.php
===========

<?php require_once('../Connections/conn1_i.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php
$rsCanalBoatDetails = new WA_MySQLi_RS("rsCanalBoatDetails",$conn1_i,100);
$rsCanalBoatDetails->setQuery("SELECT boats.RecNo, boats.RegDate, boats.Company, boats.Manufacturer, boats.Model, boats.BuildDate, boats.NeworUsed, boats.Category1, boats.HullMaterial, boats.`Engines`, boats.LOA, boats.image1_900 FROM boats WHERE boats.RecNo = ?");
$rsCanalBoatDetails->bindParam("i", "".($rsCanalBoatDetails->getColumnVal("RecNo")) ."", "-1"); //WAQB_Param1
$rsCanalBoatDetails->execute();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p>Details <br />
<?php echo($rsCanalBoatDetails->getColumnVal("RecNo")); ?><br />
<?php echo($rsCanalBoatDetails->getColumnVal("Manufacturer")); ?><br />
<?php echo($rsCanalBoatDetails->getColumnVal("Model")); ?><br />
<?php echo($rsCanalBoatDetails->getColumnVal("BuildDate")); ?></p>
</body>
</html>

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...