Search Results

Showing results 1 to 40 of 73
Search took 0.01 seconds.
Search: Posts Made By: filch
Forum: PHP 3 Days Ago
Replies: 7
Solved: session in php
Views: 154
Posted By filch
OK .. that's your choice. It is simply good practice.

D
Forum: PHP 3 Days Ago
Replies: 3
Views: 115
Posted By filch
I have tried using quotes but that did not work either.

Phorm is not really a templating engine. It is simply a big PHP script that handles various types of form submits. See...
Forum: PHP 3 Days Ago
Replies: 7
Solved: session in php
Views: 154
Posted By filch
Yes but obviously, not until you are finished with it. You should also test whether a session has already been started or not before you try and start another one i.e.

if (!isset($_SESSION)) {
...
Forum: PHP 3 Days Ago
Replies: 3
Views: 115
Posted By filch
Hi,

I don't know if I have just been working too much or have gone brain dead (or both), but the solution to this eludes me.

I am using PHORM ( a PHP form processor) which uses variable...
Forum: PHP 3 Days Ago
Replies: 7
Solved: session in php
Views: 154
Posted By filch
Did you start the session on all the pages where you need to access your session variables?

Dave
Forum: JavaScript / DHTML / AJAX 18 Days Ago
Replies: 0
Views: 450
Posted By filch
Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have...
Forum: MySQL Sep 25th, 2009
Replies: 3
Views: 302
Posted By filch
This has it. It is weird because this is more-or-less what I had and the page just came up blank. turns out that it has nothing to do with the query but something else on the page is cause the page...
Forum: MySQL Sep 25th, 2009
Replies: 3
Views: 302
Posted By filch
Hello all,

I have the following SQL statement.

SELECT a.airport_code AS AIRPORTCODE, a.airport_name AS AIRPORT, u.usr_id AS USERID, u.usr_fname AS FIRSTNAME, u.usr_lname AS LASTNAME,...
Forum: JavaScript / DHTML / AJAX Sep 17th, 2009
Replies: 3
Views: 418
Posted By filch
However ... it still confuses me why I would have to do this at all. Using AJAX is supposed to mean the form has not been posted yet when I make the AJAX call so the fields should not be affected. Am...
Forum: JavaScript / DHTML / AJAX Sep 16th, 2009
Replies: 3
Views: 418
Posted By filch
Yeah ... I have something like that already. I am using:

<input name="address1edu" type="text" class="contactform" id="address1edu" value="<?PHP echo $_REQUEST['address1edu'] ?>" size="30" />
...
Forum: JavaScript / DHTML / AJAX Sep 16th, 2009
Replies: 3
Views: 418
Posted By filch
Ho,

I am building a large registration form. In this form, a sponsor/educator must register himself or herself and then may add up to 6 more " delegates" in pairs. The first two pairs registration...
Forum: MySQL Dec 1st, 2008
Replies: 3
Views: 916
Posted By filch
Cheers ... I had a quick glance at this and the scarey thing is, for the most part, I understood it. Not perfectly clear but certainly not overly cloudy either.

Dave
Forum: MySQL Dec 1st, 2008
Replies: 3
Views: 916
Posted By filch
OK .. I was migrating an application from a staging server where the MySQL version is 4.1.10a to a live server where the MySQL version is 5.0.45. There apparently is quite a difference between query...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
OK ;-)))))))

That's got it!!!!

Now all I have to do is figure out how to disable the services checkboxes until the user clicks on an airport checkbox ... but that is another issue ;-)

You...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
Actually, this will no longer be an if/else statement will it? We just need to test if there is a record matching the user, airport etc and then delete all of those. Then do an INSERT. I think that...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
OK .... you are correct ;-) I guess the problem was the * all along because I used the same SQL when I was trying it before.

So, if there is a match, delete from userairportservices where usr_id...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
So, I think you are still saying that we should be able to delete directly from the UAS table ... yes? So, what is the purpose of constraints?

