That is the most awesome results ever. "Why?" you may ask. Well, with ZERO FUCKING DOCS, tutorials or anything else (cause there are none), I succeeded in injecting values into a database using haxe. The values you see (michael, null, null, null) are the exact values I told it to put. The "true" was the return from the PDO execute. ie... it's true that this shit finally worked.
Now that I have this super mini and crummy example working I can expand this to do whatever the hell I want. I'm not sure where this is currently useful to me but, I noticed there was not one fucking drop of information on how to do this on the entire commercially available internet so, I decided to accept the challenge of figuring it out while being completely in the dark.
I got it to work. I win. I guess I'll write some abstraction layer that works similar to my content manager except instead of files in/out it will be database in/out. The sort of silly thing is, I could have written this in pure php with zero problems a hell of a lot faster than trying to do it in haxe BUT my haxe version can be ported to neko with a click and there would have been zero challenge doing it the pure php way. This was more about making something work where there is no way to get any help and I don't even know where to start.
I'd show you my code but, it's currently super, extremely crappy. Maybe the shittiest code I've ever written. Doesn't matter. I'll make it sweet as fuck when I feel like working on it.
Comment