Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#827420
Hi,
Some times the executeQuery function is not working. To over come the issue i have gone through the processmaker source code. below code works well
Code: Select all
$cnn = Propel::getConnection(SYS_SYS);  // SYS_SYS - will take the current database name
$stmt = $cnn->createStatement();

$date = date("Y-m-d h:i:s");
$query = "UPDATE PMT_BOOK SET NAME = '".$name."',TITLE = '".$title."',AUTHOR = '".$author."',BARROW = '".$barrow."', RETURNED = '".$return."'  WHERE ID = 1";        
       
$result = $stmt->executeQuery($query, ResultSet::FETCHMODE_ASSOC);

// echo '<pre>';print_r($result);die;
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]