Search found 23 matches

by Sunny
Wed Oct 30, 2013 9:27 pm
Forum: PHP coding => General
Topic: Not Checking Validation
Replies: 1
Views: 735

Re: Not Checking Validation

Hi In the below code it is not performing validation . <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Registration Form</title> <link href="style/style.css" rel="stylesheet" type="text/css" media="all" /> <SCRIPT type="text/javascript"> alert("hello"); function validate(form) { OK=false...
by Sunny
Wed Oct 30, 2013 3:00 am
Forum: PHP coding => General
Topic: Not Checking Validation
Replies: 1
Views: 735

Not Checking Validation

Hi Form is not checking for Valid Values in Name & Email . What i feel is it is not going in Javascript Code. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Registration Form</title> <link href="style/style.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascri...
by Sunny
Wed Oct 30, 2013 1:31 am
Forum: PHP coding => General
Topic: Record not Added
Replies: 3
Views: 735

Re: Record not Added

resolved
by Sunny
Wed Oct 30, 2013 1:10 am
Forum: PHP coding => General
Topic: Record not Added
Replies: 3
Views: 735

Re: Record not Added

Hi

Still not adding record

Thanks
by Sunny
Tue Oct 29, 2013 10:13 pm
Forum: PHP coding => General
Topic: Record not Added
Replies: 3
Views: 735

Record not Added

Hi Below code always gives this message "Input Data is Fail" . Secondly i have not written phone as '$phone' in Insert statement because Phone Data Type is tinyint. <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $db = 'test'; $conn = new mysqli($dbhost, $dbuser, $dbpass,$db); $fname = ...
by Sunny
Mon Oct 28, 2013 11:53 pm
Forum: PHP coding => General
Topic: Warning: mysqli_error() expects exactly 1 parameter, 0 given
Replies: 1
Views: 3748

Warning: mysqli_error() expects exactly 1 parameter, 0 given

Hi Below code gives me this message "Warning: mysqli_error() expects exactly 1 parameter, 0 given in C:\xampp\htdocs\Projects\process.php on line 20" . It is not saving record <?php require'db_con.php'; $fname = trim($_POST['fname']); // trim remove white space $email = trim($_POST['email']); $passw...
by Sunny
Mon Oct 28, 2013 11:52 pm
Forum: PHP coding => General
Topic: Warning: mysqli_error() expects exactly 1 parameter, 0 given
Replies: 0
Views: 488

Warning: mysqli_error() expects exactly 1 parameter, 0 given

Hi Below code gives me this message "Warning: mysqli_error() expects exactly 1 parameter, 0 given in C:\xampp\htdocs\Projects\process.php on line 20" . It is not saving record <?php require'db_con.php'; $fname = trim($_POST['fname']); // trim remove white space $email = trim($_POST['email']); $passw...
by Sunny
Mon Oct 28, 2013 3:26 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi

04 is the month
12 is the date

Thanks
by Sunny
Mon Oct 28, 2013 3:15 am
Forum: PHP coding => General
Topic: Isset function
Replies: 1
Views: 691

Isset function

Hi

Kindly help me what does this statement actually checks

if(isset($_POST['add']))

I have Input field with Type = "Submit" & ID = "add"

Thanks
by Sunny
Mon Oct 28, 2013 3:08 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi simplypixie

I enter date in format 1978-04-12 . I want this value to be stored in Database. Please forget about other posts regarding this issue. I simple want that Date is entered in HTML form and it should be saved . Database field has DataType Date.

Thanks
by Sunny
Mon Oct 28, 2013 2:21 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi Simplypixie

I have field with DataType as Date in mysql . I want if i enter 1970/04/10 in HTML form it should be saved in that field with Insert Statement . Please guide me what will be the insert Statement.

Thanks
by Sunny
Mon Oct 28, 2013 1:51 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi

I have field with DataType Date . I want when user enters date in HTML form it should be stored in mysql

Thanks
by Sunny
Mon Oct 28, 2013 1:33 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi

Sorry , Date is entered in this format 20-05-1978

Thanks
by Sunny
Mon Oct 28, 2013 1:12 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi Tiger

When i enter value as 20/05/1978 and then use the below code
$emp_dob = date('Y-m-d', strtotime($_POST['emp_dob']));
it shows as 1970-01-01 . Why is it so . It should display 20/05/1978. I have DataType as Date in Database.

Thanks
by Sunny
Mon Oct 28, 2013 12:12 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Thanks
by Sunny
Sun Oct 27, 2013 11:35 pm
Forum: PHP coding => General
Topic: $_PHP_SELF
Replies: 2
Views: 2969

$_PHP_SELF

Hi

What does action="<?php $_PHP_SELF ?> mean in the below line

<form method="post" action="<?php $_PHP_SELF ?>">

Thanks
by Sunny
Sun Oct 27, 2013 11:26 pm
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi Tiger

Done . Why it is storing Data as 0000-00-00 . I want it in dd-mm-yyyy
What is the difference between = AND ==

Thanks
by Sunny
Sun Oct 27, 2013 10:53 pm
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Re: Insert record in PHP

Hi

It is still storing emp_name as Blank & Date as 00-0000-00

Thanks
by Sunny
Sun Oct 27, 2013 10:33 pm
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 3434

Insert record in PHP

hi In the below code it is storing emp_name as Blank & Date as 00-0000-00 . Why is it so. <html> <head> <title>Add New Record in MySQL Database</title> </head> <body> <?php if(isset($_POST['add'])) { $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpa...
by Sunny
Sat Jan 12, 2013 12:49 am
Forum: PHP coding => General
Topic: Syntax
Replies: 1
Views: 1482

Syntax

Hi

What does this mean

foreach ($beatles as $key => $beatle)
{
echo "<b>$key:</b> $beatle<br>";
}

$beatles is array

Thanks
by Sunny
Mon Sep 03, 2012 8:02 pm
Forum: PHP coding => Mail
Topic: SMS through gmail
Replies: 0
Views: 768

SMS through gmail

Hi

I want to display data from customer table with fields customer code,name,phone,email . User can select multiple records and sms should go through gmail to all those selected accounts.

Thanks
by Sunny
Wed Jun 27, 2012 3:28 am
Forum: PHP coding => General
Topic: explain me the below syntax
Replies: 4
Views: 754

explain me the below syntax

Hi Pls tell me what this line means $Result = $DB->query($Query); . What is this actually $DB->query($Query) <?php @$DB = new mysqli('localhost','root','pwdpwd','Northwind'); if (mysqli_connect_errno()) { echo 'Cannot connect to database: ' . mysqli_connect_error(); } else { $Query = 'SELECT * FROM ...
by Sunny
Wed Nov 30, 2011 6:56 am
Forum: PHP General
Topic: SMS
Replies: 1
Views: 352

SMS

Hi

How we can send SMS using routesms.com . Is there any other free SMS gateway through which we can send SMS all over the world .

Thanx