What is a prefix in php?

Thread Solved

Join Date: Nov 2007
Posts: 40
Reputation: jay64 is an unknown quantity at this point 
Solved Threads: 0
jay64's Avatar
jay64 jay64 is offline Offline
Light Poster

What is a prefix in php?

 
0
  #1
Dec 10th, 2007
I contacted the host of my project for a problem I was having with inserting data from a form into a db on their server. One of the answers they gave me was:
...for future reference, never declare a prefix, always leave this option blank.
I understand what a prefix is in English grammar, but what does it mean in php code? I have been teaching myself php with tutorials and none of them have mentioned this term. I hadn't even realized that I had even used a prefix. I was just modifying code that I found in tutorials based on on current needs and on advice from people here.
Last edited by jay64; Dec 10th, 2007 at 6:43 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: What is a prefix in php?

 
0
  #2
Dec 10th, 2007
...for future reference, never declare a prefix, always leave this option blank.
May be they are talking about the prefix while creating a database. For example, if your host is somehost, it will add prefix somehost_databasename while creating a database. I guess thats what they mean by that.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 40
Reputation: jay64 is an unknown quantity at this point 
Solved Threads: 0
jay64's Avatar
jay64 jay64 is offline Offline
Light Poster

Re: What is a prefix in php?

 
0
  #3
Dec 10th, 2007
Hmm, yeah, that does seem to fit. It was the first database that I set up, so I was winging it when I made the name, and I did put the domain name in the database name. Later, I thought that I shouldn't have done that, looks bad in my oppinion.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: What is a prefix in php?

 
0
  #4
Dec 10th, 2007
yeah.. its confusing sometimes and most of the time, you tend to forget that you have a prefix !!
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 40
Reputation: jay64 is an unknown quantity at this point 
Solved Threads: 0
jay64's Avatar
jay64 jay64 is offline Offline
Light Poster

Re: What is a prefix in php?

 
0
  #5
Dec 10th, 2007
Thanks for clarifying that for me.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 40
Reputation: jay64 is an unknown quantity at this point 
Solved Threads: 0
jay64's Avatar
jay64 jay64 is offline Offline
Light Poster

Re: What is a prefix in php?

 
0
  #6
Dec 10th, 2007
I named my db:
befit4riding_com_-_journal.
You are saying that the befit4riding.com is not necesarry, correct?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC