Tags » Php

Yii framework : pass additional or extra parameters in clistview

widget(‘zii.widgets.CListView’, array(
‘dataProvider’ => $dataProvider,
‘id’ => ‘eventlistview’,
‘itemView’ => ‘//event/_view’,
‘template’ => “{summary}\n{pager}\n{items}\n{pager}”,
‘viewData’ => array(“action_buttons” => $action_buttons )

));

PHP

logout

<?php
session_start();
session_destroy();

header(‘Location:index.php’);
exit;
?>

PHP

after login check

<?php
session_start();
include ‘dbconnect.php’;

$email = $_POST['email'];
$password = $_POST['password'];
$sql = “select * from `user_login` where email=’$email’ AND password=’$password’”;

$result = mysql_query($sql);

$num_rows = mysql_num_rows($result); 39 more words

PHP

Login Form

<form name=”loginform” action=”../login-module/login.php” method=”post” onsubmit=”return validLogin()”>
<fieldset>
<legend>Please enter your username and password</legend>
<table>
<tbody>
<tr>
<td><div class=”input text”><label for=”username”>User Name: </label></div> </td>
<td><input type=”text” name=”email” style=”width:180px;”/> 124 more words

PHP

Calling MYSQL Store Procedure using PHP PDO

Calling MYSQL Stored Procedure with PHP PDO.

1. Create your Store Procedure

2. Call your Store Procedure using PDO

 Source code below:

1. STORE PROCEDURE… 117 more words

PHP

PHP Development Services and Solutions at Phpdeveloperindia

Phpdeveloperindia provides quality php development services from India, we have been working in PHP for the last 7+ years and have gained expertise on various PHP application development frameworks and PHP Services. 336 more words

Services

Connect PHP to MYSQL using PDO

Simple way to connect PHP to MYSQL (stored procedure) using PDO.

We will be using 2 classes config.php and connection.php.

config.php

- this is where we put our server, database and authentication. 212 more words

PHP