milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Union count.

Details
Written by: Stanko Milosev
Category: MySQL
Published: 20 August 2008
Last Updated: 30 November -0001
Hits: 7141

Question is, how to get count records in union query?

For example, we have this query:

select count(*) from hdxbh_content
union all
select count(*) from slam_users

As a result, we will have two records:

count(*)
904
1


And we want to get result as one record, 905, how?

Like this:

select ((select count(*) from hdxbh_content) + (select count(*) from slam_users)) count

Taken from here.

UTF8 export.

Details
Written by: Stanko Milosev
Category: HeidiSQL
Published: 24 August 2010
Last Updated: 24 August 2010
Hits: 6516

When I tried to export database with UTF8 characters in one big file, and then open it in the UltraEdit, I received strange characters like:

ÄŤ

Instead of letter:

č

Solution is to change the font, like it is describe it here, and then open it with UltraEdit but where you will choose:

Format: 1250
Open as: UTF-8

Same is when you are opening the file from HeidiSQL.

PHP Strict Standards

Details
Written by: Stanko Milosev
Category: Joomla
Published: 09 February 2013
Last Updated: 09 February 2013
Hits: 5505

If you are receiving message like:

PHP Strict Standards: Declaration of ContentModelCategories::populateState() should be compatible with JModel::populateState() in \components\com_content\models\categories.php on line 19

Then in you PHP ini should be:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

and restart your iis

Xml in codeIs CodeHighlighter

Details
Written by: Stanko Milosev
Category: Extensions
Published: 12 November 2012
Last Updated: 12 November 2012
Hits: 5858

Finally I've found how to put xml or html tags in the CodeHighlighter. Post has to be escaped,

So convert ">" into "&gt;", "<" into "&lt;" and so on...

I have found also good online tool with which this is much easier to achieve:

http://www.freeformatter.com/xml-escape.html#ad-output

If I am writing Joomla! article without any text editor and if I want to show ";gt;", then I should write it like "&amp;gt;" :)

  1. CodeIs CodeHighlighter
  2. Call to undefined method JException::setQuery()
  3. CRUD with JTable
  4. Adding javascript to Joomla!

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 84 of 168

  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88