Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. He posted his solution. Probably some sort of configuration having to do with the platform was necessary.
  2. 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.
  3. Nice, but you still have to create your mysqldump command.
  4. Check out: mysqldump.
  5. I hope no one is using anything like HTML5 13 years from now...
  6. 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.
  7. This occurs multiple times. Don't put semi-colons after IFs.
  8. Mind sharing?
  9. 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";
  10. Do you want to show the query or the returned values?
  11. 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.
  12. 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.
  13. number_format
  14. Regardless, it's still a good idea to keep track of IPs.
  15. Are we missing something...
  16. Have you tried: $_SERVER['REMOTE_ADDR']
  17. 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.
  18. 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.
  19. Why aren't you using CSS or a table?
  20. 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.
  21. 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.
  22. 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.
  23. 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.
  24. Linux. You should add that to the list...
  25. Maq

    Popular Anwser

    Use MAX() to and GROUP BY to get the highest income for each gender.
×
×
  • 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.