Search the web
Sign In
New User? Sign Up
phpresource · Storehouse of PHP Resources
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2686 - 2715 of 2747   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#2715 From: "chetanrakesh" <chetanrakesh@...>
Date: Thu Feb 5, 2009 10:15 am
Subject: help needed smarty
chetanrakesh
Offline Offline
Send Email Send Email
 
Hi Experts,

This is rakesh. I need your help to understand a project requirement.
Please see below message body to check project requirement sent by
client to me.I am very confused. Please suggest me your ideas.

Client Mail Starts Here
------------------------------------
I have to offer some smarty template work.
The work is like you would be occasionally (almost  twice a week)
given templates to create in smarty.

These would have
1)the php calling them to be run from the command prompt .
2) Would take input from the json file
3) output in the html file, created and saved.
4) involves shuffling of the div's

Now the best part about this project is that the basic coding has
already been done, and you would mainly need to create the template
and a few respective changes to the php files. So there is enough
learning for you from this project :-)

If this goes good, I already have parsers to be written, so you would
have some good work to be done, very very frequently.
------------------------------
Client Mail Ends Here.

I have worked on smarty but i cant understand above requirement.
Please explain me 1) to 4) points.

Thank you.
Rakesh.

#2714 From: Zimmy F Gurning <gurning@...>
Date: Wed Feb 4, 2009 8:30 am
Subject: What is TLA?
nando_gurning
Offline Offline
Send Email Send Email
 
dear all,

for your information if you have a website
please read about TLA in http://vistaledger.info/tag/tla


--
Best Regards,



#2713 From: Rupom <rupom_315@...>
Date: Wed Feb 4, 2009 7:23 am
Subject: Re: [phpResource] Re: Urgent help needed
rupom_315
Offline Offline
Send Email Send Email
 
Hello Tapan Vai,
All email clients support image in email body. We all receive hundreds emails everyday
in Yahoo and Gmail that contain images.


Thanks.

--
Rupom
 

--- On Wed, 2/4/09, Tapan <tapan29bd@...> wrote:

From: Tapan <tapan29bd@...>
Subject: [phpResource] Re: Urgent help needed
To: phpresource@yahoogroups.com
Date: Wednesday, February 4, 2009, 12:55 PM

Hi Rupom vai,
as far i know gmail and yahoo block the image in mail. so i think the
system you refereed not work in this mail box. i hope to get some
other tricks, coz i also face the same problem.

please help
Tapan

--- In phpresource@ yahoogroups. com, Rupom <rupom_315@. ..> wrote:
>
> Hi Surajit,
> You can add something like the following line to your HTML email body:
> ------------ --------
> <img
src="http://www.yourdoma in.com/your_ email_tracker. php?email_ id=some_number_ or_code"
width="0" height="0">
> ------------ ---------
>
> Here,
> http://www.yourdoma in.com/your_ email_tracker. php is your email
tracker script link.
>
> So whenever someone opens the email, the your_email_tracker. php page
is invoked and that enables you to track the email.
>
>
> Thank you.
>
> --
> Rupom
>
>
> --- On Tue, 2/3/09, Surajit Koly <chansuro@.. .> wrote:
>
> From: Surajit Koly <chansuro@.. .>
> Subject: [phpResource] Urgent help needed
> To: phpresource@ yahoogroups. com, phpexperts@yahoogro ups.com,
in-phpug@yahoogroup s.com
> Date: Tuesday, February 3, 2009, 1:18 PM
>
>
>
>
>
>
>
>
>
>
>
> Hi experts,
> We are developing a news letter module. We are successfully sending
the email from the module admin area. But we are unable to track
whether the email is opened by the email recipient or not. Also we
want to track whether the email is clicked or not. Please help.
>
>
>  
> Thanks
> Regards
> Surajit
>



