koneksi php ke mysql

bagaimana cara mengambil data/isi database pada mysql ke web?

ketika saya masih buta tentang hal ini, saya befikir “sepertinya rumit”, tapi dengan niat belajar dan membaca materi dari kampus maupun internet ternyata itu sangat mudah, lebih asiknya lagi kita dapat memadukan dengan kode-kode program agar lebih mudah dalam membentuk interfacenya.

mau tau caranya? simak dan praktekkan langkah-langkah berikut ini.

saya menggunakan aplikasi yang 3 in 1 yaitu xampp. kenapa xampp? karena sudah terdapat aplikasi web server, mysql dan php didalamnya dan kesemuanya free alias tidak bayar. bagi anda yang belum memilikinya, silakan download gratis disini http://www.apachefriends.org/en/xampp-windows.html

well, saya asumsikan xampp telah terinstall dengan baik. langkah pertama kita membuat database terlebih dahulu.

buka browser dan masuk ke alamat ini http://localhost/phpmyadmin/. anda telah memasuki ruang konfigurasi mysql seperi pada gambar dibawah

isikan  nama database toko_komputer pada kolom create new database – Enter, lalu isikan processor pada kolom Create new table on database dan field = 2 – Enter, anda akan menemui halaman dimana anda akan memulai pembuatan isi database.

isi kolom seperti gambar dibawah dan save!

Schedule tasks on Linux using crontab

If you’ve got a website that’s heavy on your web server, you might want to run some processes like generating thumbnails or enriching data in the background. This way it can not interfere with the user interface. Linux has a great program for this called cron. It allows tasks to be automatically run in the background at regular intervals. You could also use it to automatically create backups, synchronize files, schedule updates, and much more. Welcome to the wonderful world of crontab.

Crontab

The crontab (cron derives from chronos, Greek for time; tab stands for table) command, found in Unix and Unix-like operating systems, is used to schedule commands to be executed periodically. To see what crontabs are currently running on your system, you can open a terminal and run:

sudo crontab -l

To edit the list of cronjobs you can run:

sudo crontab -e

This wil open a the default editor (could be vi or pico, if you want you can change the default editor) to let us manipulate the crontab. If you save and exit the editor, all your cronjobs are saved into crontab. Cronjobs are written in the following format:

* * * * * /bin/execute/this/script.sh

Scheduling explained

Continue reading

Linux VS FreeBSD

banyak yang berkata bahwa freeBSD lebih unggul dibadingkan linux dalam urusan dunia server, benarnkah demikian??

memang dengan tampilan freeBSD yang basisnya text dan apalagi mendapat julukan sebagai OS Hardcore membuat banyak orang berfikiran demikian. tetapi berikut ini adalah jawaban dari rekan saya (Mr.Michael kwkwk) yang menurut saya benar untuk kita sebagai umat IT.

“sebenernya apa sih kelebihan FreeBSD jika dibandingkan dengan LINUX terus kalo dalam 1 komp mau ada FreeBSD n Windows or LINUX n Windows mana sech yang lebih baek n mana yg lebih ngeberatin komp.” Continue reading

An A-Z Index of the Bash command line for Linux

Halaman ini berisi daftar perintah  dalam Bash CLI Linux dari A-Z, sila dibaca dan semoga bermanfaat.

a
  adduser  Add a user to the system
  addgroup Add a group to the system
  alias    Create an alias •
  apropos  Search Help manual pages (man -k)
  apt-get  Search for and install software packages (Debian/Ubuntu)
  aptitude Search for and install software packages (Debian/Ubuntu)
  aspell   Spell Checker
  awk      Find and Replace text, database sort/validate/index
b
  basename Strip directory and suffix from filenames
  bash     GNU Bourne-Again SHell
  bc       Arbitrary precision calculator language
  bg       Send to background
  break    Exit from a loop •
  builtin  Run a shell builtin
  bzip2    Compress or decompress named file(s)
c
  cal      Display a calendar
  case     Conditionally perform a command
  cat      Display the contents of a file
  cd       Change Directory
  cfdisk   Partition table manipulator for Linux
  chgrp    Change group ownership
  chmod    Change access permissions
  chown    Change file owner and group
  chroot   Run a command with a different root directory
  chkconfig System services (runlevel)
  cksum    Print CRC checksum and byte counts
  clear    Clear terminal screen
  cmp      Compare two files
  comm     Compare two sorted files line by line
  command  Run a command - ignoring shell functions •
  continue Resume the next iteration of a loop •
  cp       Copy one or more files to another location
  cron     Daemon to execute scheduled commands
  crontab  Schedule a command to run at a later time
  csplit   Split a file into context-determined pieces
  cut      Divide a file into several parts
 Continue reading

An A-Z Index of the SQL Server 2005 database

Halaman ini berisi daftar perintah dalam SQL Server 2005 dari A-Z, sila dibaca dan semoga bermanfaat.

