PHP

PHP RegEx: Match the Beginning of the String

Submitted by ronard on
In previous tutorial we match the given string. Now we are going to match at the beginning of the given string. The regex character to read beginning is the caret (^). Then we see if the string given begin with Ron. The forward slashes (/) we see are the delimeter that hold our regex pattern. And the quotations are used to 'wrap it all'. Then we see the (^) will put as the beggining of the string.

POS with Barcode Generator Using PHP/MySQL

Submitted by jobel on
This code will guide you on how to create your own POS with barcode generator using PHP/MySQL. The features of this system are: It allows you to conduct sales using barcode scanner or using search box. Allow you to add, edit and delete products Generate reports such as receipt, sales report (daily, monthly, yearly). This system also has user restriction just like the cashier and the admin. The

PHP RegEx: Match A String

Submitted by ronard on
In this tutorial I will show you the basic in regex. In brief discussion. Regex is considered a method of matching pattern within a string. In PHP usually used PCRE or "Perl Compatible Regular Expressions". Let's see a sample to print a string. The above code are printing "abcdefghijklmnopqrstuvwxyz0123456789". Now were going to match the character "xyz" using regex. The code above will output "1"

Print PDF file using PHP and MySQL

Submitted by ronard on
Hi to all beginners in PHP and MySQL. This script will show you on how to print a PDF using FPDF in PHP and MySQL. How to install the script? 1. Unzip the downloaded file. Then copy the unzip to this path: xampp/htdocs/. 2. Goto the "db" folder. 3. Inside the "db" folder having a "tutorials" folder. Copy it to this path: xampp/mysql/data. 4. After you finish the above steps. 5. Goto to the web

Simple CRUD File Handling System

Submitted by ronard on
Hi sourcecodesterian, I try to make a simple CRUD in File Handling System that will store data using files in txt format. The main feature of this program that will Create, Read, Update and Delete. The process of this program will add fullname and address. In fullname field, the system will auto create a txt files and get the current date with the random number for the file naming and save the

FreePHP: Simple Web-Based Inventory & POS System [UPDATED: FIXED]

Submitted by DavaoCloudStudio on
AC POS system is a online web based point of sale system build in PHP language. It uses MySQL as the data storage back-end and has a friendly UI. Features: Very easy to use & friendly UI Centralized database for top management Mass Import / Export feature Shop-wise Transaction details Inventory status and availability Individual Account for user - Added MISSING Database name Goto phpmyadmin, then

Count Total Subject/Row and Total Average Using Multiple Queries in One Table in PHP and MySQL

Submitted by ronard on
Hi sourcecodesterian especially for novice in PHP Programming, last time I uploaded was the " Multiple quries in one table using PHP and MySQL". Now I show you a simple queries in MySQL that count the total subject/row of student from table "grades" and display the total average grade from the student. This is just one table nested. Hope it will help. Thanks for reading...

Count Total Time Visited by User using PHP and MySQL

Submitted by ronard on
Hi sourcecodesterian, I would like to share this script that is part of my last project. The feature of this script is it will count the total time visited by user logged to the system. This will help the system admin to track the total time login by the user/client. Hope it will help you. How to install this script, copy the folder "tutorials" inside the "db" directory. And paste it to this path

Count Total Failed Login by the User in PHP and MySQL

Submitted by ronard on
This script will teach you especially for novice in PHP Programming. This script will count the total failed login by the user if the username inputted in the textbox is exists in table users. Then it will add to the table failed login. How to install this script? Unzip the downloaded file. And copy the "tutorials" directory from "db" directory to "mysql/data/". Then copy also the "check_failed

Object Oriented C Programming In PHP With advance query and trapping sql injection

Submitted by michael.galanza on
1. Create Database name OOP 2. Create table about your project 3. include or require the MySqlDb.php to any of your project query 3. Create $Db = new MySqlDb('localhost', 'root', '', 'OOP'); depending on your localhost username and password 4. your automatic query are in delete,save,edit and update are $Db->where('tableid', table subject); $Db->delete('database table'); 5. database example in