#2712 From: "Tapan" <tapan29bd@...>
Date: Wed Feb 4, 2009 6:55 am
Subject: Re: Urgent help needed
tapan29bd
Offline Offline
Send Email Send Email
 
Hi Rupom vai,
as far i know gmail and yahoo block the image in mail. so i think the
system you refereed not work in this mail box. i hope to get some
other tricks, coz i also face the same problem.

please help
Tapan

--- In phpresource@yahoogroups.com, Rupom <rupom_315@...> wrote:
>
> Hi Surajit,
> You can add something like the following line to your HTML email body:
> --------------------
> <img
src="http://www.yourdomain.com/your_email_tracker.php?email_id=some_number_or_co\
de"
width="0" height="0">
> ---------------------
>
> Here,
> http://www.yourdomain.com/your_email_tracker.php is your email
tracker script link.
>
> So whenever someone opens the email, the your_email_tracker.php page
is invoked and that enables you to track the email.
>
>
> Thank you.
>
> --
> Rupom
>
>
> --- On Tue, 2/3/09, Surajit Koly <chansuro@...> wrote:
>
> From: Surajit Koly <chansuro@...>
> Subject: [phpResource] Urgent help needed
> To: phpresource@yahoogroups.com, phpexperts@yahoogroups.com,
in-phpug@yahoogroups.com
> Date: Tuesday, February 3, 2009, 1:18 PM
>
>
>
>
>
>
>
>
>
>
>
>             Hi experts,
> We are developing a news letter module. We are successfully sending
the email from the module admin area. But we are unable to track
whether the email is opened by the email recipient or not. Also we
want to track whether the email is clicked or not. Please help.
>
>
>  
> Thanks
> Regards
> Surajit
>

#2711 From: Rupom <rupom_315@...>
Date: Tue Feb 3, 2009 10:52 am
Subject: Re: [phpResource] Urgent help needed
rupom_315
Offline Offline
Send Email Send Email
 
Hi Surajit,
You can add something like the following line to your HTML email body:
--------------------
<img src="http://www.yourdomain.com/your_email_tracker.php?email_id=some_number_or_code" width="0" height="0">
---------------------

Here,
http://www.yourdomain.com/your_email_tracker.php is your email tracker script link.

So whenever someone opens the email, the your_email_tracker.php page is invoked and that enables you to track the email.


Thank you.

--
Rupom


--- On Tue, 2/3/09, Surajit Koly <chansuro@...> wrote:

From: Surajit Koly <chansuro@...>
Subject: [phpResource] Urgent help needed
To: phpresource@yahoogroups.com, phpexperts@yahoogroups.com, in-phpug@yahoogroups.com
Date: Tuesday, February 3, 2009, 1:18 PM

Hi experts,
We are developing a news letter module. We are successfully sending the email from the module admin area. But we are unable to track whether the email is opened by the email recipient or not. Also we want to track whether the email is clicked or not. Please help.
 
Thanks
Regards
Surajit


#2710 From: Surajit Koly <chansuro@...>
Date: Tue Feb 3, 2009 7:18 am
Subject: Urgent help needed
chan_suro
Offline Offline
Send Email Send Email
 
Hi experts,
We are developing a news letter module. We are successfully sending the email from the module admin area. But we are unable to track whether the email is opened by the email recipient or not. Also we want to track whether the email is clicked or not. Please help.
 
Thanks
Regards
Surajit

#2709 From: saiful Lastname <ulta_palta420@...>
Date: Mon Feb 2, 2009 12:13 pm
Subject: Take a look at my MyDailyFlog Page :)
ulta_palta420
Offline Offline
Send Email Send Email
 
Take a look at my MyDailyFlog Page

Hi!

I set up a MyDailyFlog Page where I can post my latest and greatest photos
and I want to add You as a friend so you can see it. First, you need to
join MyDailyFlog! Once you join, you can also create your own page.

Thanks,
saiful Lastname

