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

HTACCESS Friendly URL doesnt work

Thread began 8/15/2014 2:19 am by Christopher West | Last modified 8/19/2014 10:09 am by Christopher West | 1172 views | 18 replies

Christopher WestCommunity Expert

Hi Jamie, thanks for replying back, well in my database I have the dynamic URL stored (for example in the screenshot attached)

Then my current recordset to display these are:

$basefile = basename ( $_SERVER["REQUEST_URI"] );

mysql_select_db($database_dinkydb, $dinkydb);
$query_rsFeatured = "SELECT * FROM featured LEFT OUTER JOIN products ON featured.FeaturedTypeID = products.ProductID WHERE FeaturedType = 1 AND FeaturedLocale = '$basefile'";
$rsFeatured = mysql_query($query_rsFeatured, $dinkydb) or die(mysql_error());
$row_rsFeatured = mysql_fetch_assoc($rsFeatured);
$totalRows_rsFeatured = mysql_num_rows($rsFeatured);


<?php if ($totalRows_rsFeatured 0) { // Show if recordset not empty ?>

  <div class="clearfix"></div>
  <div class="hide-mobile-bottom hide-mobile-side">
  <div class="feature-heading">Featured Products</div>
  <?php do { ?>
    <p class="feature-name"><a href="../product.php?Product=<?php echo $row_rsFeatured['ProductLink']; ?>"><?php echo $row_rsFeatured['ProductName']; ?></a></p>
    <div class="clearfix"></div>
    <p class="feature-price">From  £<?php echo $row_rsFeatured['ProductPrice']; ?></p>
    <p class="feature-image"><a href="../product.php?Product=<?php echo $row_rsFeatured['ProductLink']; ?>"><img  src="../images/products/large/<?php echo $row_rsFeatured['ProductImage']; ?>" width="250" alt="<?php echo $row_rsFeatured['ProductImageTitle']; ?>"/></a></p>
    <?php } while ($row_rsFeatured mysql_fetch_assoc($rsFeatured)); ?>
  <?php // Show if recordset not empty ?>

What im getting confused mainly with is do I still KEEP the same PHP code intact, for example:

<a href="../product.php?Product=<?php echo $row_rsFeatured['ProductLink']; ?>"><?php echo $row_rsFeatured['ProductName']; ?></a>

and in my second question, I have seperated in HTACCESS category.php and product.php, yes I believe the htaccess rule for product.php isnt being understood, since the error 'error message is referencing this code on line 81 : mysql_data_seek($rsProducts,0); ' is relating to category.php file.

This is why im confused.


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





Ease of use


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