Topic Closed
phelan
8 Posts

Hi,

is there a way to integrate PDO queries on individual pages of Typesetter?
Under PHP5.6 the old SQL queries worked.

Code:

$result = $db->prepare($sql);

Error:

array(
   [type] => (integer)1
   [message] => (string)Uncaught Error: Call to a member function prepare() on null in

3 years ago#10770

juergen
1.5K Posts
57.8K Downloads
16 Plugins
design, web development & visual effects

Looks like a failed DB connection but could also be sth. different.
I'd try to debug it e.g. like...

$db_type = gettype($db);
msg( '$db is ' . $db_type );
if( $db_type == 'object' ){
  msg( 'Object vars of $db = ' . pre(get_object_vars($db)) );
}
// $result = $db->prepare($sql);
3 years ago#10777

phelan
8 Posts

The database connection is up. DB Type is object.
The difficulty was the function / class. Which I've solved now.

Edited: 3 years ago#10788

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register