Search found 29 matches

by kevz
Sun Mar 24, 2013 10:18 am
Forum: JavaScript
Topic: datepicker problem
Replies: 0
Views: 800

datepicker problem

hi, i have tried following this tutorial from http://glad.github.com/glDatePicker/#examples It doesnt seem to work for me. Here is the code i put: <link href="js/styles/glDatePicker.default.css" rel="stylesheet" type="text/css"> </head> <input name="userDOB" type="text" id="mydate" class="field" sty...
by kevz
Sat Mar 23, 2013 3:57 am
Forum: PHP coding => General
Topic: Bus seat reservation tutorial
Replies: 7
Views: 3085

Re: Bus seat reservation tutorial

sorry man But you are talking to a complete beginner with no idea on what you just said. I have tried searching for days and came along this jquery ui stuff. It is so confusing and i am still lost. All i want to do is find a way on how to allow customers to select a seat or seats and book them, from...
by kevz
Wed Mar 20, 2013 7:19 am
Forum: PHP coding => General
Topic: Bus seat reservation tutorial
Replies: 7
Views: 3085

Re: Bus seat reservation tutorial

thnx, i will start looking for tutorials on this
by kevz
Wed Mar 20, 2013 4:58 am
Forum: PHP coding => General
Topic: Bus seat reservation tutorial
Replies: 7
Views: 3085

Re: Bus seat reservation tutorial

it should be a web based project. I think this method maybe to hard for me to do. Is there a easier way to achieve this given the scenario:

1. where bus seats in total are shown
2. Upon reserving a seat/seats, the available seats is then updated.
by kevz
Tue Mar 19, 2013 1:45 pm
Forum: PHP coding => General
Topic: Bus seat reservation tutorial
Replies: 7
Views: 3085

Bus seat reservation tutorial

Hi, Does anyone have any idea or know any good tutorials which i can learn from so that i would have an idea on how to create a bus seat reservation? At the moment i am working on phpmyadmin (WAMP). The real question is how do i make a bus seat plan where the seats can be selected. Do you need a spe...
by kevz
Mon Mar 18, 2013 12:39 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

The problem has been fixed, thanks alot. i also found a good tutorial about drop down lists using javascript http://www.youtube.com/watch?v=FTJszYP6O6s If you are a newbie like me and really desperate to create dynamic drop down list, just visit the site above and you will be all good. Also ask the ...
by kevz
Fri Mar 15, 2013 1:09 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

the file!
by kevz
Fri Mar 15, 2013 12:52 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

This is the code i got on my notepad ++ at moment. <?php $db = new PDO("mysql:host=localhost;dbname=test", "root", ""); if ($_POST) {//are we responding to a form? $country = $_POST['country']; $sql_city = "SELECT * FROM city WHERE country_id =" . $country; $cityResult = $db->query($sql_city); if ((...
by kevz
Fri Mar 15, 2013 12:51 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

it works fine on yours buts not on mine still. Still saying "cant get cities from country 1/2"
by kevz
Fri Mar 15, 2013 12:45 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

hmmmm......when i tried it from your domain, i get the same problem as mine in my browser


*******EDIT********
Sorry man, even right clicking get cities dont do anything on my web browser but it works on your domain.
by kevz
Fri Mar 15, 2013 12:43 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

this is the webbrower bit where it shows the 2nd drop down list dont show any thing
by kevz
Fri Mar 15, 2013 12:38 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

i dont get any errors until i click the submit button. But this is because the 2nd drop down list dont show any values

EDIT: When i click the submit with the 2nd empty drop down list then i get this message "could not pull city names for country 1"
by kevz
Fri Mar 15, 2013 12:34 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

the name of table 2 is city

****EDIT*****
Could it be something to do with my internet explorer settings? Maybe somethings is disabled in internet options?
by kevz
Fri Mar 15, 2013 12:20 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

i included the 2 tables
by kevz
Fri Mar 15, 2013 12:06 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

could not pull city names for country 2 it just says that now in the webbrowser. I don't have a clue whats going on to be honest! ***EDIT**** I have checked to make sure that my table names and column names match whats on the script as well. EDIT: Ok now i know whats causing the above issue. The 2nd...
by kevz
Fri Mar 15, 2013 12:00 pm
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

SCREAM: Error suppression ignored for
Notice: Undefined property: PDOStatement::$rowCount in C:\wamp\www\test\index.php on line 10

could not pull city names for country 2
by kevz
Fri Mar 15, 2013 11:44 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

Question?

does the form need a submit button for the user to click when he/she finish selecting the values.
And the values selected has to go in a new table, right?
by kevz
Fri Mar 15, 2013 11:32 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

sorry to be a pain,

It did fix it (no errors are showing) but now the 2nd drop down list is not showing any values on the web browser.
by kevz
Fri Mar 15, 2013 11:26 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

SCREAM: Error suppression ignored for ( ! ) Notice: Undefined variable: country in C:\wamp\www\test\index.php on line 28 It is coming with this error now. edit: This is my line 28. echo '<option value="' . $row['id'] . '"' . (($country == $row['id']) ? ' selected ' : '') . '>' . $row['country'] . '<...
by kevz
Fri Mar 15, 2013 11:17 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: Call to undefined function rowCount() in C:\wamp\www\test\index.php on line 14

This is the error thats showing!
by kevz
Fri Mar 15, 2013 11:09 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

hey thanx alot man,

I will give it a go
by kevz
Fri Mar 15, 2013 11:02 am
Forum: PHP Scripts
Topic: I need a problem-solving script
Replies: 3
Views: 1016

Re: I need a problem-solving script

Try this link http://www.youtube.com/watch?v=j4FUCoCxE8w
It helped me alot and im only a beginner.

This shows you ways to input data into database from a web based form. You can manipulate the scripts abit to suit your needs.
by kevz
Fri Mar 15, 2013 10:47 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

i dont want anything thats too complicated for me to understand like ajax. So yeah, we can leave it out if its easier.

edit:
If you got anything that would meet my project requirements will be fantastic!
by kevz
Fri Mar 15, 2013 10:25 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

The scripts i posted earlier is just a working example that i thought i could use to start off my booking form. It only allows 2 drop down lists as well.

edited:
If you need, i can post my original project booking form scripts
by kevz
Fri Mar 15, 2013 9:55 am
Forum: PHP Scripts
Topic: Submit dropdown list values to mysql
Replies: 48
Views: 8489

Re: Submit dropdown list values to mysql

I got my customer registration form working where a customer registers with a user name and password, then logs into the site where he/she can book a tour. Now the problem i got is the booking form. I can submit values into my booking table by using <option></option> method but this only allows me t...