Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Just as I suspected, the error lies between the chair and the computer...
  2. I'm not really sure, I did a google search for you and found this link: microsoft CGI header error Are you using another CGI script you're aware of? If you are, they said put this in it. print "HTTP/1.0 200 OK\n"; print "Content-Type: text/html\n\n\n"; I could be entirely wrong...
  3. Try this just to make sure... $limit = $_POST['limit']; $value = $_POST['value']; IF ($value != ""){ $cl = mysql_query("SELECT * FROM `data` WHERE `$value` = 'yes'")or die(mysql_error()); $num = mysql_num_rows($cl); } $num = 4; $limit = 3; IF ($num > $limit){ Echo 'It is workin'; }
  4. Check out Count(*). It allows you to collect the number of records for your desired condition. There's plenty of examples online.
  5. Do you get any errors? What is the output? And, as zanus said, post the entire script there's obviously something else wrong...
  6. Could you post the entire code?
  7. Seems like there are so many young people on these forums.  I mean I'm only 22 but I keep seeing kids like 15-20 years old with more years experience than I have...  :P
  8. Maq

    [SOLVED] columns

    You should start your table above the while loop and end it after the while loop.
  9. The double breadcrumbs issue happens randomly but I've noticed it always appears for replies. Would you like me to keep track of when this occurs for you?
  10. Correct me if I'm wrong, but I think you're forgetting a single quote towards the end: $query="SELECT * FROM Property ORDER BY PROPERTY_ID WHERE Property_suburb LIKE '%{$_POST['search']}%'";
  11. Yep, if you use GET to pass your database name via URL and you're prone for SQL injections. Plus, people have more information about your database, which in my opinion, isn't bad.
  12. I don't want people knowing the names of my databases, especially hackers?
  13. Are there errors? What's happening?
  14. It's hidden from the URL.
  15. Then you need to $_GET a variable which isn't safe because you're passing your database via HTTP. You should $_POST it in a hidden type, which is basic HTML. I don't see your problem, can you post your code?
  16. Yes, thorpe is right, as always. Look at the link it shows you how to do this. This is something that needs to be self taught. These forums are for help here and there, unless you want to post in the freelance section and have someone do it for you...
  17. Try: $query="SELECT * FROM Property ORDER BY PROPERTY_ID" WHERE Property_suburb like '$_POST['search']'";
  18. Yeah, well holiks registered back in '03 so much has probably changed, as I've only been here since this year. Go to that sticky link I provided, it explains a lot of this.
  19. First of all that link is 404'd. Do you have any knowledge of HTML?
  20. I know cause I used the code tags and started it with "<?php". Can you echo the $variable5 to make sure there's a value?
  21. I think there is a sticky for this stuff, but my time shows up correctly, idk... Sticky Link
  22. So it's probably the script. Please post it. What does this script do? Are there any errors? Without this information we really can't help you.
  23. Try something like this (not tested): $user="root"; // usually $host="localhost"; // usually $password="your_password"; $database = "video1"; $connection = mysql_connect($host,$user,$password) or die ("couldn't connect to server"); $db = mysql_select_db($database,$connection) or die ("Couldn't select database"); $query = "SELECT Name, Code, Uploader, Description FROM stuff "; $results = mysql_query ($query) ; while ( $row = mysql_fetch_array($results)) { echo $row['Name']; echo $row['Code']; echo $row['Uploader']; echo $row['Description']; } Of course you have to create the HTML part.
  24. I didn't see this mentioned, but maybe it was, what are the major differences/upgrades? Looks pretty much the same except for minor CSS modifications...
×
×
  • 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.