DMXzone Database Connector PHP Support Product Page

Not a problem

How can I get a value from mysql to a PHP-variable ?

Reported 27 Jul 2015 15:21:24
1
has this problem
27 Jul 2015 15:21:24 User  posted:
Hi

How can I get a value from mysql to a PHP-variable ?

This ist not working:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo-Seite</title>
<script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="ScriptLibrary/dmxDataBindings.js"></script>
<script type="text/javascript" src="ScriptLibrary/dmxDataSet.js"></script>
<script type="text/javascript">
/* dmxDataSet name "nolimit" */
jQuery.dmxDataSet(
{"id": "nolimit", "url": "dmxDatabaseSources/nolimitpaket.php", "data": {"limit": "25"}, "dataSourceType": "database", "dataType": "jsonp"}
);
/* END dmxDataSet name "nolimit" */
</script>
</head>
<?php
$preis={{nolimit.data[0].paket_preis12}};
?>

<body>

<?php
echo "Preis= $preis";
?>

</body>
</html>

Replies

Replied 27 Jul 2015 15:41:55
27 Jul 2015 15:41:55 Teodor Kuduschiev replied:
Hello,
You cannot use data bindings inside php code. The PHP code is being rendered server-side, while the Data Bindings are rendered using AJAX - client side.
Replied 27 Jul 2015 17:40:50
27 Jul 2015 17:40:50 User  replied:
Sorry, then unfortunately I do not need the software. Can I return it? It was bought yesterday (via paypal).

Reply to this topic