fork download
  1. header('content-type: text/html; charset=utf8');
  2. error_reporting(E_ALL);
  3. $db = mysql_connect('localhost', 'sew810i9', '1234') or die ('Нет соединения');
  4. $base = "CREATE DATABASE mydb" or die ("База не создана");
  5. $table = "CREATE TABLE mytable (title TEXT)";
  6. mysql_select_db($table, $db);
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:8: warning: character constant too long for its type [enabled by default]
prog.cpp:3:21: warning: character constant too long for its type [enabled by default]
prog.cpp:3:34: warning: character constant too long for its type [enabled by default]
prog.cpp:3:46: warning: multi-character character constant [-Wmultichar]
prog.cpp:3:62: warning: character constant too long for its type [enabled by default]
prog.cpp:1:7: error: expected constructor, destructor, or type conversion before ‘(’ token
prog.cpp:2:16: error: expected constructor, destructor, or type conversion before ‘(’ token
prog.cpp:3:1: error: ‘$db’ does not name a type
prog.cpp:4:1: error: ‘$base’ does not name a type
prog.cpp:5:1: error: ‘$table’ does not name a type
prog.cpp:6:16: error: expected constructor, destructor, or type conversion before ‘(’ token
stdout
Standard output is empty