Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. The command I gave you saves ports.txt in the current directory you're in. You have to specify what directory you want to save it in. i.e. netstat -lnptu > /home/tim/ports.txt This would save ports.txt into my home directory. You can hard code a path but that's dangerous if you ever use this script on a different server.
  2. I think you can just do: netstat -lnptu > ports.txt
  3. You may want to check out the PHP Applications section, it has threads related to this question.
  4. Try to integrate your forum into your site a little better, there are no links back and it's not styled to your site theme. Footer is up and to the right, looks weird. IMO it should be centered. I logged in and glanced around but didn't know how to add media...?
  5. np, with a syntax highlighter it would be a lot easier to pick up on these kind of errors. Please mark as [sOLVED]
  6. And your form is posting to: action="insertquestion.php"> while you're showing us
  7. Take the ; out of the end of your if statements... i.e. if ($totdebt should be: [code]if ($totdebt You also have random '{' after your $todebt variable, the closing one as well.
  8. Look at: mysql_insert_id()
  9. I'm serious kind of guy... Lol yeah of course I'm serious, there's usually an easier way of doing something.
  10. Try: $exp_total = "SELECT SUM(amount) FROM $tbl_name"; $result = mysql_query($exp_total) or die(msyql_error()); $row = mysql_fetch_assoc($result); Print "Total Expenses ".$row['SUM(amount)']."";
  11. Banning your mom? That's just low... Can't you give her a max amount of messages per day or something!
  12. SELECT SUM(amount) FROM amounts;
  13. Why don't you use something like osCommerce? It has all the features and you are able to customize it. This also seems like it should be in the freelance section.
  14. We've already mentioned FileZilla multiple times...
  15. Take one out, doesn't matter which one... there's no point to have 2 anyway, they do the same thing.
  16. You have 2 else statements; lines 67 & 73. You can only have 1.
  17. No, when all said and done it's just storing a string (varchar), so that's exactly what you have to give it.
  18. Or you can just use double quotes : $field[] = "http://www.websitename.com/Images/{$carInfo['stock_num']}_01.jpg,http://www.websitename.com/Images/{$carInfo['stock_num']}_02.jpg,http://www.websitename.com/Images/{$carInfo['stock_num']}_03.jpg";
  19. if (isset($_POST['submit'])) { if(isset($_POST['radiobutton'])) { $page = $_POST['radiobutton'] . ".php"; header("Location: $page"); } } else { echo "you did not select a seating section!"; } ?> </pre> <form id="form1" name="form1" method="POST" action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>"> Select Your Seating: Blue Seating Pink Seating Green Seating All seating includes around the clock access to the moshpit. </form> <br><b
  20. Can we see your SQL code? And the code that generates the $field[] array?
  21. It's hard to follow all of your brackets, you should have a syntax highlighting editor to easily catch your errors. Anyway, you need to escape your double quotes in the $text variables for the queries. You also don't need to start $text off with <?php and end with ?> because you're already echoing it within those tags.
  22. Maq

    Login

    Try changing this: $sql=mysql_query("SELECT * FROM pilots WHERE username='$username' AND password='$enc' AND admin='yes' || admin='hub'"); to this: $sql=mysql_query("SELECT * FROM pilots WHERE username='$username' AND password='$enc' AND (admin='yes' OR admin='hub')");
  23. If you use double quotes inside double quotes you have to to escape them. I personally like to use single quotes in double quotes, makes life easier. should be
  24. Select database with the table Click on the "SQL" tab run this query: RENAME TABLE tbl_name TO new_tbl_name
×
×
  • 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.