a
   CREATE AGGREGATE
     DROP AGGREGATE
   CREATE APPLICATION ROLE
    ALTER APPLICATION ROLE
     DROP APPLICATION ROLE
   CREATE ASSEMBLY
    ALTER ASSEMBLY
     DROP ASSEMBLY
    ALTER AUTHORIZATION
b
   BACKUP
   BACKUP CERTIFICATE
   BEGIN [DIALOG [CONVERSATION]]
c
    ALTER CERTIFICATE
   CREATE CERTIFICATE
     DROP CERTIFICATE
          CHECKPOINT
     DBCC CHECKALLOC   Check consistency of disk allocation.
     DBCC CHECKCATALOG Check catalog consistency
     DBCC CHECKCONSTRAINTS Check integrity of table constraints.
     DBCC CHECKDB    Check allocation, and integrity of all objects.
     DBCC CHECKFILEGROUP Check all tables and indexed views in a filegroup.
     DBCC CHECKIDENT Check identity value for a table.
     DBCC CHECKTABLE Check integrity of a table or indexed view.
     DBCC CLEANTABLE Reclaim space from dropped variable-length columns.
          COMMIT
   CREATE CONTRACT
     DROP CONTRACT
   CREATE CREDENTIAL
    ALTER CREDENTIAL
     DROP CREDENTIAL
 Continue reading

An A-Z Index of the Windows CMD command line

Halaman ini berisi daftar perintah dalam Windows Command Prompt dari A-Z, sila dibaca dan semoga bermanfaat.

a
   ADDUSERS Add or list users to/from a CSV file
   ARP      Address Resolution Protocol
   ASSOC    Change file extension associations•
   ASSOCIAT One step file association
   ATTRIB   Change file attributes
b
   BCDBOOT  Create or repair a system partition
   BOOTCFG  Edit Windows boot settings
   BROWSTAT Get domain, browser and PDC info
c
   CACLS    Change file permissions
   CALL     Call one batch program from another•
   CD       Change Directory - move to a specific Folder•
   CHANGE   Change Terminal Server Session properties
   CHKDSK   Check Disk - check and repair disk problems
   CHKNTFS  Check the NTFS file system
   CHOICE   Accept keyboard input to a batch file
   CIPHER   Encrypt or Decrypt files/folders
   CleanMgr Automated cleanup of Temp files, recycle bin
   CLEARMEM Clear memory leaks
   CLIP     Copy STDIN to the Windows clipboard.
   CLS      Clear the screen•
   CLUSTER  Windows Clustering
   CMD      Start a new CMD shell
   CMDKEY   Manage stored usernames/passwords
   COLOR    Change colors of the CMD window•
   COMP     Compare the contents of two files or sets of files
   COMPACT  Compress files or folders on an NTFS partition
   COMPRESS Compress individual files on an NTFS partition
   CON2PRT  Connect or disconnect a Printer
   CONVERT  Convert a FAT drive to NTFS.
   COPY     Copy one or more files to another location•
   CSCcmd   Client-side caching (Offline Files)
   CSVDE    Import or Export Active Directory data
 Continue reading

Menggunakan Outlook Express 6

Apakah rekan pengguna modem usb? atau berlangganan internet dengan isp² kecil seperti RT/RW net? dan internet yang diberikan mereka lambat?

capek deeh.. :) , buka web gmail aja lambat (jarang mengalami ini walau ada beberapa).

rekan-rekan dapat memanfaatkan utiliti bawaan windows yaitu Outlook Express, tapi inbox, sent item, draft dkk sama persis isinya seperti di web gmail. cobain deeh :) .

Continue reading

Men-Sinkronisasi waktu berdasarkan Internet Time

Waktu merupakan hal yang sangat penting, terutama didalam dunia bisnis atau kerja yang memiliki jadwal padat sehingga tingkat akurasi waktu sangat diperlukan, kebanyakan orang yang hanya mempertanyakan waktu dari arloji mreka atau perangkat waktu lainnya, sebeneranya jika dipahami ini merupakan hal yang sangat buruk karena setiap pengaturan waktu pada arloji mereka berbeda-beda.

Continue reading

Belajar Bahasa Pemrograman C++

Pernahkah rekan memikirkan sulitnya bahasa pemrograman C++ ?.

Sulitnya tak terbayangkan oleh saya ketika pertama kali mengenal bahasa asing ini, dengan waktu yang terbatas, materi kuliah bahasa C tak terbaca (memang penyajian materinya membingungkan) dan tugas mandiri yang banyak, saya sulit untuk mempelajari C++ dengan tenang, apalagi tanpa tutorial.

Continue reading

Spesifikasi minimal Hardware Windows OS

Kebutuhan Upgrade OS akhir akhir ini semakin tinggi, salah satu fakta dengan lahirnya sistem operasi baru yang disebut Windows 7, namun sebelum upgrade sistem operasi dilakukan balangkah aiknya kita mengetahui persyaratan yang dibutuhkan OS mewah tersebut

Continue reading

Follow

Get every new post delivered to your Inbox.