Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > BOOK: Dreamweaver MX: PHP Web Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Dreamweaver MX: PHP Web Development
This is the forum to discuss the Wrox book Dreamweaver MX: PHP Web Development by Gareth Downes-Powell, Tim Green, Bruno Mairlot; ISBN: 9780764543876
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Dreamweaver MX: PHP Web Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 15th, 2004, 04:04 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Another Mistake (in Search System)...Is it me?

Hi People,

I am trying to build the search system described in Chapter 8 and when I get to the point where I need to add the variables (bComp,<,$bComp) I get the following error when I click OK (the code isn't added to the page):

"bComp is an invalid variable name; it does not appear in the SQL"

Can someone pleeeeeeeease help. I am so frustrated and don't know if it is me or the *&^( book!


<?php require_once('Connections/rsSearch.php'); ?>

<?php
    if($_POST_VARS["bed_option"] == "Less than")
    {
        $bComp = "<";
    }
    else if($_POST_VARS["bed_option"] == "More than")
    {
        $bComp = ">";
    }
    else
    {
        $bComp = "=";
    }
?>

<?php
mysql_select_db($database_rsSearch, $rsSearch);
$query_Recordset1 = "SELECT ID, price, bed FROM room";
$Recordset1 = mysql_query($query_Recordset1, $rsSearch) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Did you find a mistake? nzakas BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 47 July 18th, 2006 05:51 PM
mistake in code yami56 Access 3 February 24th, 2005 03:04 PM
mistake in my topics zakarya_hazara Classic ASP Basics 1 October 9th, 2004 02:49 AM
Dangerous mistake revinchalil SQL Server 2000 4 February 4th, 2004 11:06 AM



All times are GMT -4. The time now is 12:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.