0

I have a problem with my site which is still in the local stage Error text

Parse error: syntax error, unexpected ''db.class.php'' (T_CONSTANT_ENCAPSED_STRING) in D:\wamp64\www\New folder\postForm.php on line 4

Code text

> 
<?php
$microBlog = $_POST['microBlog'];
echo $microBlog;
DB::require_once 'db.class.php';
DB::$user = 'airdar123';
DB::$password = '123';
DB::$dbName = 'microblog';
$microBlog = $_POST['microblog'];
DB::insert('microblog', array('post' => $microblog)
);
?>

I have changed the db.class.php file but it didn't work

Nigel Ren
  • 56,122
  • 11
  • 43
  • 55

0 Answers0