Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
He posted his solution. Probably some sort of configuration having to do with the platform was necessary.
-
Use simpleXML to loop through the 'string' elements and compare the text to see if it contains the desired name. If it does, than don't copy it, if it doesn't, than copy.
-
Nice, but you still have to create your mysqldump command.
-
I hope no one is using anything like HTML5 13 years from now...
-
Porkie, maybe you should read some documentation on proper syntax and formatting before you proceed. These are basic syntax errors that you need to be aware of. I would advise learning a good foundation before advancing to anything else.
-
This occurs multiple times. Don't put semi-colons after IFs.
-
Try: $count = "SELECT COUNT(id) FROM gg_video"; $result = mysql_query($count); $row = mysql_fetch_array($result); echo ''; echo ''; echo "Currently {$row['COUNT(id)']} Videos";
-
Do you want to show the query or the returned values?
-
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
Maq replied to coubury's topic in MySQL Help
That error usually signifies that your SQL statement is not valid. Temporarily add an or die() clause to see what the error is. $result = mysql_query($sql) or die(mysql_error()); Please don't post your entire code. You need to also use tags, not quotes. -
Fatal error: Call to a member function fetch_assoc() on a non-object
Maq replied to peter_anderson's topic in PHP Coding Help
I think this line should be: while ($row = $sql->fetch_assoc($result)) { $sql is your object, which is an instance of the class db. $result is the resource id that was returned from: $result = $sql->query($query); It doesn't make sense to invoke a method from $result. Instead you should give the resource id ($result) to the fetch_array() method which comes from the 'db' class. -
number_format
-
Regardless, it's still a good idea to keep track of IPs.
-
Are we missing something...
-
Have you tried: $_SERVER['REMOTE_ADDR']
-
See this code here? $conn = mysql_connect($host, $username, $password); mysql_select_db($db); ?> What is in '$db'? You never assign a value to '$db' so how is mysql_select_db suppose to know what database to select? Same with the parameters in mysql_connect, I fail to see where you assign those values as well. I'm not sure why you didn't receive errors for that first.
-
You can just download cygwin and install the desired packages... Have you tried to recursively 'grep' a directory? Have you used Window's version of 'locate' (I guess that would be find)? Due to the structure of the filesystem and it's pure mass, they take damn near forever. Yes it does, ones much slower than the other. I'm not trying to bash Windows, I use it at home all the time, but my argument is geared towards developers. Linux comes native with almost all the tools you need to develop with and the fact that you have control over your whole system makes you more efficient.
-
Why aren't you using CSS or a table?
-
Yes, support is a brimming concern. The only resource for support are forums like these. So if you're in a development environment you better know what you're doing, although most distros have package managers that handle dependencies. I concur. I know they started selling Dell machines with optional Linux (Ubuntu) OS.
-
Yeah, but running a VM with Windows kind of defeats the point as far as I'm concerned. Legally you would still need a license and then there is the performance and resource usage overhead with running two operating systems simultaneously. I've never liked Wine very much. I prefer to run my applications natively. I think we can agree it all depends on what you need and are using the machine for.
-
WINE can run Steam and Photoshop BTW. You can also easily set up a virtual machine to run whatever Windows you want. There's no need to reboot anything if you set everything up correctly. But I do agree, if you are, for example, a graphic designer then you would want a Mac or w/e, and there's no need to use Linux. Don't get me wrong, I have Windows on my home desktop specifically for gaming. My argument was geared more towards the developer (even though I didn't directly state that), although you can use Linux for just about everything, including an anti-virus.
-
Why worry about all that petty shit? Applications that constantly scan and monitor bog down your system. There are very few applications that aren't compatible with Linux or aren't available in open source. So someone with a brain and common sense would choose Linux. This is especially true if you're a developer. Features such as, 'grep' and 'locate', save much time and aggravation, and are almost worth getting Linux solely for those 2 features, not to mention a multitude of others.
-
Linux. You should add that to the list...
-
Use MAX() to and GROUP BY to get the highest income for each gender.