/ Published in: PHP
Help! I can't get the bottom lines of code to work!
Expand |
Embed | Plain Text
<?php if (!$con) { } $sql="INSERT INTO wp_revoked (id, your_name, your_mancard, your_email, rev_name, rev_email, title, entry) VALUES ('$_POST[id]','$_POST[your_name]','$_POST[your_number]','$_POST[your_email]','$_POST[rev_name]','$_POST[rev_email]','$title','$entry')"; { } echo "<br />"; ?> <?php //This is how you get it back out. if (!$con) { } $query = "SELECT * FROM table ORDER BY id DESC LIMIT 1"; // Print out the contents of each row into a table $rev_name = $row['rev_name']; $your_name = $row['your_name']; $all = "<ul><li><strong>Revokee:</strong> $rev_name</li> <br /> <li><strong>Submitted by:</strong> $your_name</li> <br /><li><strong>Reaso:</strong> $entry</li> <br /> <li><strong>Rate This: </strong></li></ul> "; $ID = ""; } if (!$con) { } $sql="INSERT INTO wp_4_posts (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_status, comment_status, post_type, post_category) VALUES ('$ID','$post_title','$post_author','$post_content','$post_type','$post_status','$comment_status','$post_date_gmt','$post_date','$post_category')"; { } echo "Revocation Submitted<br />"; ?>
You need to login to post a comment.