To join MyDailyFlog, please use the link below:
http://www.mydailyflog.com/go/invite_register/mashuk007/2211353








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscribe: to opt out of further invitations from your friends to see
their DailyFlogs, please click below:
http://www.mydailyflog.com/go/system/euns=phpresource@yahoogroups.com&md5=f81362\
e99e67d4bb53bcb81cbf787616

Please do not reply directly to this email. Questions? Contact us -
http://www.mydailyflog.com/go/contact_us

MyDailyFlog, Refriendz Ltd. PO BOX 1184, Luton, Bedfordshire, LU1 9AT.

#2708 From: rashed mhabub <jony_004@...>
Date: Sun Jan 18, 2009 5:42 am
Subject: Re: [phpResource] Not working window.open after finishing for loop in javascript
jony_004
Offline Offline
Send Email Send Email
 


-


Hi,

Hope all r fine. In a report i give the check box at the left side of each row. Whether one can select all report by clicking a check box on the top of the all check box or click a number of check box by clicking one by one. I write the javascript function but after the for loop the window.open does not work .Could u plz help me.

The code is :


  function editdn()
  {
   
   
    var client,hid,count, i,check,take, count,counting;
    var myacc=new Array();
    var client1;
    take=1;

    client=window. document. getElementById( 'getted2' ).value;   
    hid=window.document .getElementById( 'checkall' );
    count=window. document. getElementById( 'hid').value;
  

//---------- --------- --------- -------For All client------ --

   if(client==' ')
      {
       client='active' ;
      }
     
    if(hid.checked= =true)
    { 
     window.open( "edit_client_ all.php?account= "+client, "mywindow" ,"resizable= 0,width=430, height=130 ,left=50,top= 50,status= yes,scrollbars= yes");
    }
 else
    {
//---------- --------- --------- -------For some client client------ --------- ---------

      for(i=1;i<=count;i++)
      {
       check=window. document. getElementById( 'chk'+i);
       if(check.checked= =true)
        {
       
          myacc[i]=check. value;
          take=take+1;
        }
      }
     
    window.open( "edit_client_ single.php? client1=" +myacc+"& counting="+take, "mywindow" ,"resizable= 0,width=430, height=130 ,left=50,top= 50,status= yes,scrollbars= yes");                                    //[This not working]

     }
     
  }

WBR
Rashed



Check out the all-new Messenger 9.0! Click here.



Add more friends to your messenger and enjoy! Invite them now.

#2707 From: Saidur Rahman <rana_0036@...>
Date: Fri Jan 2, 2009 3:11 pm
Subject: Re: [phpResource] 6 New Web Technologies of 2008 You Need to Use Now
rana_0036
Offline Offline
Send Email Send Email
 
Thanks Mr Rupom for share this nice and useful article. I think it will be helpful for us.
 
S.M. Saidur Rahman

Work: +8801911731214
Mobile: +8801911731214
rana_0036@...
Visit MyBlogLog and get a signature like this!




From: Rupom <rupom_315@...>
To: phpResource Group <phpresource@yahoogroups.com>
Sent: Friday, January 2, 2009 12:53:42 PM
Subject: [phpResource] 6 New Web Technologies of 2008 You Need to Use Now

6 New Web Technologies of 2008 You Need to Use Now

Every year, we see scores of innovations trickle onto the web — everything from new browser features to cool web apps to entire programming languages. Some of these concepts just make us smile, then we move on. Some completely blow our minds with their utility and ingenuity — and become must-haves.

Read details



#2706 From: Rupom <rupom_315@...>
Date: Fri Jan 2, 2009 6:53 am
Subject: 6 New Web Technologies of 2008 You Need to Use Now
rupom_315
Offline Offline
Send Email Send Email
 
6 New Web Technologies of 2008 You Need to Use Now

Every year, we see scores of innovations trickle onto the web — everything from new browser features to cool web apps to entire programming languages. Some of these concepts just make us smile, then we move on. Some completely blow our minds with their utility and ingenuity — and become must-haves.

