2
How to run a SQL query in phpMyAdmin
How to run a SQL query in phpMyAdmin
Objective: In this tutorial, you will learn how to run a query using phpMyAdmin for use in our other tutorials.
Step 1: Create a database.Note:-If using cPanel, click MySQL® Databases, and create a new...
Reading file using php
Simple php code for reading lines
Using the below PHP code you can easily read a txt file
< ?php
$file = fopen("mistonline.in.txt", "r") or exit("Unable to open file!");
//Output of the text file
while(!feof($file))
...
Creating random number using php
Here is the simple code to create random numbers in php,
<?php
srand((double)time()*1000000);
echo rand(0,200);
?>
OR
<?php
srand((double)microtime()*1000000);
echo rand(0,100); ?>
VN:F [1.9.13_1145]please wait...Rating: 0.0/10...
working with directories using php
Here we will discuss how to create directories, manipulate them etc using simple php script.A complete reference for php directory manipualtion.
Let’s start with simple listing the contents of a directory. We need three functions to perform...
Getting Remote Webpage Info Using PHP
If you run any website that accepts submitted links, be it a tutorial website, a directory or a bookmarking site, you may find it useful to automatically retrieve information about a URL. Wouldn’t it be nice if you ran a web directory...
Total Number Of Rows In MYSQL
This tutorial will help you calculate the total number of rows in your MYSQL table with ease using simple php scripts.
< ?php
$link = mysql_connect("localhost", "root", "");
mysql_select_db("mails", $link);
$result = mysql_query("SELECT * FROM...
Ajax Page With PHP
The AJAX HTML Page
This is the HTML page. It contains a simple HTML form and a link to a JavaScript.
First Name:
<input type="text" id="txt1" onkeyup="showHint(this.value)"/>
<p>Suggestions: <span...
Water mark images using PHP 5 and GD Library
All you have to do is just copy and paste the code below on to a file name in your localhost.
Take two images any of .JPG OR .PNG OR .GIF
Here for orginal image i have given the name as originalImage.jpg
For water mark image i have given the...
PHP class simple tutorial
The Object of Our Affections
Objects are really just a fancy variable type (as mentioned above) with some nifty features that come along with them. To create an object, you’ll need something called a class. Think of a class as the framework...
To Remove An Empty Element From An Array Using PHP
Guys in the below code i am explaining how you can find out the
empty array…and create a new array by deleting the empy ones
dynamically.
In the variable data array i have given 8 datas
let $a, $b, $c, $d,$e contains data and others...
PHP E-mail with attachment
Create an html file named mail.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body style="padding:3px; margin:0px;"...
Database Connection And Pagination In PHP Using Symfony Framework
After creating the project then the application and at last the module we want using symfony framework.Go to the module folder(HERE MY MODULE NAME IS PLAYLIST)
we will have the action.class.php and indexSuccess.php
First Take The Action.class.php...
Get Method and Array Manipulation In Symfony
Below is the action.class.php code for the success page named playlistSuccess.php,
here i am getting the values of mob0,mob1 etc., to mob7 from the address bar of browser that is we
are using the get method.The browser address bar contains something...
