<?php
$ytlinks = $db_con->prepare('SELECT * FROM PJW_helpful_links WHERE parent=? AND type=? ORDER BY id');
$ytlinks->execute(array($post_id, "YT"));
$ytlinks->fetch(PDO::FETCH_ASSOC);
/* and then */
if ($ytlinks->rowCount() > 0) {
while ($results = $ytlinks->fetch(PDO::FETCH_ASSOC)) {
if ($results["description"] != "") {
include 'inc/yt-d.phtml';
} else {
include 'inc/yt.phtml';
}
}
}
Warning: Undefined variable $db_con in /in/7hqFr on line 3
Fatal error: Uncaught Error: Call to a member function prepare() on null in /in/7hqFr:3
Stack trace:
#0 {main}
thrown in /in/7hqFr on line 3
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Warning: Undefined variable $db_con in /in/7hqFr on line 3
Fatal error: Uncaught Error: Call to a member function prepare() on null in /in/7hqFr:3
Stack trace:
#0 {main}
thrown in /in/7hqFr on line 3
Process exited with code 255.
Notice: Undefined variable: db_con in /in/7hqFr on line 3
Fatal error: Uncaught Error: Call to a member function prepare() on null in /in/7hqFr:3
Stack trace:
#0 {main}
thrown in /in/7hqFr on line 3
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Call to a member function prepare() on null in /in/7hqFr:3
Stack trace:
#0 {main}
thrown in /in/7hqFr on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: db_con in /in/7hqFr on line 3
Fatal error: Uncaught Error: Call to a member function prepare() on unknown in /in/7hqFr:3
Stack trace:
#0 {main}
thrown in /in/7hqFr on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Notice: Undefined variable: db_con in /in/7hqFr on line 3
Fatal error: Call to a member function prepare() on null in /in/7hqFr on line 3
Process exited with code 255.