Affiliate Programs
 
Search affiliate programs for: 
Affiliate Categories
» Affiliate Networks
» Ad Networks
» 2 Tier Programs
» Pay Per Sale
» Pay Per Lead
» Residual Income
» Datafeeds
» Multi Tier Programs
» Business Opps
» Other Programs

Newsletter
Get newly added affiliate programs by email. Enter your email here:
Article Categories
» Affiliate Marketing
» Business
» Ecommerce
» Hosting
» Marketing
» Sales
» Web Designing
» Webmasters
» SEO & Promotion
» Working At Home
» Other Articles
» Affiliate Glossary


Go Back   AffiliateSeeking Forum > Website Creation, Design & Maintenance > Programming > PHP

PHP Discuss about your PHP scripting issues or help others with their PHP scripting problems.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-14-2008, 02:51 AM
komrad komrad is offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
komrad is on a distinguished road
Default Duplicate php value problem

Hello all,

I'm a learning php this year but i encounters some problems.

One of them is about php value. The problem is how do i do to prevent a php file from resending the same values into the database whenever the page is refreshed?

Anyone help?


Thanks,

Asep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-16-2008, 09:55 AM
AffiliateSeeking AffiliateSeeking is offline
Administrator
 
Join Date: May 2007
Posts: 266
AffiliateSeeking is a jewel in the rough AffiliateSeeking is a jewel in the rough AffiliateSeeking is a jewel in the rough AffiliateSeeking is a jewel in the rough
Are you using a Mysql database? If you are then there is one simple way you can do it from there. If you can access your database, then all you have to do is make on of your fields 'unique'. This means that your database will not accept information into that field that is duplicates. I would recommend only using this on the field/column that you definately will not have duplicates in and it would be best to use it on your smallest field/column as it's an index of sorts. It may not be the best way, but it is one way.
__________________
AffiliateSeeking - Bringing you some of the best affiliate programs online.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-10-2010, 08:16 AM
jurwanwall jurwanwall is offline
Member
 
Join Date: Nov 2010
Posts: 85
jurwanwall is on a distinguished road
I'll be tweeting quite a bit and be able to answer some questions
__________________
Designer Sunglass Reviews
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-10-2010, 10:10 AM
pintuhs's Avatar
pintuhs pintuhs is offline
Junior Member
 
Join Date: Jun 2010
Location: New Castle,DE
Posts: 4
pintuhs is on a distinguished road
Send a message via Yahoo to pintuhs
Default w3schools

http://www.w3schools.com/php/default.asp I think this url will be useful for you komrad, because PHP is a powerful tool for creating dynamic and interactive websites.

PHP is a popular, free and efficient alternative to competitors such as Microsoft ASP.

In this PHP tutorial you will learn about PHP and how to run scripts on your server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-11-2010, 09:48 PM
craig.johnson84 craig.johnson84 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 15
craig.johnson84 is on a distinguished road
Another solution is to asign a default value of this variable(0 or NULL for example) and when you are sending this you have to check if this value is the value you have set and if you meet those values, do not send them
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-19-2011, 11:24 AM
sufalamtech's Avatar
sufalamtech sufalamtech is offline
Member
 
Join Date: Aug 2011
Location: India
Posts: 32
sufalamtech is on a distinguished road
Send a message via Yahoo to sufalamtech Send a message via Skype™ to sufalamtech
for solving error in duplicate php value problem, you can use run script on server and also use PHP tutorial it may be helpful to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:40 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
© 2004-2011 AffiliateSeeking. All rights reserved.