WinBinder

blogroll, php No Comments »

WinbinderWinBinder is a new open source extension for PHP, the script programming language. It allows PHP programmers to easily build native Windows applications.

MySQL GUI Tools

blogroll, mysql No Comments »
  • MySQL Administrator
  • MySQL Query Browser
  • MySQL Migration Toolkit

http://dev.mysql.com/downloads/gui-tools

  • MySQL Workbench (MySQL Workbench is a next-generation visual database design application that can be used to efficiently design, manage and document database schemata.)

http://dev.mysql.com/downloads/workbench

Play Poker

blogroll, games, poker No Comments »

My Royal Flush

games, poker 1 Comment »

p1

Get visitors IP

php No Comments »
    $ip = $_SERVER['REMOTE_ADDR'];

mysql_insert_id

blogroll, mysql, php No Comments »
       mysql_insert_id()

http://php.net/manual/en/function.mysql-insert-id.php

mysql_affected_rows

blogroll, mysql, php No Comments »
       mysql_affected_rows()

http://php.net/manual/en/function.mysql-affected-rows.php

GetLocalUserName (Windows, Lazarus)

apps, lazarus, pascal, win No Comments »
function GetLocalUserName : string;
var
    Buffer : array[0..255] of char;
    Count : DWord;
begin
  Count := 256 + 1;
  GetUserName(Buffer, Count);
  Result := string(Buffer);
end;

Download example
Download source

lazarus + firebird embedded step by step project (`Hello World tutorial`) //Win32

apps, lazarus, pascal 7 Comments »

1. Download Lazarus and isntall

2. Download and install FireBird

Read the rest of this entry »

simple mysql trigger examples

mysql No Comments »
#drop trigger
DROP TRIGGER `TRIGGER_NAME`
 
#auto DateTime, Date, Time
CREATE TRIGGER `TRIGGER_NAME` BEFORE INSERT ON `TABLE_NAME`
 FOR EACH ROW SET NEW.DATEFIELD = NOW()
 
#insert something in another table
CREATE TRIGGER `TRIGGER_NAME` AFTER INSERT ON `TABLE_NAME`
 FOR EACH ROW
  INSERT INTO another_table SET some_field = NEW.fieldfromparenttable, text_field = 'sometext'
 
#if statement
CREATE TRIGGER `TRIGGER_NAME` AFTER INSERT ON `TABLE_NAME`
 FOR EACH ROW BEGIN
  IF NEW.Type = 0 THEN
    INSERT INTO another_table SET ParentType = NEW.Type;
  END IF;
 END
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in