-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
I can't for the life of me move from mysql_* to prepared queries
ginerjm replied to r3wt's topic in PHP Coding Help
Using MySQL_result was a needless resource eater and you should not have been using it in this particular case at all. If you are going to process the whole record you should be grabbing it in one call. How you 'catch' it is easily accommodated by using php's 'list' function which would have given you var names to use and you wouldn't have to have written your code this way. And despite your misgivings about your existing designs, you will have to migrate away from MySQL_* functions in the near future. Time to BTB. -
You really don't want to use JS to issue an error message from within your php script. That's why header doesn't work, which you would probably know if you had error checking turned on. Design your script to re-issue your page with an error message area that you can then populate with messages and re-display the page so that the user can make corrections.
-
This forum helps those who help themselves. Being given already written code does NOT help you learn - it enables you to say you learned. This forum certainly can and does criticize - especially for those who show no inclination of learning how to write php or English. This forum also provides invaluable help for those who show us their code and ask for help with a clear problem. If you ever want to learn php and try and get a job with it, I suggest learning to write a clear sentence with properly spelled complete words - it will help you get that interview.
-
We were all newbies once. Then we started learning by reading and writing code. THEN we asked for help. You have a client causing you do this thing that you have no idea how to do? You just might want to start learning English if it's your native language.
-
If you read the manual you'll get a complete understanding of how an & works in front of a variable name in other circumstances as well.
-
You know - the PHP manual is just great for finding out how to do things. A quick check in there found this: foreach ($r as &$result).... to update the value clause of a foreach statement.
-
Need Result Coading for my school website plzz
ginerjm replied to akraees's topic in PHP Coding Help
Sounds to me then like you took on a project that you weren't qualified for. -
try codeacademy.com Good luck!
-
Before you try to do any programming it would be good for you to do some reading and take the time to learn how php works and learn the basic idea of php coding. I'm not going to give you this little tiny piece of help when you obviously will only need more if you don't begin to educate yourself properly.
-
Need Result Coading for my school website plzz
ginerjm replied to akraees's topic in PHP Coding Help
to WebStyles: - love it! to the slacker: If this is a homework assignment, I suggest that you either go back and read your books and practice on your previous assignments so that you can get to the point where you can keep up with this and future assignments. Either that or just quit the course and take the F. -
I already gave you your answer - why do you give us all this code that nobody in their right mind is going to wade through?
-
You have both php code and plain old html here. Did you want to separate them by closing your php perhaps?
-
Now I see. But - Mac_Gyver has already answered you.
-
How about saving us some time and showing us the specific code that typifies your problem? I hate wading thru other's code without understanding anything that is going on.
-
Need Result Coading for my school website plzz
ginerjm replied to akraees's topic in PHP Coding Help
Probably not. When you can write decent English, then try programming. -
Well, camelCase is what got the OP in trouble here. My preference is to keep 'em short and use _ scores. I'm wicked with that 3rd finger.
-
My pet peeve about (inexperienced?) PHP programmers. Why use caps when you don't have to? Consequently I'm always on the lookout
-
I suspect it is because of your habit of using capitals in naming your variables. IMHO a very bad habit. $mailsent is the culprit. I think you meant to write $mailSent.
-
Get rid of the extra stuff like the <a> tags and the <font> tags and make this just about doing your query and displaying those results. Once that is working you can add the pretty stuff later. Oh - and show the code once you make those changes.
-
Your nums are showing up in the first column aren't they? Add a "<td> </td>" in front of the td for the num
-
And this works?
-
Form not Updating new password in database
ginerjm replied to SalientAnimal's topic in PHP Coding Help
Then the OP has a short memory since his first test is whether the password element is ''. -
Form not Updating new password in database
ginerjm replied to SalientAnimal's topic in PHP Coding Help
So why do you make a test against 'password' in the code that processes the form? -
Form not Updating new password in database
ginerjm replied to SalientAnimal's topic in PHP Coding Help
OK - after I cleaned up your code so I could make sense of it, I see that you have no submit button. Apparently you are using JS to submit your form and so now you have to look at it and determine why the form's password fields are empty. Must be something you are doing in the JS function that you call in 'resetformhash' Question. Why all the divs? Do you really need two divs to enclose one input field? -
Form not Updating new password in database
ginerjm replied to SalientAnimal's topic in PHP Coding Help
Can you just show us the ONE form that provides the information being displayed in your array dump? So much jumbled together html/php code to look at in your first post that it is hard to know what's what.