Jump to content

aviatorisu

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by aviatorisu

  1. [!--quoteo(post=377504:date=May 26 2006, 10:42 PM:name=hvle)--][div class=\'quotetop\']QUOTE(hvle @ May 26 2006, 10:42 PM) [snapback]377504[/snapback][/div][div class=\'quotemain\'][!--quotec--] then put the $menu inside the href: echo "<a href=\"$menu\"> ..... "; [/quote] It IS in there, and that doesn't work...I tried it that way... ~Z~
  2. Okay, I must be having a serious brainfart here, because I can't seem to put together how to make this work: [code] <!-- START VIEW MENU --> <TD ALIGN="CENTER" WIDTH="120" BGCOLOR="#FFFFFF"> <?php if ( $menu != 'NULL' ) {    echo "<A HREF='../menus/$menu#zoom=150[,0,0]&toolbar=false' target='popup' onClick='wopen('../menus/$menu#zoom=100[,0,0]&toolbar=false', 'popup', 800, 600); return false;'>Menu</A>";} ?> </TD> <!-- END VIEW MENU --> [/code] I need the $menu variable to echo within the A HREF tags...why can't I think straight tonight?? Thanks in advance... ~Z~
  3. Hi all, looking for a little help here. I'm designing a website to review restaurants, shows, etc. around town, and I've learned quite a bit so far during this time. Each review is going to have a section allowing members to post their own comments. I've started into this script, and have a question about how to display the info. I only want to display 2 or 3 random comments for that particular place being reviewed. What would be the best way to go about picking out the comments from the database and then displaying them? Is there a way to limit the results? What if only 1 comment has been left, will it display the same comment to the max number of results? Thanks in advance. ~Z~
  4. Okay, I gave that a shot and totally screwed it up. Let me post the entire form here...maybe that will change something, maybe not: [code]<TR><TD><FONT SIZE="1"><SELECT NAME="gowhere" width="310">         <OPTION VALUE="">Search All         <option value="">------------------------------------</option>         <option value="RESTAURANT">Restaurant</option>         <option value="CLUB">Club</option>         <option value="SHOWS">Show</option>         <option value="CASINO">Casino</option>                  <TR><TD><FONT SIZE="1"><SELECT NAME="loc" width="310">         <OPTION selected VALUE="">Search All         <OPTION VALUE="">------------------------------------</option>         <OPTION VALUE="1">The Strip</option>         <OPTION VALUE="2">North/North Las Vegas</option>         <OPTION VALUE="3">East</option>         <OPTION VALUE="4">West/Summerlin</option>         <OPTION VALUE="5">South</option>         <OPTION VALUE="6">Henderson</option>         <OPTION VALUE="7">Boulder City</option>                  <TR><TD><FONT SIZE="1"><SELECT NAME="price" width="310">         <OPTION selected value="">Search All         <OPTION VALUE="">------------------------------------</option>         <OPTION VALUE="1">$</option>         <OPTION VALUE="2">$$</option>         <OPTION VALUE="3">$$$</option>         <OPTION VALUE="4">$$$$</option>         [/code] Here is the QUERY script that I'm working with as well that makes it work with a keyword option as well: [code]$query = "select * from places where location LIKE $loc AND price LIKE $price AND name LIKE \"%$trimmed%\"   order by id";[/code] As I said, I tried the suggested code, but somehow I screwed it up...any other thoughts? ~Z~
  5. I think I understand what you are saying, but suppose I have an additional 2 or 3 other menu options...how would that change the query? ~Z~
  6. I've recently just started learning how PHP works, and I've made pretty good leaps and bounds I think, but I'm stuck. I'm developing a webpage for people to search for places to go within my city, and I've decided to start with a simple form and go from there. Here is a portion of the code involved: [code]<TR><TD ALIGN=LEFT><FONT FACE="verdana" SIZE="2"><B>Price:</B></FONT></TD></TR> <TR><TD><FONT SIZE="1"><SELECT NAME="price" width="310"> <OPTION selected value="">Search All <OPTION VALUE="">------------------------------------</option> <OPTION VALUE="1">$</option> <OPTION VALUE="2">$$</option> <OPTION VALUE="3">$$$</option> <OPTION VALUE="4">$$$$</option>[/code] This portion of the search form is obviously to select a place to go based on price. I can make the search work for values of 1 thru 4, but my problem is, what value do I plug in to return a "Search All" query? Please let me know if you require more information. Thanks in advance, Zachary
×
×
  • 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.