Read details


#2705 From: Mamunur Rashid <m_rashid83@...>
Date: Thu Jan 1, 2009 12:06 pm
Subject: Urgent Joomla Help
m_rashid83
Offline Offline
Send Email Send Email
 
Dear all,

I need to insert login module inside an Article.

I try in different way and search the solution in online but not found the right solution.

I use the following code in HTML View of an article

<jdoc:include type="modules" name="user7" style="rounded" />

also use
<!--<jdoc:include type="modules" name="user7" style="rounded" />-->

and also enable the plugin

None of this work

Please give me the solution.


Thanks
Mamun


#2704 From: Mamunur Rashid <m_rashid83@...>
Date: Thu Jan 1, 2009 12:21 pm
Subject: Urgent Joomla Help Needed
m_rashid83
Offline Offline
Send Email Send Email
 
Dear all,

I need to insert login module inside an Article.

I try in different way and search the solution in online but not found the right solution.

I use the following code in HTML View of an article

<jdoc:include type="modules" name="user7" style="rounded" />

also use
<!--<jdoc:include type="modules" name="user7" style="rounded" />-->

and also enable the plugin

None of this work

Please give me the solution.


Thanks
Mamun


#2703 From: rashed mhabub <jony_004@...>
Date: Sun Dec 28, 2008 5:21 am
Subject: Now working window.open after finishing for loop in javascript
jony_004
Offline Offline
Send Email Send Email
 
Hi,

Hope all r fine. In a report i give the check box at the left side of each row. Whether one can select all report by clicking a check box on the top of the all check box or click a number of check box by clicking one by one. I write the javascript function but after the for loop the window.open does not work .Could u plz help me.

The code is :


  function editdn()
  {
   
   
    var client,hid,count,i,check,take,count,counting;
    var myacc=new Array();
    var client1;
    take=1;

    client=window.document.getElementById('getted2').value;   
    hid=window.document.getElementById('checkall');
    count=window.document.getElementById('hid').value;
  

//-----------------------------------For All client--------

   if(client=='')
      {
       client='active';
      }
     
    if(hid.checked==true)
    { 
     window.open("edit_client_all.php?account="+client,"mywindow","resizable=0,width=430,height=130 ,left=50,top=50,status=yes,scrollbars=yes");
    }
 else
    {
//-----------------------------------For some client client------------------------

      for(i=1;i<=count;i++)
      {
       check=window.document.getElementById('chk'+i);
       if(check.checked==true)
        {
       
          myacc[i]=check.value;
          take=take+1;
        }
      }
     
    window.open("edit_client_single.php?client1="+myacc+"& counting="+take,"mywindow","resizable=0,width=430,height=130 ,left=50,top=50,status=yes,scrollbars=yes");                                    //[This not working]

     }
     
  }

WBR
Rashed



Check out the all-new Messenger 9.0! Click here.

#2702 From: "kushalpuri" <kushalpuri@...>
Date: Wed Dec 24, 2008 11:53 am
Subject: Creating Widgets in PHP
kushalpuri
Offline Offline
Send Email Send Email
 
Hi,

Anybody knows how can we create widgets in PHP so that we can
generate a common html code that can be placed anywhere in the site.

Regards,
Kushal Puri

#2701 From: "kushalpuri" <kushalpuri@...>
Date: Tue Dec 23, 2008 9:20 am
Subject: creating widgets in PHP
kushalpuri
Offline Offline
Send Email Send Email
 
Hi,

Anybody knows how should we create widgets in PHP so that we can
generate a common html code which can be used in our social networking
sites.

Thanks in advance!!

#2700 From: "Abul Ahsan Mani" <ahsanmani@...>
Date: Sun Dec 21, 2008 5:46 am
Subject: Re: New file uploaded to phpresource
ahsanmani
Offline Offline
Send Email Send Email
 
