http://www.san-juan-island.net/testSite
I am very close to finishing this site as a matter of fact I thought I was done until after checking all the browsers I found IE was not working correctly. I made the rotating ads on the sidebar clickable. The site works great on Firefox, Opera, Safari, Chrome, but in IE 8 all the advertisers disappear on the sidebar and at the footer. Also on the home page only there is only one image that appears...
User Profile
Collapse
-
Jquery image rotate Debug IE
-
Well it's done I would like to thank Dormilich and dgreenhouse for all your help. I want to post this for anyone else who has the same problems I had with checkboxes. I left the checkboxes as an html file and posted to this file. You will have to create the table there is a sample above and like Dormilich says create two tables
thanks again
Code:<?php if(isset($_POST['amenity'])) { //Build a where clause based
-
Also I started to read about MySQLi and PDO. I am not sure but MySQLi seems simpler because it works with MySQL.
With PDO there is a warning that some MySQL table do not support transactions.
I am new at programing and I would like to go in the right direction
thanks for all your helpLeave a comment:
-
thanks I did not understand the brackets,
Code:if(isset($_POST['amenity'])) { //connect.............. //all the same code echo $row['description'] . "<br />". "<br />"; } }//thanks for the bracket info mysql_close()//now it says this is a problem
Warning: mysql_close(): no MySQL-link resource supplied in........Last edited by Dormilich; Mar 26 '11, 09:18 AM. Reason: please use [CODE] [/CODE] tags when posting codeLeave a comment:
-
I placed
Code:if(isset($_POST['amenity'])) //connect mysql_connect("localhost", "root", "root") or die(mysql_error()); mysql_select_db("bnbtest") or die(mysql_error());
I know that the connection is correct because it works for all my other simple test. for instance...Leave a comment:
-
Hi dgreenhouse I hope you are still out there. I have been playing with the code and it is not working I keep getting an error undefined index: amenity in/.....
I have simplified everything as much as I could
INN TABLE
Code:-- Database: `bnbtest` -- -- ----------------------------------------------------- -- -- Table structure for table `bnb` -- CREATE TABLE `bnb` ( `bnb_id` int(11)
Leave a comment:
-
oh boy I thought I was thinking like you but I got lost again.
For the good news I did separate the tables and was able to populate the fields of name, fax, mail, phone, address. I am lost with the amenities again, I created a new table, not sure which one to use now. I feel like an idiot. I am an artist and this does not compute. My right brain is getting a workout.
FOR THE GOOD NEWS
Code:<?php //Connect $link
Leave a comment:
-
Thank you soooooo much I will get on it right away. This weekend I was in a remote area but I downloaded the php manual and read some of it. Thanks again for all the help.Leave a comment:
-
web site is at
http://mossgraphics.net/TestSite/ame.../amenities.php
ampage is not up yet
I am trying to create it with the mySQL
so all the information will show up on the page...Leave a comment:
-
thank you for your reply
what I need is if you go on the amenities page and check breakfast, pickup, tv and child
The ampage will bring up the inns that have those amenities
so the harrison house, trumpeter inn and argyle house return as a result
does this make senseLeave a comment:
-
help with foreach loop that builds a recordset access database
So as everyone else I am new to PHP and I have been trying to create an amenity page for a B&B. I need folk to be able to select checkboxes and it fetches the info from the database.
I posted the checkbox list to the ampage and now I need to search the database for the matching records.
so I know I need to write
Code:foreach ($_POST['amenty'] as $value) { $breakfast = what $bbq $kitchenette
Last edited by Dormilich; Mar 12 '11, 06:27 AM.
No activity results to display
Show More
Leave a comment: