Search found 10 matches

by adicooldude
Tue Apr 15, 2014 12:55 am
Forum: mySQL & php coding
Topic: How to validate email address in php
Replies: 1
Views: 1000

Re: How to validate email address in php

hi use this preg_match and confirm if working or not.

Code: Select all

$email='sample@gmail.com';
if( !preg_match("/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/i", $email) ) {
			echo  'Please enter a valid email address !!';
}else{
echo ' valid email address !!';
}
by adicooldude
Mon Apr 07, 2014 10:25 am
Forum: PHP General
Topic: problem in insert command
Replies: 3
Views: 746

Re: problem in insert command

hi,
1) check your database column names with the ones your using .
2) try echoing the insert query and manually run the query in database .
by adicooldude
Mon Apr 07, 2014 10:23 am
Forum: PHP General
Topic: could not update mysqli
Replies: 2
Views: 764

Re: could not update mysqli

hi,
1) check your database column names with the ones your using .
2) try echoing the update query and manually run the query in database .
by adicooldude
Mon Apr 07, 2014 3:30 am
Forum: PHP General
Topic: php and html
Replies: 1
Views: 505

Re: php and html

yup
by adicooldude
Mon Apr 07, 2014 3:23 am
Forum: PHP General
Topic: Storing php articles in databse
Replies: 0
Views: 388

Re: Storing php articles in databse

hi,
you can't store the article content in database if its > 1000 , you need to save those articles physically and save the path of the article in database.
by adicooldude
Mon Apr 07, 2014 3:16 am
Forum: PHP General
Topic: This code to PHP, help me, please!
Replies: 1
Views: 368

Re: This code to PHP, help me, please!

this works.

Code: Select all

<?php
$n = $_GET ['n'];
for($i = 1; $i <= $n; $i ++) {
	$y = (2 * $i) + 1;
	echo $y . '<br>';
}
?>
by adicooldude
Mon Apr 07, 2014 3:06 am
Forum: PHP General
Topic: This code to PHP, help me, please!
Replies: 1
Views: 368

Re: This code to PHP, help me, please!

hi, can you provide those errors, it helps in solving the issue.
by adicooldude
Mon Apr 07, 2014 2:46 am
Forum: PHP coding => General
Topic: Facebook Version Problem
Replies: 0
Views: 290

Re: Facebook Version Problem

Hi,

In in facebook application dashboard there is an option on left side "status and review " click that.
in that page set "Do you want to make this app and all its live features available to the general public?" to yes.
by adicooldude
Mon Apr 07, 2014 2:34 am
Forum: PHP coding => General
Topic: elements from a xml file
Replies: 0
Views: 326

Re: elements from a xml file

Hi, try this if (file_exists('sample.xml')) { # The XML file with bad characters $filename = "sample.xml"; # Read file contents to a variable $contents = file_get_contents($filename); try{ $xml_response = new SimpleXmlElement($contents, LIBXML_NOCDATA); echo ($xml_response->server_ip)."\n"; echo ($x...
by adicooldude
Mon Apr 07, 2014 2:32 am
Forum: PHP coding => General
Topic: If statement using javascript inside php
Replies: 1
Views: 322

Re: If statement using javascript inside php

hi , try this it works . include your 'div' before including php script if (200 <2000) echo "<script type='text/javascript'> document.getElementById('mySelect').style.display='none';</script>"; else echo "<script type='text/javascript'> document.getElementById('mySelect1').style.display='none';</scr...