-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Posts posted by ginerjm
-
-
You don't understand normal English. I asked for an explanation without using CODE and all you give me are sites which I choose not to click on.
What do these sites have to do with your script? Don't answer that. Just explain what is going on here.
-
1 - turn on error checking so you can see messages
2 - remove the quotes from the parms in the query statement.
-
I looked at your code. I have no idea what you are trying to do. Can you explain in plain English what you are doing without using code to make your point? I really don't know what you want. It appears you want to do something with a query string as I said before, but where does this come into play??
-
If you have to import it constantly, it certainly would behoove you to write a translation script to produce a proper db structure!
-
OK - you wrote some code and more importantly, you posted it properly.
Now - what exactly is the "problem"? Perhaps you could isolate the area of the code you are having difficulty with?
-
And that is how the problem is solved by those who understand regular expressions!
Note Psycho mistook your underscores for dashes so correct his code accordingly.
-
So - English is not your native language. In that case I'm sorry for picking on you but I did not think that was the problem. You actually have pretty good command of the language - I just thought it was American Millennials laziness
-
I don't know which is worse. Your English or your PHP. Did you even read your text prior to hitting the Post button?
Ok - you want to modify the non-numeric values only. Got that. And you only want to change the values. So why do you start out changing the key first thing? Using is_numeric is going to fail (tried it) because having that dash in the value automatically makes it NOT numeric. If your pattern is consistently as you stated, you could do a trial replace from _ to a dot which would then be acceptable as a numeric value. THEN you could make your ultimate change from dot to null.
PS - you do realize that when the foreach completes, the values in the GET array will not be altered with your current code.
- 1
-
Didn't notice the ext. nor do I care. The poster needs to understand that not everyone willy-nilly clicks on attachments. That said - he/she should also show us the specific code that needs addressing by this forum and if he/she posts too much that will also be pointed out.
I'm guessing that the poster did not write this code and basically knows very little PHP since the question appears to ask how to handle a query string from a url. A pretty basic question that any php coder should be able to handle.
I await his/her response and we'll go from there.
-
Did you write this code? What do you need help with specifically? Since you didn't post it I can't see it but the question is rather vague. Perhaps you could POST the code and elaborate on exactly what you are trying to achieve, along with your attempted code so far?
-
You got that much from the OP's writing?? You ARE Good!
-
PHP gets its input from form elements via the Get and POST arrays. You know that, don't you?
Sorry - now I see that you are parsing this by reading some other script.
So you are beginning to use the dom functions. Have you read up on examples of how to parse that document yet?
-
How about reposting and using some punctuation, some proper code tags and breaking out the code from the text and EXPLAINING what it is you have done? Your current post is a mess to read and understand.
-
And?
Please don't make this so tedious.
-
So - how long does a user have to respond to a challenge? Can he just ignore it or must he respond in a certain time?
From what you say, you will have challenges stored in your db with a userid. That user logs in and runs a query script that pulls up a set of challenges containing his id. The script outputs a display of the challenges with enough info for the targeted user to decide what to do and he then clicks an Accept or Decline button next to that row's data.(An html table would be nice here.) Or you could just run the query for the oldest challenge and respond to it and then let the script produce the next challenge.
-
How do the users know that they have to check for challenges? Are these challenges targeted at certain users only?
So much you haven't told us.
-
All very well and good Zane, but the point was to steer the OP towards a more proper "database" approach.
-
What will you do with duplicate ip numbers? Kind of hard to prevent that with a text file as a database.
-
-
1. - Why a text file? Why not a db table? Do you paln on doing anything with this data? A table will be much easier to search thru.
2 - if you really want them on new lines, add a new line char.
$crlf = "\n\r";
Add this var to your output when you do the write.
-
What makes it modal if you don't have another script managing it? Sounds to me like just a hidden div.
-
Taking a guess at what you want to do.
Your anchor is calling a js function. That function s/b opening the modal window and calling a separate php script that populates it for you and goes away, leaving another script in the form tag of the modal window.
-
Not even close. Sit back - think about your problem and if you don't realize something think about what might be wrong and show us the essential part(s) of that so we can follow the process. Not bits and pieces and no names nor relationships.
- 1
-
I give up.
- 1
Display if user has message
in PHP Coding Help
Posted
Why are you fetching an object when the result is just a simple value? Try: