Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Depends on how dynamic you want it to be. But here's the pseudo. 1) Have a folder with 3 images, "image1", "image2", and "image3". 2) Assign a variable $image_num with a random number (1, 2, or 3). 3) When you load the image it should look something like:
  2. This site looks awful. Just a bunch of links, if I got there through a search engine I would leave right way. The only thing I could say looks good is the Z logo, and the top navigation.
  3. Sure, read this. Do you actually have a problem or error?
  4. Can you explain exactly what you're trying to do? First you asked: Doesn't really even make sense, at least to me. You can pass variables through the URL. Now you're talking about up time and monitoring MySQL ports... I'm lost ???
  5. Please read this first...
  6. I didn't understand half of what you just said. You need to have: $id = $_POST['id2']; at the top of your page before you submit.
  7. Yeah, show us the page where you get $_POST['id2']; I bet if you echo out $_POST['id2']; it's empty.
  8. Global variables is a very bad thing. They have been eliminated from the newest version of PHP. You may want to look at your global_vars and ensure they are not being used elsewhere to cause further problems.
  9. This thread is getting ridiculously long for this type of problem. Please do what I said 3 times now. Echo out the $sql so we can see the actual statement you're trying to execute..........................
  10. Yes, $PHP_SELF is probably a globar var. Try this:
  11. Yes, UPDATE, updates what's in the column. It would still show up in the affected rows.
  12. Please, echo out $sql! $sql="UPDATE general SET image='$consname2' WHERE id= '$id'"; echo $sql; die(); $query = mysql_query($sql)or die(mysql_error());
  13. Maq

    Query Question

    Do a JOIN. What's your question?
  14. Please echo your query like I said before... (You have 2 spaces between $consname2 and WHERE if that makes a difference.) $sql="UPDATE general SET image= '$consname2' WHERE id= $id"; echo $sql; mysql_query($sql)or die(mysql_error()); $query = mysql_query($sql)or die(mysql_error());
  15. $sql = "UPDATE interns SET Business_name = '$business', another_row='$foo', yet_another_row='$bar' where id = $id"; Forgot your end quote and semi
  16. The best way is to try it and find out. No. You can have the WHERE clause match anything that you want to update... Your syntax is more/less correct, please read this: Tizag - UPDATE Yes.
  17. Tizag - Good site for the basics. W3 Schools - The HTML standards with good tutorials.
  18. Can you please echo $sql; to make sure you have the correct query with valid values.
  19. $sql="UPDATE general SET image= '$consname2' WHERE id= '$id'"; mysql_query($sql)or die(mysql_error());
  20. I think you meant to say $money isn't defined... Try this: $money = 1; if ($total > $money){ $error = "You can't afford that."; error($error);
  21. 1) Those are exactly the same. 2) Total IS defined: $total = 10000 + $price;
  22. Use this code, let the page load, and VIEW SOURCE to see if there is any output being generated. $this_month=$_POST['which_month']; die(); ?>
  23. Too lazy to read the previous posts, so sorry if I'm being redundant. 1) Change the font. Boring... 2) Put some graphics on the homepage. 3) Create a footer. 4) Add some containers for the portions of text. Everything else looks good. I really like the header.
  24. Is this all the code? If so, you don't close this IF STATEMENT. if (!$validationOK) {
  25. Maq

    Porn Site

    Haha! It's funny if you read the first post then read the last 5 posts. I guess I saw it coming...
×
×
  • 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.