-
- 8 Posts
As I’m sure this questions will tell you, I’m newer to modx Revolution, but from what I have used it I’m really starting to like it...the following has me stuck on a few of my websites right now though.
I’ve been trying to look, but I have not beenable to find anything on this. I usually write most of my queries using MDB2, it has some functions I like using such as $MDB2->quote($variable_string) so that I don’t have to put quotes around each of the varialbes.
Does anyone know if I can use MDB2 in my snippets, or do I have to just use the PDO and/or mysql_query type functions?
--
Dustin Miller
Cold Snap Technology
www.coldsnaptechnology.com
218-229-2887
-
- 8 Posts
I think I just found what I was looking for. I think that $modx->quote($_POST[’variable_name’]) will work as the main thing I was looking for. Using that and the $modx->query($q) is almost exactly what I wanted.
--
Dustin Miller
Cold Snap Technology
www.coldsnaptechnology.com
218-229-2887