ニュース

Excelでの経費精算を支援するPHP+MySQLアプリ 前回 まででAzure上でPHPとMySQLを動作させる環境が整いましたので、 今回はその環境を使って簡単なサービスを作成してみます。 今回作成するのは、 経費精算の経理業務を少しだけ楽にするアプリケーションです。
今回はPHPとMySQLの接続にPDOを利用する方法を記載します。 PDOとは PHPからMySQLへ接続する方法はいくつかあるのですが、PDOはPHP 5.1から実装されたデータベース抽象化のためのクラスです。 説明するとかなり長くなるため、説明はnoteでは省きますので下記記事あたりを読んでみてください。 【PHP ...
はじめに 「Web開発を始めたいけど、ApacheやMySQL、PHPってそれぞれどう導入すればいいの?」 「統合パッケージで済む場合もあるけど、Linuxで自力インストールして学ぶのも大事!」 LAMPとは、Linux + Apache + MySQL + PHPの頭文字をとったWebアプリの基本構成です。サーバーサイドプログラム(PHP)と ...
Hello readers,this blog tell the difference between the datetime vs timestamp in mysql and php.1> datetime and timestamp are used to store datetime and then retrieve the datetime back.2> ...
MySQLのオプションでexplicit_defaults_for_timestampというオプションをご存知でしょうか? これはTIMESTAMP型の特定の非標準動作を有効にするかどうか、およびTIMESTAMP型のカラムでNULL値の処理を有効にするかどうかを決定するオプションになります。
Php script to store date and time to mysql timestamp columne: What is recorded as '2015-03-04 23:59:37' in timestamp col (you can also manually input the value from phpmyadmin, the field must be ...
I'm a MySQL noob. As such, certain things confuse the heck out of me, due to a general lack of experience. Here is what I am trying to accomplish:I want to calculate the difference, in days ...
mariadb, mysql and typeorm They have the same results and seem to use the same approach. I suppose that typeorm relies on the driver. The DATETIME column is handled properly and I get the expected ...