I am pretty dumb when it comes to php so please be patient.
I am looking for a really good tutorial regarding CF and database queries or if anyone can "walk" me through setting this up.
I already have the entire registration form complete. My final results will be emailed which also works.
If I cannot achieve #2, I can live with #1.
What I want to achieve:
1. Textbox and Submit button. If the entered value matches a confirmed order in a database table, then redirect them to the registration form.
2. If the user enters a value that matches a confirmed order, I then want to populate all of the user info in the related textboxes.
I have completed the query using Navicat (MySQL): I have confirmed it works correctly. I also understand that Navicat may be slightly different when entering parameters (ie. [$any_name] vs :any_name vs '$any_name'
Thank you in advance,
Kelso
I am looking for a really good tutorial regarding CF and database queries or if anyone can "walk" me through setting this up.
I already have the entire registration form complete. My final results will be emailed which also works.
If I cannot achieve #2, I can live with #1.
What I want to achieve:
1. Textbox and Submit button. If the entered value matches a confirmed order in a database table, then redirect them to the registration form.
2. If the user enters a value that matches a confirmed order, I then want to populate all of the user info in the related textboxes.
I have completed the query using Navicat (MySQL): I have confirmed it works correctly. I also understand that Navicat may be slightly different when entering parameters (ie. [$any_name] vs :any_name vs '$any_name'
SELECT
xxx_hikashop_address.address_firstname,
xxx_hikashop_address.address_lastname,
xxx_hikashop_address.address_street,
xxx_hikashop_address.address_city,
xxx_hikashop_zone.zone_name,
xxx_hikashop_address.address_post_code,
xxx_hikashop_address.address_telephone
FROM
xxx_hikashop_address
INNER JOIN xxx_hikashop_order ON xxx_hikashop_address.address_user_id = xxx_hikashop_order.order_user_id
INNER JOIN xxx_hikashop_zone ON xxx_hikashop_address.address_state = xxx_hikashop_zone.zone_namekey
WHERE
xxx_hikashop_order.order_number = [$any_name] AND
xxx_hikashop_order.order_status = 'confirmed'
Thank you in advance,
Kelso