- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
Re: ^(?!.*\.{2})[a-zA-Z0-9][a-zA-Z0-9_. ]+(?!\.)$ I'm not sure if this is what you require, but you weren't using a negative lookahead to check anything that "didn't" end with a period. You were looking for a positive match for anything that wasn't a period. | |
Re: Kind of have to agree with diafol. Google is your best bet. However, as you have posed this question within the PHP section; http://dev.mysql.com/doc/refman/5.1/en/select-into.html You can use a Mysql query to store your database in a file. ![]() | |
Re: $search = preg_replace('/\s+/','',$search); I may be wrong here, but doesn't \s remove all digits as well as word characters? If you're trying to query a number with mysql, you may be inadvertently making $search empty. $search = ereg_replace("[^A-Za-z0-9]", "", $search); You seem to be replacing numbers here too. You don't … | |
Re: Functions have local scope by default for values declared within them, so add the following: global $class1; global $class2; global $class3; Before you create your objects. This will give them global scope, so if you need to access them outside of your function, you can. If you don't need to … | |
Re: Sounds like an error with your SQL syntax; $sql_online_mem = "SELECT membername FROM ` trade_messengerd` WHERE status = 'Online'"; You appear to have an unintended space where trade_messengerd starts in your query where you have enclosed it. $db_sql_mem = mysql_query($sql_online_mem) or die(mysql_error()); Modify your code to include that. It may … |
The End.