Posts marked with "MySQL" in categories

Goodbye AppFog, Hello OpenShift

AppFog and Heroku were one of the most popular PaaS services. But due to the limitations of service many moved out. At first when AppFog came, there were a lot of cool awesome features more than Heroku. For the Free plan AppFog had SSL, Custom Domain and other features. But by the end of February 2013, AppFog removed Custom Domain from free plan. Many customers (including me) got sad, angry and were trying to find another PaaS service. And Here it is, the next Awesome PaaS service – OpenShift.... [READ MORE]

Create MySQL Injection free Secure Login System in PHP

There were a lot of people who created tutorials to create a PHP Login System. But they were all vulnerable to MySQL Injection. In this post I’m going to demonstrate a login system free of this vulnerability. It is very secure. There are mysqli and PDO in PHP to escape these injections. We are going to use **PDO ( PHP Data Object **). Download Demo UPDATE – logSys There is a new, free, better Advanced Login System which you can check out here.... [READ MORE]

Connecting database to both mysqli and mysql entension

You can use both mysql and mysqli extension for executing SQL queries. Here is a tutorial on how to connect both the extensions to a database. Create a file named config.php where you will connect to the database. Put the following code in it: localhost", "username", "password", "db"); if ($mysqli-connect_errno) {     echo "Failed to connect to MySQL: (" . $mysqli-connect_errno . ") " . $mysqli-connect_error; } $bd = mysql_connect("localhost", "username", "... [READ MORE]

Create Facebook Like System With jQuery, MySQL, PDO In PHP

Facebook have it’s own like system which pretty good. This post will tell you how to create a "Like system" like that of Facebook. All you have to need is jQuery, MySQL Database and PDO PHP extension. This technic is partially used in my social network, Open. See the demo there in the social network. But you have to signup. DEMO You should create a user table with users data including user id, username, password, email etc…... [READ MORE]

What is SQL Injection and how to make your PHP site free from SQL Injection hacking

SQL Injection (SQLi) is a very dangerous thing that a hacker can do to your site. This happens mostly in SQL queries. Let me make you understand this in a simple way. Suppose you’re SQL query code is this: $user=$_GET[‘user’]; $sql=mysql_query("SELECT * FROM users WHERE user='".$user."‘"); It’s a normal code. BUT it is a very easy method for hacker to easily destroy your database. The user ID is getting from a GET request.... [READ MORE]

Subins Games : A new Game site from Subins

This is my 5th project. The Subins Games. This site is for playing games.  Functions Commenting Score saving Play History Add your game Game stats  (And adding new ones!) Like all the other projects this project has used Javascript Library Jquery and the server side language is PHP. This site’s games is the combination of old PFOGB and G2E.... [READ MORE]

SQL Query in another SQL Query = SQL Subquery

You might have wanted to do a SQL query inside an another SQL query. You can do this using SQL Subquery. It’s simple as ABC. Here’s an example : SELECT * FROM `fdposts` WHERE user IN (SELECT friend FROM `fdfriends` WHERE user=’subins2000′) The above code will select rows in table fdposts where user is the value of friend row in the table fdfriends. As you can see it’s very simple. Here’s another example : SELECT * FROM `posts` WHERE user IN (SELECT name FROM `members` WHERE user=’subins2000′) The above code will select rows in table posts where user is the value of the row name in the table members.... [READ MORE]

Insert XML Data to MySQL Table Using PHP

This tutorial will help you to insert XML file’s contents to a MySQL Database table using php. Note- If you can’t open PHP files in browser in Ubuntu Linux See the Tutorial : http://subinsb.com/how-to-open-php-files-in-ubuntu-instead-of-downloading This is the XML data we are going to insert in to our MySQL Table. <span style="font-family: inherit;"<items></span <span style="font-family: inherit;" <item></span <span style="font-family: inherit;" <title>Google</title></span <span style="font-family: inherit;" <url>google.com</url></span <span style="font-family: inherit;" </item></span <span style="... [READ MORE]

Subscribe

Email :




Subscribe To All

Donate

If you found something helpful, please consider a donation to support this site and projects :)

Donate

Subdomains

DemosLab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab