Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anonimista

Members
  • Joined

  • Last visited

Everything posted by Anonimista

  1. I believe the OP uses 'classic' ASP' / VBScript, the first Google result for 'use ajax with classic ASP' is from W3Schools.
  2. I am fully aware of the advantages of using namespaces, but I'm interested to find out how many of you use them in your day-to-day work, for what types of projects etc. I did a quick research and Zend and Symfony use namespaces, while CodeIgniter, CakePHP and YII don't. Thanks in advance.
  3. Lately, this:
  4. Here is a possibly related article: Why can't we have column alias in ORDER BY? I don't know why the query works against one database but not the other, maybe different compatibility level, but I can't test it right now.
  5. Really Bad Reasons to Use Global Variables "What's a 'local variable'?" "What's a 'data member'?" "I'm a slow typist. Globals save me keystrokes." "I don't want to pass it around all the time." "I'm not sure in what class this data belongs, so I'll make it global."
  6. I believe it is like this (only starting with WordPress): - Register the sidebar in your functions.php: if(function_exists('register_sidebar')){ register_sidebar();} - in sidebar.php check if any widgets are added to the sidebar and if not display the static sidebar (dynamic_sidebar() displays the widgets): <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?> <li> <h2>Static sidebar...</h2> </li> <?php endif; ?> - include the sidebar in index.php: <div> <?php get_sidebar(); ?> </div> Like here: See How Easy It Is To Widgetize WordPress Themes
  7. Too bad nobody responded to this, if you get it to work please post it here.
  8. Good luck!
  9. If you mean changing controller default action, try this article: Creating Custom Routes
  10. Yes, I've seen more than a few bloated IT books. Probably a few simple steps that show the reader how to get everything they need to run the code would be enough.
  11. Maybe add an introduction that explains how to install PHP and run scripts.
  12. There is a fairly large list on SourceForge: (I found it while looking into PHP spell checking.)
  13. Is the code failing only with that one child class? You could try posting a stripped down version of your parent and child class and the minimum amount of code that reproduces the problem, something that can be tested.
  14. Could you post a simple example that reproduces the problem?
  15. I just bang my head against my desk lamp a few times. It's much cheaper than kicking my computer.
  16. You want the parent class to know if a child class has a certain method? Am I understanding your question correctly?
  17. Why not show the corrected code and provide a brief explanation?
  18. I believe you need to use a subquery or a join (on the same table) to get the correct results (like in this MySQL article or this Stack Overflow thread), you first get the row with the latest date for each group in the subquery/join and use the returned rows in the main query. Here is my take on the query: SELECT t1.`ID`, t1.`NAME`, t1.`GROUP`, t1.`DATE`, MAX(t1.`DATE`) FROM `my_table` AS t1 JOIN (SELECT t2.`GROUP`, MAX(t2.`DATE`) AS `MAX_DATE` FROM `my_table` AS t2 GROUP BY t2.`GROUP`) AS t3 ON t3.`GROUP` = t1.`GROUP` AND t3.`MAX_DATE` = t1.`DATE` GROUP BY t1.`GROUP`, t1.`DATE` ORDER BY t3.`MAX_DATE` DESC
  19. I'm here incognito and I believe several other anon-like aliases had already been taken when I joined here. It doesn't mean anything it just resembles 'anonymous'. I like it though and have used it in other places since.
  20. Do you get any errors? You assign your query string to $select but use $sql_select in your mysql_query() call. What does your SQL statement look like when you echo it? You use $min_price and $max_price to construct $where but from your code it looks like you should be using $min_price2 and $max_price2.
  21. Not much to add, just a personal experience. I had the same dilemma ~six months ago and started ASP.Net first, but just couldn't wrap my head around it (although C# itself wasn't bad), then switched to PHP and it went much smoother (this is not to say I'm any good at it)
  22. If you are trying to measure your site popularity based on the number of visits over a period of time, try something like this: SELECT Website.SiteID, (COUNT( Comments.CommentID )) / ( DATEDIFF( CURDATE( ) , Website.DateAdded ) ) AS PopularityIndex FROM Website INNER JOIN Comments ON Comments.SiteID = Website.SiteID GROUP BY Website.SiteID ORDER BY PopularityIndex Desc
  23. What is your goal with using the COUNT function?
  24. Well, healthy or not, they just relocated me to Ghana.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.