Do I have to alter the tables/database or something?
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
OK .. I used the following:

DELETE * FROM `userairportservices` WHERE `usr_id_users` = 5

and it says I have an error in my syntax. I don't think I do. But I bet if I delete the user it will...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
OK I will try it but the relationship is a one-to-many from users to uas ... yes? It would not make sense that a user can exist and not have a link to an airport or service?? I will try deleting...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
Yeah I have the usr_id no problem but the uas table will NOT allow deletes if a matching user exists in the users table because a user cannot exist in the users table without a related id in the uas...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
Well I had been working along the line of deleting all the records belonging to the usr_id before INSERT or UPDATE. However, this is where I ran into trouble with the constraints. I would have to...
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,329
Posted By filch
Ok ... I am back. I had a minor freak out because I am under considerable pressure to get this done and then my machine started to crash and then my page code got out of control etc ...etc. On and on...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
There is something here that does not seem quite right (God I want to be done with this ;-))

Here is the SQL to find all matches:

SELECT uas.userairportservices_id FROM userairportservices uas...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
Well it is still not updating and is still pretty weird to me. Here is what I have so far:

foreach ($a_id as $aid => $chosen) {
foreach ($chosen as $sid => $v) {
if...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
Sorry ... let me make sure I understand what is going on here:

1. I have a multidimensional array here created from the combination of the airport_id checkboxes and the service_id checkboxes.
2....
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
RE: $aid vrs $a_id: yes I am pretty sure that is correct. It works perfectly in my INSERT page.

The error, however, seems to be because I have no $db object. This is OOP and there is no object...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
I am using the following:

$userid = $_GET['usr_id'];
echo "USER ID: " . $userid . "<br />";
$a_id = $_POST['airport_id'];
/*echo print_r($linkID);*/
echo print_r($a_id);

...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
OK well then, I understand that if something on the user table, or the service or airport tables gets updated, the uas table must be updated as well. However, if I delete an airport from the airport...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
Thanks for this. I will give this a try. It seems right to me.

However, I am wondering if some of the problem I was having did not have to do with the key constraints. I tried deleting from the...
Forum: MySQL Nov 24th, 2008
Replies: 71
Views: 3,329
Posted By filch
OK .. seriously .. if you are ever in Toronto, the beer is on me. I am pulling my hair out (what is left of it) because I am so close but have run smack into what seems to be a cement wall.

I can...
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
OK I have managed to get this to work. I use a:
SELECT * FROM airport and a SELECT * FROM service to set up a parent
<?php do { } while ?> loop and another as a nested loop inside of this parent...
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
I'm sorry but you have lost me here ;-(

LEFT JOIN users ON userairportservices.usr_id_users = user.usr_id ???

Sorry to be dull here.

Dave
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
Still looks the same. Is this what you mean?

SELECT userairportservices.usr_id_users, userairportservices.airport_id_airport, airport.airport_code, airport.airport_name,...
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
OK .. I am sure I am not explaining this clearly ??

I need to dynamically list all the airport names and their codes plus a checkbox (which needs to be checked if the user has access to the...
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
Wondering why this does not work?

SELECT u.usr_id, a.airport_name, a.airport_id, s.service_id, uas.service_id_service as chosen FROM airport a INNER JOIN service s INNER JOIN users u USING...
Forum: MySQL Nov 23rd, 2008
Replies: 71
Views: 3,329
Posted By filch
OK . so here is the beginning of a revised query:

SELECT u.usr_id AS ID, u.usr_fname AS FIRSTNAME, u.usr_lname AS LASTNAME, uas.airport_id_airport AS AIRPORTID, uas.service_id_service AS SERVICEID...
Forum: MySQL Nov 22nd, 2008
Replies: 71
Views: 3,329
Posted By filch
Well, I have attached an image of what I need the layout to be and how it shows ALL of the airports and all three services for each. It also then shows the airports that are selected with their...
Showing results 1 to 40 of 73

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC