Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 28th, 2003, 09:16 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Inserting into Mysql tables.

HI

I am using PHP with IIS server and Mysql

Now i can extract information from my database which is located on the root directory of my local host.

However when i try to insert some values into the tables from a php page i am not successfull.

So i can extract information from but NOT insert to TABLE.

PLEASE HELP

Reply With Quote
  #2  
Old January 28th, 2003, 09:24 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Inserting into Mysql tables.

by the way i am using windows 2000 not Linux

Windows 2000

Reply With Quote
  #3  
Old January 29th, 2003, 03:03 PM
jassh jassh is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 27 jassh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Inserting into Mysql tables.

d'uh... u dont have to mention that..
people do not use IIS on linux.. hehehe
(correct me if i'm wrong..)

anyway, bout ur question...

are u sure you have the right permission on your Database?

if ur using a root access.. or a username that has privellage (Write) on the table / db..
than everything should be fine..

Or maybe ur IIS access..

perhaps, it's ur code dude...

i dont know dude..
i'm practically new too...

anyway, hope my suggestion helps..
good luck though...

take care..

-jassh

Reply With Quote
  #4  
Old January 29th, 2003, 04:54 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Inserting into Mysql tables.

how do i check for write permissions on the user?---i am using root.

Reply With Quote
  #5  
Old January 29th, 2003, 05:22 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Inserting into Mysql tables.

here is my code.
Username and pasword are defined but i left them out here.

$db = mysql_connect("localhost", $dbuser, $dbpass);

$dbb =mysql_select_db("database03",$db);
$query = "INSERT INTO employees VALUES($num,$first,$last)";
$result = mysql_query("SELECT * FROM employees",$db);

printf("First Name: %s<br>n", @ mysql_result($result,2,"first"));
printf("Last Name: %s<br>n", @ mysql_result($result,2,"last"));

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Inserting into Mysql tables.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT