Comment Plugin - error in displaying user name

23 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 10, 2014   (RSS)

By meg - June 10, 2014 - edited: June 10, 2014

Thank you, but now I'm getting a server error: 

Notice: Undefined variable: questionsRecords in article.php on line 13 MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY createdDate DESC' at line 3

By claire - June 10, 2014

That's a quick fix, it's just a wrong variable name. Try this instead:

list($_wsc_commentsRecords, $_wsc_commentsMetaData) = getRecords(array(
    'tableName'   => '_wsc_comments',
    'loadUploads' => true,
    'allowSearch' => false,
    'where'       => 'recordNum = ' . $detailRecord['num'],
  ));

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/