
trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Why is this data not being inserted into my database table?
trq replied to Stuart_Westgate's topic in PHP Coding Help
You need to pass $conn to mysqli_error() so that it will work. You might want to turn error reporting on also because not passing $conn to mysqli_error() should have generated a php error. -
You could (and should) use preg_match to match a pattern instead of exploding on a period.
-
Have you thought about asking the developer who wrote the code?
-
Instead of returning html from your request return just the data as a json object. Using json, you can then update whatever you need client side.
-
If php -m does not list memcache the extension is not installed.
-
You are of course submitting the form?
-
If that were the case all Wordpress sites would grind to a halt. You haven't provided enough information for us to answer your question.
-
There is no such thing.
-
The location header requires a complete url. That is: http://somedomain.com/somefile?foo=bar
-
Why would you need to know what your variable is named?
-
We can't really help without seeing the relevant config.
-
If I understand you correctly yes.
-
The data you have has nothing at all to do with cookies. Anyway, I would suggest making a table that replicates this structure. From there it would be simple to write an INSERT query to store your data.
-
Variables are not interpolated within single quotes.
-
Where are you getting the term "cookie data" from? It doesn't really make any sense in the context of this topic. Anyway, do you know how to connect to and query a database? All you need do is execute an INSERT statement that stores the data you have. What format is your data in?
-
Indeed. Those API's also have documentation. The reason your question hasn't had a look in is because you have obviously made little effort to research the topic yourself. You need to be specific about where it is exactly you are stuck.
-
Remove the error suppressors so that you might actually see the proper error.
-
Did you actually read the topic of this board before posting?
-
If all your function does is md5 the variable your passing to it, then it is useless, that is exactly what md5() already does, just use that. You pass variables into functions when you call them so you have complete control about the data they operate on.
-
Functions are simple, what part exactly do you not understand? Also, you don't need a custom function for this. md5 already exists and does what you want already.
-
Silex (http://silex.sensiolabs.org) is an awesome micro-framework built on the shoulders of Symfony (another great though full stack framework).
- 8 replies
-
- 1
-
-
- framework
- micro-framework
-
(and 1 more)
Tagged with:
-
This resonates with me more than anything else. http://blog.sanctum.geek.nz/series/unix-as-ide/
-
My main motivation for working in vim is the fact that we do allot of remote stuff via ssh on client machines at work. So, now I can use the same editor under all circumstances. Even when I work from home, it's so much easier to just connect to the vps, ssh in and open vim in a terminal. I don;t have to worry about the overhead of a Desktop.