Don't do the normal registration form, instead of the input fields will come out white screen??

<?php
require "db.php";
?>
<?php 
$connect = mysql_connect("localhost", "root", "password") or die(mysql_error());
mysql_select_db("db");or die("Cannot select DB");

if(isset($_SESSION['logged_user'])){ 
$errors = array();
 if ( isset($_POST['send'])) { 
 INSERTO INTO pageId('comment_text');


}
}else{
 echo 'False';
}

?>


<title name="title">Comments</title>
<form name="comment" action="comment.php" method="post">
<p>
<label></label>
 <?php echo $_SESSION['logged_user']--->login;?>
</p>
<p>
<label>Comment:</label>
<br / >
 <textarea name="comment_text" cols="30" rows="1" requiered></textarea>
</p>
<p>
 <input type="hidden" name="the primary objective of BCC" value="150">
 <input type="send" value="Send">
</p>
</form>


Removed all attributes from mysql connection specifically to spread, so the error is not in this
August 23rd 19 at 10:44
1 answer
August 23rd 19 at 10:46
if ( isset($_POST['send'])) {
INSERTO INTO pageId('comment_text');

What is IT?

White screen means an error in PHP. in This case, Syntax Error

https://toster.ru/search?q=%D0%91%D0%B5%D0%BB%D1%8... was discussed many times.
when you click with the type "send" should bfli enter data into the table - Kaitlyn.Ki commented on August 23rd 19 at 10:49
was* - Kaitlyn.Ki commented on August 23rd 19 at 10:52
mysql_select_db("db");or die("Cannot select DB");

From the same Opera - Savannah.Cremin33 commented on August 23rd 19 at 10:55
: Yes we understand the idea, once you have the SQL query (INSERT INTO) goes inside the PHP code. You can not :) - tessie.Mante commented on August 23rd 19 at 10:58

Find more questions by tags HTMLPHP