Everything posted by Anonimista
-
Refresh list from DB without refreshing entire page
I believe the OP uses 'classic' ASP' / VBScript, the first Google result for 'use ajax with classic ASP' is from W3Schools.
-
Do you use PHP namespace?
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.
- Music while working
-
Ms Sql Management - Sql Query - strange issue
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.
-
Declaring all variables at start of program
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."
-
My guest article on webdesignerdepot.com
Congratulations!
-
Using the Starkers theme in Wordpress
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
- Wordpress: Small Next & Previous posts problem
- Gone and done it!
-
mvc new link question
If you mean changing controller default action, try this article: Creating Custom Routes
-
My Beginners PHP programming PDF book A Preview
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.
-
My Beginners PHP programming PDF book A Preview
Maybe add an introduction that explains how to install PHP and run scripts.
-
Huge Array Of Words
There is a fairly large list on SourceForge: (I found it while looking into PHP spell checking.)
-
PHP PDO problem
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.
-
PHP PDO problem
Could you post a simple example that reproduces the problem?
-
Coding Battlecry
I just bang my head against my desk lamp a few times. It's much cheaper than kicking my computer.
-
PHP Inheritance Issue
You want the parent class to know if a child class has a certain method? Am I understanding your question correctly?
-
unexpected 'or' error?
Why not show the corrected code and provide a brief explanation?
-
I want the latest in each group but am getting the oldest
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
-
What does your username mean?
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.
-
am having problem with my search mysql script, pls help
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.
-
PHP or ASP.NET?
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)
-
Why does this not work?
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
-
Why does this not work?
What is your goal with using the COUNT function?
-
Which country are you?
Well, healthy or not, they just relocated me to Ghana.