Jump to content

kir10s

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kir10s's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I just encountered the same error message. I echo'd the query string, so I could see it exactly as the code saw it. Then I copied and pasted the code into the sql window of my phpAdmin panel. It pointed out the mistakes quite quickly
  2. Would you be able to post the code so I can run it? Thank you!
  3. Thank you! This was what I was feeling too but appriated the validation. The closest thing I got to this was: function get_server_software($domain) { $fp = fsockopen($domain, 80, $errno, $errstr, 1); if (!$fp) { return(""); } else { fputs($fp, "HEAD / HTTP/1.1\r\nHost: " . $domain . "\r\n\r\n"); while (!feof($fp)) { if (preg_match("/\bServer:/", $server = fgets($fp, 256))) { fclose($fp); return(substr($server, 8, -2)); } } fclose($fp); } } Which returns the software the server is using, but this can be ambiguous because if I am not mistaken Windows can run all three...?? or at least for sure aspx and asp.. Kind of a funny side note.. if you use this code and send it to a site hosted by hostica.com, you will be returned 'NOYB' which I believe to be an acronym of None of your business. Try using using aaadiving.com if you want to try it. Thanks for your support! Kirsten
  4. I think your error message is saying you do not have a connection established to your database. Look at your query on line 47, it should end with something like mysql_query($sql, $conn)
  5. 1)You might check what keys you have set within your table. You may be trying to write a record, and since the key is already being utilized, it is kicking the update out. 2)I might suggest that you write your query in a sql string, then echo the string so you can see it. Then copy and paste it into the sql window of your php admin panel. It gives you more information as to what the error may be... such as I would imagine there is a way to echo the error within the code. Maybe someone else can comment on that
  6. I have a site where customers may download a sample page for their website. They are given the option of asp, php or aspx... my client wants a form button which when clicked, will go to the hostsite of the customers and determine which technology is being supported, so it can sugguest the correct format. Any suggestions on how to do this? Thank you in advance
×
×
  • 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.