Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
You need to add the code to your javascript. If you don't know how to write javascript, you need to either learn or hire someone to do it. If you make an effort, we can help you debug it. But you haven't written any code for this problem.
-
Yeah I don't see any code that would generate SQL containing a "VALUES". All you have shown us is a SELECT.
-
What doesn't work the way you expect? What debugging steps have you taken? Are you using Chrome developer tools or Firebug?
-
Moving this since your question is not with specific code help.
-
Check if that field has a string entered. Don't forget to include PHP validation on the backend, you can't rely on JS validation only.
-
Google "MySQL JOIN". Looking at your code further you may not need to join them. Why would you store "kills" and "deaths" in a table called skillsoverall? Is that supposed to be KILLS not SKILLS?
-
It depends on what you mean by "doesn't work", but it sounds like your live server doesn't have short tags enabled.
-
Yeah, why do things the correct, easy way, when you could hack at it for weeks and come up with something that sort of works?
-
https://www.google.com/search?q=mysql+automatic+date Please don't use PHP to set the date.
-
You should still use a cron job. Determine how long ago someone had to have registered in order to be eligible to get tickets the next time, and update only users who registered before then.
-
You'd need to use AJAX. Check out jquery
-
A. Do one query, joining the tables B. see my signature on handling mysql errors
-
accessing a variable from procedural through a class
Jessica replied to 1internet's topic in PHP Coding Help
You'd have to pass it to the method. -
Write to a file I guess. A database is the right way. Unless you only want it to be there for the time you're on the site, then you'd use a session. You didn't ask a very good question.
-
Store the comments in a database.
-
Using FTP would be a lot less bother than using a browser visiting a PHP script. Are you looking for version control?
-
For learning what a function does...
-
http://www.php.net/manual/en/datetime.diff.php You'll probably want to switch to storing your dates in ISO format, YYYY-MM-DD.
-
That is in fact what the manual is for.
-
Really you probably don't need ANY of this at all. Why do you have a "new" column? Use the date...
-
Uhm, you don't need to select the rows then do an update. You can just update them.
-
Help with boolean variables, and going in and out of <?php ?> tags
Jessica replied to AureliusR's topic in PHP Coding Help
If the form field is in the form it will be posted and if its empty it will be an empty string '' not truly empty. So you need to use strlen or other validation besides empty on your form fields.- 9 replies
-
- booleanvariables
- if
-
(and 1 more)
Tagged with:
-
Help with boolean variables, and going in and out of <?php ?> tags
Jessica replied to AureliusR's topic in PHP Coding Help
Probably, I didn't look at anything besides that one single = before coming back here. Give it a shot, it can't hurt to try.- 9 replies
-
- booleanvariables
- if
-
(and 1 more)
Tagged with:
-
Help with boolean variables, and going in and out of <?php ?> tags
Jessica replied to AureliusR's topic in PHP Coding Help
= is assignment. == is comparison.- 9 replies
-
- booleanvariables
- if
-
(and 1 more)
Tagged with: