Shanti C 106 Posting Virtuoso

So many tips are there and so much hard work has to do...
Then only we will achieve it..
Some tips are:
1.Make your site to look gud and better..
2.Try to sit end user in your site for some time by adding some interesting messages with good desiging..
3.include some flash file to look more good..
4.Follow reciprocal model,means place others link in your site ,then they will place our link in their site.
5.place your site url in blogs and forums and any other like orkut etc..
6.use your keywords as in simple and user friendly english..
7.Place some interesting topics and provide them by newsletters and so on..
8.Register your site address with google maps..
9.Place your images in search engines..
10.Contact search engines to adds your site.
Follow these and do hard work better..
ALL THE BEST.

ShantI

Shanti C 106 Posting Virtuoso

You should reffer www.dynamicdrives.com .

Its very clear there..

Shanti C 106 Posting Virtuoso

core php means the foundamentals of php ,means that the first implementation of php,...now the new versions are coming like php5...So the first implementation becomes core php...
k.....

Shanti C 106 Posting Virtuoso

Hello frnds...
i want to send mail with attachment using mail function..
Any one can u pls give me the solution.

Shanti

Shanti C 106 Posting Virtuoso

your question is not clear...
In my view, you have to use iframe to add message board...

Shanti C 106 Posting Virtuoso

thank you...

Shanti C 106 Posting Virtuoso

Thank you DITTYY for your quick response...

Shanti C 106 Posting Virtuoso

I want to expire login details after some days..

Can any one help me any short code to this thread in php...

I have the registered date of particular member in my database..

Thanks.

Shanti C 106 Posting Virtuoso

I have put it in <> where the error is:
in the last line ' is not needed.check it.

$message = 'Cape Town Alive - Cape Xtreme Booking Request'
. 'Name:' . cleanPosUrl($_POST);
. 'Email:' . cleanPosUrl($_POST);
. 'Staying:' . cleanPosUrl($_POST);
. 'Country:' . cleanPosUrl($_POST);
. 'Contact:' . cleanPosUrl($_POST);
. 'Actvity:' . cleanPosUrl($_POST);
. 'Comments:' . cleanPosUrl($_POST); <'>;

Try it now...

Shanti C 106 Posting Virtuoso

Helloo..

Put echo to your insert query and then copy and paste the output query into your databse,then you will find where will be your error placed..
I think its very small to recover..
Hope got..

Shanti C 106 Posting Virtuoso

Hello..

I want to compare my database date with current system date and i can do some oprations by that..

Wating ...

Shanti

Shanti C 106 Posting Virtuoso

Thank you allexxi for your reply...

Shanti C 106 Posting Virtuoso

Try this code, it will work better...

But we can insert image into a folder and That path will be saved into database table..

check it once..

<?


include('connection.php');


if($_SERVER=='POST') {


$dupcnt=getdata("products","count(*)","prcode='".$_POST."'");
$dupcnt2=getdata("products","count(*)","prname='".$_POST."' && catid='".$_POST."'");
if($dupcnt>0 && $dupcnt2>0){
$err="Product With this Name and code already existed.";
} else if($dupcnt>0){
$err="Product With this code already existed.";
} else if($dupcnt2>0){
$err="Product With this name already existed.";
} else {
if($HTTP_POST_FILES["prlimage"]["size"] >1) {    // for  large image 1
$ext = substr($HTTP_POST_FILES,strpos($HTTP_POST_FILES,'.')+1);
$ext_arr=array("jpeg","ping","jpg","gif","bmp");
//if (in_array($ext,$ext_arr)) {
$prlimage=substr($HTTP_POST_FILES,0,strpos($HTTP_POST_FILES,'.'));
$prlimage.=time();
$prlimage.=strstr($HTTP_POST_FILES,'.');
$prlimage="../productimages/".$prlimage;
if(!move_uploaded_file($HTTP_POST_FILES,$prlimage)) { $prlimage=""; }
chmod($prlimage,0777);
} else {
$prlimage="";
}
/*}  else {
$err="Please Upload image only ";
}*/
if($HTTP_POST_FILES["prsimage"]["size"] >1) {    // for  small image 1
$prsimage=substr($HTTP_POST_FILES,0,strpos($HTTP_POST_FILES,'.'));
$ext = substr($HTTP_POST_FILES,strpos($HTTP_POST_FILES,'.')+1);
$ext_arr=array(".jpeg",".ping",".jpg",".gif",".bmp");
//if (in_array($ext,$ext_arr)) {
$prsimage.=time();
$prsimage.=strstr($HTTP_POST_FILES,'.');
$prsimage="../productimages/small/".$prsimage;
if(!move_uploaded_file($HTTP_POST_FILES,$prsimage)) { $prsimage=""; }
chmod($prsimage,0777);
$image_attribs = getimagesize($prsimage);
$width=$image_attribs[0];
$height=$image_attribs[1];
if($width > 75){
@unlink($prsimage);
$err="Please Upload small image of size 75 x 75 ";
}
} else {
$prsimage="";
}
/*} else {
$err="Please Upload image only ";
}*/


if(!empty($_POST)) $prhome='1'; else $prhome='0';
if(!isset($err)) { //add`sub_catid`,'".$_POST."', `prstock`,'".$_POST."',
$qur="insert into `products` (`catid`,  `prname`, `prcode`, `prsdesc`, `prldesc`, `prsimg`, `prlimg`, `prhot`,  `prstatus`, `currdate`) values ('".$_POST."', '".$_POST."', '".$_POST."', '".$_POST."', '".$_POST."', '".$prsimage."', '".$prlimage."', '".$prhome."', '1', now())";
$res= mysql_query( $qur ) ;
$id=mysql_insert_id();
echo'<script language="javascript">window.location.href="success.php'";</script>';
}
} //end for else of product count
} // post



?>

Thanks,
Shanti.

casper_wang commented: nice job Shanti +1
Shanti C 106 Posting Virtuoso

Hello all..

Plz look at my thread...

I have a date field in my data base table..
And i want to increment that date coming from database table..

Can any one help me please...

Thanks...
Shanti.

Shanti C 106 Posting Virtuoso

Hello..

Try this code to update three or more fields in database:

$qur= "update `users` set `username`='".$_POST['username']."', `password`='".$_POST['password']."', `name`='".$_POST['name']."', `email`='".$_POST['emailid']."', `phone`='".$_POST['phoneno']."', `country`='".$_POST['country']."', `county`='".$_POST['county']."', `city`='".$_POST['city']."', `pincode`='".$_POST['zip']."',  `shipping`='".$_POST['shipping']."',  `billing`='".$_POST['billing']."', `organisation`='".$_POST['org']."', `fax`='".$_POST['fax']."'  where id=".$_GET['id'];		
		mysql_query( $qur) ;

I think it will work properly after this...

ShantI

Shanti C 106 Posting Virtuoso

Hello..

Use this code in your page with your database names...

you will get what you want..

<?
session_start();
include('functions.php');


if($_SERVER=="POST"){


$qer="select * from admin where username='".$_POST."' and password='".$_POST."'";
$res=mysql_query($qer);
$num=mysql_num_rows($res);
if($num==0)
{
$msg=1;
}
else if($num==1)
{
session_unregister("user_name");
session_register("user_name");
$_SESSION=$_POST;


session_unregister("adminid");
session_register("adminid");
$_SESSION=getdata("admin","id","username='".$_POST."' and password='".$_POST."'");


echo'<script language="javascript">window.location.href="welcome.php";</script>';
}
}
?>

And use this below code where ever you want to print like invalid user:
<? if(!empty($msg) && $msg==1){echo "Invalid user";}?>

Thanks,

ShantI

Shanti C 106 Posting Virtuoso

Hello..

When ever you click on the addtocart button,the product id will redirect to the addtocart.php page..
And there, we are creating a temp_ses var with random number and ref_id with (our code like BNB and one increment value like 1212) ,then we are going to insert the whole variables like temp_ses,ref_id,prod_id,qty as 1,currdate into temp orders...
then in viewcart page .we will get the selected item info from the temporders table,then we can print into our cart..

If we select same product again ,then we are going to check the qty in temp orders table with same prod_id,ref_id,temp_ses..
if the qty found,then we will go to increment the qty whti same prod_id,temp_ses,ref_id...other wise we will insert into temporders again...

Any more queries,
ask me again...

ShantI.