Between the Sticks USA, on Nov 11 2008, 03:41 AM, said:
hell-oooooooooo?
Nobody has an answer?
Why not use the manual SQL Scripts I uploaded?
I couldn't get the automatic ones to work.
Mat
Posted 11 November 2008 - 01:21 PM
Quote
Quote
Posted 11 November 2008 - 02:29 PM
Between the Sticks USA, on Nov 11 2008, 01:21 PM, said:
Quote
Quote
Posted 11 November 2008 - 04:09 PM
Edited by Between the Sticks USA, 11 November 2008 - 04:19 PM.
Posted 11 November 2008 - 04:46 PM
Edited by Between the Sticks USA, 11 November 2008 - 04:59 PM.
Posted 25 November 2008 - 05:45 PM
random183, on Nov 25 2008, 09:35 AM, said:
Posted 25 November 2008 - 10:23 PM
wilma2, on Nov 25 2008, 05:45 PM, said:
Posted 25 November 2008 - 11:47 PM
random183, on Nov 25 2008, 02:23 PM, said:
Posted 15 December 2008 - 03:18 PM
wilma2, on Nov 25 2008, 11:47 PM, said:
Posted 15 December 2008 - 06:37 PM
Edited by johnnybebad, 15 December 2008 - 06:38 PM.
Posted 16 December 2008 - 12:33 AM
<!-- <td class="main"><span class="main">Please indicate A, B, or C</span> <input type="radio" name="entry_qualify_answer" CHECKED> <span class="inputRequirement">*</span></td>-->
<td class="main" STYLE="padding:15px;"><b>A</b> <input type="radio" name="entry_qualify_answer" value="A"><?php echo tep_draw_input_field('configuration_value', COMPETITION_ANSWER_A); ?><br><input type="radio" name="entry_qualify_answer" value="B"><?php echo tep_draw_input_field('configuration_value', COMPETITION_ANSWER_B); ?><br>
<input type="radio" name="entry_qualify_answer" value="C"><?php echo tep_draw_input_field('configuration_value', COMPETITION_ANSWER_C); ?><br>
Edited by johnnybebad, 16 December 2008 - 12:35 AM.
Posted 16 December 2008 - 09:12 PM
Posted 17 December 2008 - 06:47 PM
Posted 17 December 2008 - 08:06 PM
newtest, on Dec 17 2008, 06:47 PM, said:
Posted 17 December 2008 - 08:24 PM
tep_db_query("UPDATE `" . TABLE_CONFIGURATION . "` SET `configuration_value` = '" . tep_db_input($HTTP_GET_VARS
['products_id']) . "' WHERE `configuration_key` = 'PRIZE_ID' LIMIT 1;");
tep_db_query("UPDATE `" . TABLE_CONFIGURATION . "` SET `configuration_value` = '" . tep_db_input($HTTP_GET_VARS
['answer_a']) . "' WHERE `configuration_key` = 'COMPETITION_ANSWER_A' LIMIT 1;");
tep_db_query("UPDATE `" . TABLE_CONFIGURATION . "` SET `configuration_value` = '" . tep_db_input
($HTTP_GET_VARS['answer_b']) . "' WHERE `configuration_key` = 'COMPETITION_ANSWER_B' LIMIT 1;");
tep_db_query("UPDATE `" . TABLE_CONFIGURATION . "` SET `configuration_value` = '" . tep_db_input
($HTTP_GET_VARS['answer_c']) . "' WHERE `configuration_key` = 'COMPETITION_ANSWER_C' LIMIT 1;");
echo '<tr><td class="main" width="15%">Question</td><td class="main" align="left">' . tep_draw_input_field('question',
'type your question here','size="60", onclick=value=""') . ' </td></tr>';
echo '<tr><td class="main" width="15%">Question</td><td class="main" align="left">' .
tep_draw_input_field('question', 'type your question here','size="60", onclick=value=""') . ' </td></tr>';
echo '<tr><td class="main" width="15%">Answer A</td><td class="main" align="left">' .
tep_draw_input_field('answer_a', 'type answer a here','size="30", onclick=value=""') . ' </td></tr>';
echo '<tr><td class="main" width="15%">Answer B</td><td class="main" align="left">' .
tep_draw_input_field('answer_b', 'type answer b here','size="30", onclick=value=""') . ' </td></tr>';
echo '<tr><td class="main" width="15%">Answer C</td><td class="main" align="left">' .
tep_draw_input_field('answer_c', 'type answer c here','size="30", onclick=value=""') . ' </td></tr>';
echo '<tr><td class="main" width="15%">Answer</td><td class="main" align="left">' .
tep_draw_pull_down_menu('answer', $answer_array,'size="1"') . ' </td></tr>';
<td class="main"><?php echo '<span class="main">' . FORM_FIELD_QUALIFING_ANSWER . '</span> ' .
tep_draw_input_field('entry_qualify_answer','','size="1"') . ' <span class="inputRequirement">' .
ENTRY_FIRST_NAME_TEXT . '</span>'; ?></td>
<td class="main" STYLE="padding:15px;"><b>A</b> <input type="radio" name="entry_qualify_answer" value="A"><?php echo COMPETITION_ANSWER_A; ?><br><b>B</b> <input type="radio" name="entry_qualify_answer" value="B"><?php echo COMPETITION_ANSWER_B; ?><br><b>C</b> <input type="radio" name="entry_qualify_answer" value="C"><?php echo COMPETITION_ANSWER_C; ?><br> </td><td>
define('BOX_COMPETITION_INVITE','Click below for a chance to win these spectacular glass goblets<BR>');
define('BOX_COMPETITION_INVITE','Click below for a chance to win this great prize.<BR>');
define('FORM_COMPETITION_DETAILS','Thank you for visting our site and taking the time to look around.<BR><BR>Before you
leave, why not enter our free prize draw for a chance to win this fabulous prize.' .
'<BR><BR>This prize draw will be running until the 25th May 2007.<BR><BR>The
Winner will be notified by email after this date.<BR><BR><span class="smalltext">(terms & conditions apply)</span>'); define('FORM_COMPETITION_DETAILS','Thank you for visting our site and taking the time to look around.<BR><BR>Before you
leave, why not enter our free prize draw for a chance to win this fabulous prize.' .
'<BR><BR>This prize draw will be running until the ' . tep_date_long
(COMPETITION_CLOSE_DATE) . '<BR><BR>The Winner will be notified by email after this date.<BR><BR><span
class="smalltext">(terms & conditions apply)</span>');
Posted 20 December 2008 - 05:12 AM
Posted 20 December 2008 - 12:49 PM
jan64, on Dec 20 2008, 05:12 AM, said:
Posted 20 December 2008 - 01:47 PM
// Check if we have already entered
$check_email_query = tep_db_query("select count(*) as total from " . TABLE_CONTEST . " where contestant_email = '" . $referrals_data['customers_email_address'] . "' AND competition_code = '" . COMPETITION_CODE . "'");
$check_email = tep_db_fetch_array($check_email_query);
if ($check_email['total'] > 0) {
$error = true;
$messageStack->add('competition', TEXT_ALREADY_ENTERED);
// Check if we have already entered
$check_email_query = tep_db_query("select count(*) as total from " . TABLE_CONTEST . " where contestant_email = '" . $referrals_data['customers_email_address'] . "' AND competition_code = '" . COMPETITION_CODE . "'");
$check_email = tep_db_fetch_array($check_email_query);
if ($check_email['total'] > 0) {
$error = true;
if ($error == true && $show_invite == true) $messageStack->add('competition', TEXT_ALREADY_ENTERED);