Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed some help to submit a value in the database - phpBB
    primarykey
    data
    text
    <p>Well guys, to ask the question is pretty simple, but myself, I'm having a problem on finding the answer, and I need this badly...</p> <p>The question is:</p> <p>I have the following function in (donate/index.php)</p> <p> <p>function submitted_amount() { global $db, $user, $auth, $template, $current_dir; global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;</p> <pre><code> include ($phpbb_root_path . 'includes/functions_user.' . $phpEx); include ($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include_once ($phpbb_root_path . 'donate/functions_donate.' . $phpEx); $submitted_amount = (isset($_POST['submitted_amount'])) ? true : false; $sql = 'UPDATE ' . DONATION_TABLE . " SET config_value = '" . $submitted_amount . "' WHERE config_name = 'submitted_amount'"; $result = $db-&gt;sql_query($sql); </code></pre> <p>}</p> <p>page_header($user->lang['DONATE_EXPLAIN'], false);</p> <p>submitted_amount();</p> <p>$template->set_filenames(array( 'body' => 'donate/index_body.html') );</p> <p>?></p> <p>Now the file: (styles/prosilver/template/donate/index_body.html)</p> <p>It has the following line</p> <p>&lt; input type='text' name='submitted_amount' id='submitted_amount' value='' size="25" tabindex="1" maxlength='9' class='inputbox_d' align="top"></p> <p>&lt; form action='{U_DONATE_CONFIRM}' method='post'> </p> <p>&lt; input type='submit' class="button1" name='submit' value='{L_SUBMIT}'></p> <p>If you need more clarifications please tell me. I showed you all possible connections between the HTML and the PHP of my code. The database column is there, so what's my problem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload