Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Percentages come down to basic arithmetic, which MySQL can handle. A 30% margin is simply: .3 x cost.
  2. Maq

    Hi

    Hi Ed, welcome to the community
  3. Is that a new browser?
  4. Since your echo uses double quotes for the primary string then you must either escape the double quotes inside, use single quotes or use heredoc. For example, I would use single quotes for the attribute values: Home Page
  5. I'm not sure, that's weird.
  6. Pass in the user id when you submit the form to edit their profile. You should already have this information.
  7. Looks like you're assigning $id to the session variable 'id' rather than passing it from the selected user.
  8. Yes. Like Mabismad said: The phpinfo() output tells you if/which php.ini that php is using as the Loaded Configuration File value.
  9. No on is going to go through almost 50k worth of code. Please post the relevant code and tell us what you've done to isolate the problem.
  10. Mine is the same as you Pika. crmamx could you post a screen shot?
  11. Never heard of this problem before. I would just re-install and see if that fixes it.
  12. Please use tags in the future.
  13. Click the link, there are plenty of examples.
  14. Are you receiving the same error messages?
  15. Maybe not most, but still cause issues. Where did you hear that short tags are encouraged in PHP5/6? I don't believe that at all. Actually, short tags were going to be deprecated in PHP6 but they decided against it for reasons I do not know.
  16. Post the current code you have (I know you have some ;P).
  17. Yes - REPLACE INTO.
  18. Different from what? You haven't included enough information for anyone to really be able to help you. I think he meant if there are no matches in the DB.
  19. Don't use die for the message, handle it properly: $messages_query = mysql_query("SELECT * FROM messages WHERE id='$message_id' AND recipient='$username'"); if(mysql_num_rows($messages_query) > 0) { echo "In the database, verified authorization."; } else { echo "No rows returned, denied."; //Redirect or whatever }
  20. Edit: ^ That
  21. You should start a new thread for this question. Provide the current code and relevant details.
  22. If you take the condition WHERE out then it will UPDATE every single record in your DB (assuming you have some). If you want to add records to the table then use INSERT not UPDATE.
  23. Still confused. You just said there was nothing in the database. UPDATE is used to alter values of a record that already exists, in other words, has already been INSERTed. INSERT is used to put a brand new record in the database.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.