PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE tableee ( `id` INTEGER, `tag` VARCHAR(21) ); INSERT INTO tableee (`id`, `tag`) VALUES ('1', 'wordpress, psd , html'), ('2', 'wordpress, html'), ('3', 'wordpress'), ('4', 'psd');
Copy Clear
Copy Format Clear
<?php use Carbon\Carbon; $now = Carbon::now()->format('d/m/Y'); printf("Today is %s\nCurrent PHP version: %s \n\n", $now, phpversion()); $query = "INSERT INTO tableee VALUES (?, ?);"; // get DB version using PDO $stmt = $pdo->prepare($query); $stmt->execute([5, 'test']);
Show:  
Copy Clear