If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > cannot add to the database (was "i need help with database")

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-06, 03:38
ryanprince ryanprince is offline
Registered User
 
Join Date: Aug 2006
Posts: 1
cannot add to the database (was "i need help with database")

i have construct a php file which look like a form for customer to enter their details now i have manage to connect to the server and database
one issue i cannot add to the database
can some one help me please thank you
Alex
Reply With Quote
  #2 (permalink)  
Old 08-29-06, 17:03
jstephens jstephens is offline
Registered User
 
Join Date: Jan 2006
Posts: 28
Who ever you have connected to the database with through php must have update and write permissions on the particular database you are trying to access.
Reply With Quote
  #3 (permalink)  
Old 08-30-06, 04:15
HSN HSN is offline
Registered User
 
Join Date: May 2006
Posts: 24
What is the error you get?
Maybe you haven't selected a database to use.
You have to have both:

Code:
$link = mysql_connect($host, $user, $pass);

and 

mysql_select_db($dbname, $link);
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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