--- In phpresource@yahoogroups.com, phpresource@yahoogroups.com wrote:
>
>
> Hello,
>
> This email message is a notification to let you know that
> a file has been uploaded to the Files area of the phpresource
> group.
>
>   File        : /Guide_to_CSS_Support_in_Email_2008.pdf
>   Uploaded by : rupom_315 <rupom_315@...>
>   Description : Guide to CSS support in email clients (2008)
>
> You can access this file at the URL:
>
http://groups.yahoo.com/group/phpresource/files/Guide_to_CSS_Support_in_Email_20\
08.pdf

>
> To learn more about file sharing for your group, please visit:
>
http://help.yahoo.com/l/us/yahoo/groups/original/members/web/index.htmlfiles
>
> Regards,
>
> rupom_315 <rupom_315@...>
>

very good share...thanks.

#2699 From: phpresource@yahoogroups.com
Date: Fri Dec 19, 2008 12:52 pm
Subject: New file uploaded to phpresource
phpresource@yahoogroups.com
Send Email Send Email
 
Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the phpresource
group.

   File        : /Guide_to_CSS_Support_in_Email_2008.pdf
   Uploaded by : rupom_315 <rupom_315@...>
   Description : Guide to CSS support in email clients (2008)

You can access this file at the URL:
http://groups.yahoo.com/group/phpresource/files/Guide_to_CSS_Support_in_Email_20\
08.pdf

To learn more about file sharing for your group, please visit:
http://help.yahoo.com/l/us/yahoo/groups/original/members/web/index.htmlfiles

Regards,

rupom_315 <rupom_315@...>

#2698 From: Rupom <rupom_315@...>
Date: Fri Dec 19, 2008 12:49 pm
Subject: Guide to CSS support in email clients (2008)
rupom_315
Offline Offline
Send Email Send Email
 


Guide to CSS support in email clients (2008):


Designing an HTML email that renders consistently across the major email clients can be very time consuming. Support for even simple CSS varies considerably between clients, and even different versions of the same client.


Attached is a guide to save you the time and trouble of figuring it out for yourself. With 21 different sets of results, all the major email systems are covered, both desktop applications and webmail.


Source: http://www.campaignmonitor.com/css/



Thanks.


--

Rupom




#2697 From: Saidur Rahman <bijon_php@...>
Date: Fri Dec 19, 2008 9:58 am
Subject: Re: [phpResource] Microsoft digs into PHP
bijon_php
Offline Offline
Send Email Send Email
 
Thanks rupom bhai. Share with us a very nice news.

thanks
saidur
Zend Certified Engineer
http://saidur.wordpress.com

--- On Fri, 12/19/08, Rupom <rupom_315@...> wrote:
From: Rupom <rupom_315@...>
Subject: [phpResource] Microsoft digs into PHP
To: "phpResource Group" <phpresource@yahoogroups.com>
Date: Friday, December 19, 2008, 1:25 AM

Microsoft digs into PHP:

Microsoft's Open Source Technology Center used to make news by partnering with SugarCRM, MySQL, and other commercial open-source projects. Those partnerships seem to have hit a dry spell over the past two years, with little in the way of new announcements, but this doesn't mean that Microsoft's OSTC has been inactive.

Read details ...



#2696 From: Rupom <rupom_315@...>
Date: Fri Dec 19, 2008 9:25 am
Subject: Microsoft digs into PHP
rupom_315
Offline Offline
Send Email Send Email
 
Microsoft digs into PHP:

Microsoft's Open Source Technology Center used to make news by partnering with SugarCRM, MySQL, and other commercial open-source projects. Those partnerships seem to have hit a dry spell over the past two years, with little in the way of new announcements, but this doesn't mean that Microsoft's OSTC has been inactive.

Read details ...


