Jump to content

BlueSkyIS

Members
  • Posts

    4,268
  • Joined

  • Last visited

Everything posted by BlueSkyIS

  1. if either value is set, the button has been clicked. what you're seeing is the x and y coordinates of where the button is clicked. -BSIS
  2. ^^ Haha. I type too slow....or too much. date() takes a timestamp. you are getting the timestamp time(), but then you are trying to convert the timestamp to a timestamp again by using strtotime(). Remove strtotime(): echo date("d M Y H:i:s", $time); -BSIS
  3. cheers! I was stuck on that problem a looooong time ago. -BSIS
  4. Your single quotes are probably messing up your SQL. Try this: $query = "SELECT * FROM products WHERE clientid = '$memberid'"; -BSIS
  5. hm, could be simpler than that. Is the button inside FORM tags? -BSIS
  6. One way: $sql = "DELETE FROM tbl_transactions WHERE DATEDIFF(transDate,NOW()) > 1095; 3 x 365 = 1095. This doesn't account for leap year. -BSIS
  7. Maybe I'm missing something, but isn't the root folder of www.thisismysite.com and thisismysite.com the same folder, and also the same folder as that for mysite.com? It appears this is a single site with Aliases, not 3 separate sites. If so, I would expect Redirect 301 /resource1 http://www.mysite.com/resource1 in the shared directory to cause an error as it will never resolve. Assuming they all do share a common directory, I might use something like this: RewriteCond %{HTTP_HOST} ^thisismysite\.com$ [NC] RewriteRule ^resource1$ http://www.mysite.com/resource1 [R=301,L] RewriteCond %{HTTP_HOST} ^www\.thisismysite\.com$ [NC] RewriteRule ^resource1$ http://www.mysite.com/resource1 [R=301,L] Please let me know if this is wrong! -BSIS
  8. First, I always put an or die() after a mysql_query, like so: $result = mysql_query($sql) or die(mysql_error()." -- $sql"); This will die with the MySQL error and the sql statement that caused it. Now, looking at your SQL, I see two quoted $_POSTs, which is probably what's messing it up, or at very least it won't give you the result you expect. Try this instead: $sql = "SELECT id FROM user WHERE username='".$_POST[username]."' And password='".$_POST[password]."'"; -BSIS
  9. To elaborate: Data can't be sent to the browser before header("Location"). If you need to send the user to a page based on the result of some processing, process the data first, then send the user to the location. Don't try to display any information and THEN send the user, because by definition you've already sent the headers and you can't send them a second time. -BSIS
×
×
  • 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.