It is currently Fri Jul 30, 2010 1:53 pm


All times are UTC [ DST ]


Ask on Codemiles community and get answers Free and Fast :

PHP codes,PHP tricks ,PHP faq ,PHP answers .and more

Our guest share with us your code snippets , your programming problems , your open source projects ,read articles and post yours .







Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
  Print view Previous topic | Next topic 
Author Message
 Post subject: Re: Tips for PHP scripts
PostPosted: Thu Feb 18, 2010 7:32 pm 
Offline
Newbie
User avatar

Joined: Thu Feb 18, 2010 7:18 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time

thank you for your share.

_________________
[url]bbs.prog365.com[/url]
programmer sky, register ,you can get a free space.


TOP
 Profile Send private message  
 
| More
 Post subject: Re: Tips for PHP scripts
PostPosted: Sat Feb 20, 2010 5:33 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 1573
Location: Earth
Has thanked: 10 time
Have thanks: 16 time

Jayne Carreen wrote:
Hi,
How do I take information from a session and add it to a database? I want to take the persons username of the person submitting a the form and add it to a database.


use session variable .

Code:

    
if(isset($_SESSION['username'])) 
{
   
// code here to take value from $_SESSION['username'] 
}
 else 
 {
  echo 
" User Not Logged In " 
}
       
 

_________________
Currenlty programming with : java , html , php , and javascript .


TOP
 Profile Send private message  
 
| More
 Post subject: Re: Tips for PHP scripts
PostPosted: Sun Feb 21, 2010 3:05 pm 
Offline
Newbie
User avatar

Joined: Sun Feb 21, 2010 2:53 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time

I'm new to PHP. Thanks for these tips, gonna try some of them out now.


TOP
 Profile Send private message  
 
| More
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2


 Similar topics
 Topic title   Forum   Author   Replies 
 PHP:How to add digest to the php scripts?  PHP  mstks  0
 SEO TIPS  General Discussion  shephil100  24
 Chuk-Munn Lee Provides the Latest JDK 6 Troubleshooting Tips  General Discussion  msi_333  2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  





Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2009
mileX v1.0 designed by codemiles team