#2695 From: "florida" <ajauctionpro@...>
Date: Thu Dec 4, 2008 10:51 am
Subject: PHP store
agnes.florida
Offline Offline
Send Email Send Email
 
ZEUSCART2.1 is designed as optimum shopping cart software as making
people spend money that too online is becoming more and more difficult
nowadays. With the cut-throat competition in the high street, you
cannot afford to survive without a good ecommerce website like
ZeusCart 2.1 which has a competitive advantage. ZeusCart 2.1 is the
outcome of the need of efficient shopping cart software in the current
rapidly growing competition and ever-changing market trends.

sources : http://www.zeuscart.com/overview.php

#2694 From: "Abul Ahsan Mani" <ahsanmani@...>
Date: Sun Nov 30, 2008 3:57 pm
Subject: Get SMS from the sim to the database automatically
ahsanmani
Offline Offline
Send Email Send Email
 
Dear techies,

Let me explain my requirement first.

Lets say, you send a sms to my number [message content: your user id +
message]. Once the sms comes to my mobile no then [the mobile sim is
connected to the server by a gprs modem] the system will have to get
the message from the sim automatically and also insert the data
[content, your user id + message] in the database.

What do I need to build this? Any specific hardware?

What is the software [php] solution?

Help me please.

#2693 From: Sherif Ahsan <sherif_cse@...>
Date: Sat Nov 29, 2008 4:23 am
Subject: Re: [phpResource] how can i add comments.
sherif_cse
Offline Offline
Send Email Send Email
 
vaiya, thanks a lot.

 
Take care.
Sherif



From: shanto sas <saeedmail@...>
To: phpresource@yahoogroups.com
Sent: Friday, November 28, 2008 11:50:46 AM
Subject: Re: [phpResource] how can i add comments.

hi

using database table is the best way to store commnets. 

its also easy to insert bangla in database. see the link for <a href ="http://saeed05. wordpress. com/2008/ 05/18/how- to-insert- retrive-bangla- into-mysql- database- using-php/ ">How To Insert & retrive Bangla Into Mysql Database Using PHP</a> 

http://saeed05. wordpress. com/2008/ 05/18/how- to-insert- retrive-bangla- into-mysql- database- using-php/

thank you

shanto

rajshahi

http://saeed05. wordpress. com


--- On Fri, 28/11/08, Sherif Ahsan <sherif_cse@yahoo. com> wrote:
From: Sherif Ahsan <sherif_cse@yahoo. com>
Subject: [phpResource] how can i add comments.
To: phpresource@ yahoogroups. com
Date: Friday, 28 November, 2008, 9:12 PM

hello,

i'd like to build a website where users add their pics n Other can comment on that pics.

Now Question is what is efficienr way to add comments:

1. Use a table where cells can contain 500 varchar. Or,
2. Create a text file for each comments.

What about if i like to save comments on Bangla?
 
 
Take care.
Sherif




New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!



#2692 From: shanto sas <saeedmail@...>
Date: Fri Nov 28, 2008 4:50 pm
Subject: Re: [phpResource] how can i add comments.
saeedmail
Offline Offline
Send Email Send Email
 

hi

using database table is the best way to store commnets. 

its also easy to insert bangla in database. see the link for <a href ="http://saeed05.wordpress.com/2008/05/18/how-to-insert-retrive-bangla-into-mysql-database-using-php/">How To Insert & retrive Bangla Into Mysql Database Using PHP</a> 

http://saeed05.wordpress.com/2008/05/18/how-to-insert-retrive-bangla-into-mysql-database-using-php/

thank you

shanto

rajshahi

http://saeed05.wordpress.com


--- On Fri, 28/11/08, Sherif Ahsan <sherif_cse@...> wrote:
From: Sherif Ahsan <sherif_cse@...>
Subject: [phpResource] how can i add comments.
To: phpresource@yahoogroups.com
Date: Friday, 28 November, 2008, 9:12 PM

hello,

i'd like to build a website where users add their pics n Other can comment on that pics.

Now Question is what is efficienr way to add comments:

1. Use a table where cells can contain 500 varchar. Or,
2. Create a text file for each comments.

What about if i like to save comments on Bangla?
 
 
Take care.
Sherif




New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!

#2691 From: Sherif Ahsan <sherif_cse@...>
Date: Fri Nov 28, 2008 3:12 pm
Subject: how can i add comments.
sherif_cse
Offline Offline
Send Email Send Email
 
hello,

i'd like to build a website where users add their pics n Other can comment on that pics.

Now Question is what is efficienr way to add comments:

1. Use a table where cells can contain 500 varchar. Or,
2. Create a text file for each comments.

What about if i like to save comments on Bangla?
 
 
Take care.
Sherif



#2690 From: Faruk Khan <faruk99340@...>
Date: Tue Nov 25, 2008 8:19 am
Subject: Re: Some help.
faruk99340
Online Now Online Now
Send Email Send Email
 
Is there any free IDE that I can use to develop PHP.


#2689 From: Faruk Khan <faruk99340@...>
Date: Mon Nov 24, 2008 8:30 pm
Subject: Re: Some help.
faruk99340
Online Now Online Now
Send Email Send Email
 
 
Hi,
 
I have given my code below, I have bold the database operations, first I am saving some data using mysql_query($insertqueryforlogininfo); after that I am getting the auto increament Id from the table using the  $SavedUserId=getId($UserId,$dbconn); I have written the getId method to get the just saved Id after that I am saving some another data using the line $resource=mysql_query($insertqueryforuserinfo);.
 
Now I want to do all the database operations in a single transaction  so that if one fails then I can rollback all the things.Can it make scense now please help me how to use taransaction as well with the description of how to prepare mysql to use transaction if it requires.
 
 
  $dbconn=mysql_connect('localhost','root','');
  mysql_select_db('testdb');
 
  $FirstName=$_GET['FirstName'];
  $LastName=$_GET['LastName'];
  $UserEmail=$_GET['UserEmail'];
  $UserId=$_GET['UserId'];
  $UserPassword=$_GET['UserPassword'];
  $SavedUserId;
  $HiddenVlaueFromSession='';
  $HiddenVlaueFromControl=$_GET['hiddenValue'];
  $FirstTime=false;
  $IsError=false;
 
  if($HiddenVlaueFromControl=='')
  {
    $FirstTime=true;
    unset($_SESSION['HiddenValue']);
  }
 
  if(isset($_SESSION['HiddenValue']))
  {
    print 'Inside: if(isset(_SESSION[HiddenValue]))';
    $HiddenVlaueFromSession=$_SESSION['HiddenValue'];
  }
   $insertqueryforlogininfo="insert into userlogininfo(UserId,Password,CreateTime,UpdateTime) values('$UserId','$UserPassword','".date('y/m/d : H:i:s',time())."','".date('y/m/d : H:i:s',time())."')";

  if($dbconn && $HiddenVlaueFromControl!=$HiddenVlaueFromSession)
  {
    if(getId($UserId,$dbconn)==-1)
    {
      try
      {
 
          mysql_query($insertqueryforlogininfo);
 
          $_SESSION['HiddenValue']=$HiddenVlaueFromControl;
          $SavedUserId=getId($UserId,$dbconn);
 
          if($SavedUserId!=-1)
          {
            mysql_select_db('testdb');
           $insertqueryforuserinfo="insert into userinfo(Id,FirstName,LastName,UserEmail) values('$SavedUserId','$FirstName','$LastName','$UserEmail')";

           $resource=mysql_query($insertqueryforuserinfo);
 
Thanks
 Faruk
 


#2688 From: Muhammad Rizwan Nawaz <rizwan_nawaz786@...>
Date: Mon Nov 24, 2008 11:25 am
Subject: RE: [phpResource] Some help.
rizwan051
Online Now Online Now
Send Email Send Email
 
php.net is the best site to learn and find solutions. Don't forgot to check the user comments under each topic in manual. User comments are very helpful and will give you exact wht you are looking for :)


Thanks
Best Regards,
Muhammad Rizwan Nawaz
Email / MSN Messenger: rizwan_nawaz786@...
Gmail: rizwannawaz@... 
Yahoo IM: rizwan051
AOL IM: riznawaz
Skype: rizwannawaz
ICQ: 442047681 

=============

SECURITY NOTICE
=============
    
THE INFORMATION CONTAINED IN THIS TRANSMISSION IS PRIVILEGED AND CONFIDENTIAL.  IT IS INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY NAMED ABOVE.  IF THE READER OF THIS MESSAGE IS NOT THE INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, DISTRIBUTION OR COPY OF THIS COMMUNICATION IS STRICTLY PROHIBITED.
    
IF YOU HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE IMMEDIATELY NOTIFY AND RETURN THE ORIGINAL MESSAGE TO THE SENDER AND DELETE IT. THANK YOU.






To: phpresource@yahoogroups.com
From: aminulsumon@...
Date: Mon, 24 Nov 2008 03:17:26 -0800
Subject: Re: [phpResource] Some help.

this link might help you 
http://shopno-dinga.com/myblog/?p=19

On Fri, Nov 21, 2008 at 5:20 AM, faruk99340 <faruk99340@yahoo.com> wrote:

Hi all,

I am new in PHP just have started and I am facing some problem, one of
the problem is to create database operations using transaction I have
found some code in net but its not working, can someone help me about
this matter.

Thanks
Faruk





--
Md. Aminul Islam
http://www.shopno-dinga.com
Mob: 8801671670797



Get more done, have more fun, and stay more connected with Windows Mobile®. See how.

#2687 From: "Aminul Islam" <aminulsumon@...>
Date: Mon Nov 24, 2008 11:17 am
Subject: Re: [phpResource] Some help.
aminulsumon
Offline Offline
Send Email Send Email
 
this link might help you 
http://shopno-dinga.com/myblog/?p=19

On Fri, Nov 21, 2008 at 5:20 AM, faruk99340 <faruk99340@...> wrote:


Hi all,

I am new in PHP just have started and I am facing some problem, one of
the problem is to create database operations using transaction I have
found some code in net but its not working, can someone help me about
this matter.

Thanks
Faruk




--
Md. Aminul Islam
http://www.shopno-dinga.com
Mob: 8801671670797

#2686 From: "Delwar Hossain" <delwar1956@...>
Date: Mon Nov 24, 2008 3:33 am
Subject: Re: [phpResource] Breaking referential integrity in MySql
hdelwar
Offline Offline
Send Email Send Email
 
Drop the foreign key.



On Thu, Nov 20, 2008 at 8:40 AM, Saidur Rahman <rana_0036@...> wrote:
Hello Experts 

Is it possible to break the referential integrity when a foreign key constraint is set on an InnoDB table?

Integrity constraint violation: 1452 Cannot add or update a child row: a foreign
key constraint fails (`sumaria_magento/mg_catalog_category_product_index`,
CONSTRAINT `FK_CATALOG_CATEGORY_PRODUCT_INDEX_PRODUCT_ENTITY` FOREIGN KEY
(`product_id`) REFERENCES `mg_catalog_product_entity` (`entity_id)

Reason..
The Constraint dont find any Parent keys in parent table. But children for these Product ids are present. That means... database have Children entries without Parent ...

Please visit http://ranawd.wordpress.com/ for more details...........
 
S.M. Saidur Rahman
Analyst Programmer
SureSoft Technology Limited
Work: +8801911731214
Mobile: +8801911731214
Visit MyBlogLog and get a signature like this!





Messages 2686 - 2715 of 2747   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help