Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You probably don't want to use explode for this task. Rather use XPath or Regex.
  2. Maq

    Hello

    Sounds like you're in the right place. Welcome!
  3. Hi and welcome!
  4. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=340322.0
  5. rohitb, in the future, please place OR tags around your code.
  6. There are a bunch of different ways to do this, I prefer something like this: $s = "123.45.67.89:1234"; $pieces = explode(":", $s); echo "IP: " . $pieces[0]; echo "Port: " . $pieces[1];
  7. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=340301.0
  8. You posted in PHP Regex, did you really want that? I'll move it, have you tried their website? http://www.plogger.org/forum/
  9. I remember pointing this out in another thread, don't use the assignment operator but the logical operator '==' to compare values. Your current condition will always evaluate to true.
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=340223.0
  11. Is the data consistently in that format?
  12. You shouldn't be selecting all the data for every request. You only need to figure out how many total records there are 1 time, then after the user clicks 'next', 'previous' or a specific page you send back what value to start on. Here is a good tutorial on pagination - http://www.phpfreaks.com/tutorial/basic-paginatio
  13. is there a 4 qual signs? No.
  14. Is PHP the most powerful and popular server-side scripting language? You probably want (==): A single equals sign assigns a value, two will compare, 3 will compare values as well as types.
  15. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=340194.0
  16. The resource id is correct b/c that's what mysql_query() returns, which is good because that means your query is valid (no necessarily correct though). Like mentioned before, we need some more code.
  17. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=340189.0
  18. You're changing your query around... First it was: WHERE status=1 Now it's: AND status=1
  19. What type is the status column?
  20. Oops, sorry take of the double quotes for the query strings.
  21. It means the 'wipit' key doesn't exist (i.e. $_GET['wipit']. Show us the relevant code.
  22. Does your file have a .php extension?
  23. Added some debugging code: // total of items if($this->total_items if($this->table_key) { $sql = "str_replace($bd_fields,'count('.$this->table_key.')',$this->get_sql_select()).$this->get_sql_where(false)"; echo "IF QUERY: " . $sql; $result=mysql_query($sql) or die(mysql_error()); } else { $sql = "str_replace($bd_fields,'count('.$this->sql_fields[0].')',$this->get_sql_select()).$this->get_sql_where(false)"; echo "ELSE QUERY: " . $sql; $result=mysql_query($sql) or die(mysql_error()); $this->total_items=mysql_fetch_row($result); $this->total_items=$this->total_items[0]; } mysql_free_result($result); }
  24. That usually means your query failed, which means mysql_query() returned false, which means $result is false, hence your error.
  25. Are you sure the variable 'data' from the $ct object is an array? Show us how it's being generated.
×
×
  • 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.