Advanced CForms Queries

  • Pivoting filtered submission data into rows
  • Accessing cforms Data Directly
  • Fetch data from cforms created tables
  • simply use the @mail() example in my-functions.php to make cforms send you an email with the data array which will show you exactly how to reference the form fields.
    (read more …)
  • CFormsII SQL Daten ausgeben
  • <table><tbody>
    <?php $abfrage = "
    SELECT * FROM wp_cformsdata, wp_cformssubmissions
    WHERE wp_cformsdata.sub_id = wp_cformssubmissions.id
    AND wp_cformssubmissions.form_id = '8'
    AND wp_cformsdata.field_name = 'Ihr Name'
    ORDER BY field_val
    "; ?>
    <?php $ergebnis = mysql_query($abfrage); ?>
    
    <?php while($row = mysql_fetch_object($ergebnis))
        {
        echo "<tr><td>" , $row->field_val , "</td></tr>";
        }
      ?>
    </tbody></table>
    

    Leave a Reply

    You must be logged in to post a comment.