note 130125 added to language.functions
| From: | Anonymous | Date: | Tue, 11 Mar 2025 05:30:41 +0000 |
| Subject: | note 130125 added to language.functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221956@lists.php.net to get a copy of this message | ||
<?php
$servername = "mysql";
$username = "root";
$password = "htlkrems";
$dbname = "blog_system";
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Connected successfully";
} catch(PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}
$sql = "SELECT * FROM posts";
$stmt = $conn->prepare($sql);
$stmt->execute();
$restults = $stmt ->FETCHALL(PDO::FETCH_ASSOC);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 193.170.70.42)
----
Manual Page -- https://php.net/manual/en/language.functions.php
Edit -- https://main.php.net/note/edit/130125
Del: integrated -- https://main.php.net/note/delete/130125/integrated
Del: useless -- https://main.php.net/note/delete/130125/useless
Del: bad code -- https://main.php.net/note/delete/130125/bad+code
Del: spam -- https://main.php.net/note/delete/130125/spam
Del: non-english -- https://main.php.net/note/delete/130125/non-english
Del: in docs -- https://main.php.net/note/delete/130125/in+docs
Del: other reasons-- https://main.php.net/note/delete/130125
Reject -- https://main.php.net/note/reject/130125
Search -- https://main.php.net/manage/user-notes.php