Use Callender function in php GregorianToJD
$x0 = GregorianToJD($ m0,$d0,$y0);
$x1 = GregorianToJD($ m1,$d1,$y1);
$diff = $x1 - $x0;
it's very simple
User Profile
Collapse
-
Hi krishna,
php 3 types of error is there.
1.Normal error
2.Warning error
3.Fatal Error.
the function before @ is used avoid to show error message in waring errors...Leave a comment:
-
HI ,
foreign key it's possible innodb table engine only.default mysql table engine is Myisam.so when you create table change the table engine inot innodb
u create table in through via phpmyadmin..
select on Table type innodbLeave a comment:
-
[php]
//query execution
$count=mysql_nu m_rows($query);
for($i=0;$i<$co unt;$i++)
{
$get_resutl=mys ql_fetch_array( $query)
$filed1=$get_re sutl['filed_name1'];
$filed2=$get_re sutl['filed_name2'];
$filed3=$get_re sutl['filed_name3'];
if($i==0)
{
echo $filed1;
}
echo $filed2;
echo $filed3
echo "<br>";...Leave a comment:
-
Anybody Knows PyGreSQL User name Password
Hello Guys,
Now I am Using Python With Postgresql database.I read all place No need user name and password for Login Postgressql only database name is enough.But i tried select database this user don't have permission showing.anybody know user name and password of PyGreSQL
Thanks and Regards
Sasikumar.T -
Single part refersh
Hai Guys,
Anybody knows How to refersh a sigle part in a page.i know meta refersh and heder rediect refersh.What want is whole page single part only refersh partiular time period..Please helme
Thanks and Regards
Sasikumar.T -
Hai check the condition
[php]
if($heading!='' )
{
//execute insert query......
after insert clear all values
$heading='';
}
[/php]
so next time referesh the value is null...
when will submit the value automatically insert
SasiLeave a comment:
-
Hai Using This code Form validation PHP+Mysql+Javas cript
[php]
home.php
<SCRIPT language="javas cript" type="text/javascript">
// Set path to PHP script
var phpscript = 'login.php';
function createRequestOb ject() {
var req;
if(window.XMLHt tpRequest){
// Firefox, Safari, Opera...
req = new XMLHttpRequest( );...Leave a comment:
-
Hai Using ajax concept
[PHP]
file name:country_co de.php
<?
$connect=mysql_ connect("localh ost","root","") ;
$select_db=mysq l_select_db("co untry",$connect );
?>
<SCRIPT LANGUAGE="JavaS cript">
<!--
var req
function gettest(key)
{
//alert(key);
req = GetXmlHttpObjec t();
req.open('POST' ,'getdatbase.ph p',...Leave a comment:
-
Hai ...
GregorianToJD this is php function...
this function syatax is
gregoriantojd(m onth,day,year);
....
so i get in the curret date value is first value
$current_year=d ate("Y");
$current_month= date("m");
$current_day=da te("d");
$current_date=g regoriantojd($c urrent_month,$c urrent_day,$cur rent_year);
...Leave a comment:
-
Hai Use this code it's working perfeclty...... ..i done this same type of application
$database_date= $acess[3];
$database_date. "<br>";
$check_date=exp lode("-",$database_dat e);
$current_year=d ate("Y");
$current_month= date("m");
$current_day=da te("d");
$end_year=$chec k_date[0];
$end_month=$che ck_date[1];
...Leave a comment:
-
hai try this code..i think this is working perfectly
preg_match_all( '/\<tr\>(.*?)\<\/tr>/is', $content, $matches);...Leave a comment:
-
ya same think i want.....it's perl it's possible using
mechanize; module folow link is there.any one konws auto login in php...Leave a comment:
-
Hai MadMidget
thank for ur replay.....
the value is coming.how to go next page...just my think is simeple.i will run one progarm.it's automtically login and show mail inbox.it's possible in perl using
mechanize; module
$ie->set_fields(
Email =>'testuser',
Passwd=>'test'
);
$ie->click();
the same equal function i needed......Leave a comment:
-
with out submit button click form submit
Hai freinds
With out submit button how to submit this form in php sever side.using post method
i have set the value.get method menas no probs.pass the value usl....
Using post method how is possible.
<?php
$postdata = http_build_quer y(
array(
'username' => 'user',
'password' => 'user123',
)... -
Hey,
Here convert rss to html php code is there
http://www.phpclasses.org/browse/package/2831.html
click this link...i think U used on SEO purpose Is it correct.
SASI...Leave a comment:
-
Hey
i think this is bestwy
$root=$_SERVER['DOCUMENT_ROOT'];
$path=$root."/include/filename.php";
include($path);...Leave a comment:
No activity results to display
Show More
Leave a comment: