Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 03-26-2006, 09:56 AM Access to Mysql?
Experienced Talker

Posts: 31
Trades: 0
Looking for some help (paid if need be)....

I have an access database, it contains 4 columns.

Column "A" is simply 1-10000 in numerical order.
Column "B" is a 5 digit number
Column "C" is a 5 digit number
Column "D" is a 5 digit number

Here's what needs to happen...

User inputs column "B" into a text box.
User is given the information in Columns "C" and "D"

Important that user cannot see all 10000 codes. He must input B and receive the corresponding C and D.


I need to put this on a linux server so not sure if I need mysql? maybe javascript?

Any ideas or help is appreciated. I'm looking to get this fixed within the week. If this is "up your alley" ...contact me and we'll work out a deal.

Thanks!

Last edited by monkeylick; 03-26-2006 at 11:32 AM..
monkeylick is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-26-2006, 11:55 AM Re: Access to Mysql?
floridian's Avatar
Novice Talker

Posts: 9
Name: Sergey
Location: Florida
Trades: 0
Quote:
Originally Posted by monkeylick
Looking for some help (paid if need be)....

I have an access database, it contains 4 columns.

Column "A" is simply 1-10000 in numerical order.
Column "B" is a 5 digit number
Column "C" is a 5 digit number
Column "D" is a 5 digit number

Here's what needs to happen...

User inputs column "B" into a text box.
User is given the information in Columns "C" and "D"

Important that user cannot see all 10000 codes. He must input B and receive the corresponding C and D.


I need to put this on a linux server so not sure if I need mysql? maybe javascript?

Any ideas or help is appreciated. I'm looking to get this fixed within the week. If this is "up your alley" ...contact me and we'll work out a deal.

Thanks!
Do you mean you have MS ACCESS database?

In Linux you need MySQL you can create the same table

create table mytable (
A INT NOT NULL AUTO_INCREMENT,
B INT,
C INT,
D INT,

PRIMARY KEY(A)
);

then you can use user input to find the correct record

$SQL="select * from mytable where A=$inputnumber;

$db_link=mysql_connect($hostname, $dbuser, $dbpassword)
or die("Unable to connect to the server!");
mysql_select_db($dbname)
or die("Unable to connect to the database");

$result=mysql_query($sql);
$num_row=mysql_numrows($result);
floridian is offline
Reply With Quote
View Public Profile Visit floridian's homepage!
 
Old 03-26-2006, 12:02 PM Re: Access to Mysql?
floridian's Avatar
Novice Talker

Posts: 9
Name: Sergey
Location: Florida
Trades: 0
Quote:
Originally Posted by monkeylick
Looking for some help (paid if need be)....

I have an access database, it contains 4 columns.

Column "A" is simply 1-10000 in numerical order.
Column "B" is a 5 digit number
Column "C" is a 5 digit number
Column "D" is a 5 digit number

Here's what needs to happen...

User inputs column "B" into a text box.
User is given the information in Columns "C" and "D"

Important that user cannot see all 10000 codes. He must input B and receive the corresponding C and D.


I need to put this on a linux server so not sure if I need mysql? maybe javascript?

Any ideas or help is appreciated. I'm looking to get this fixed within the week. If this is "up your alley" ...contact me and we'll work out a deal.

Thanks!
Do you mean you have MS ACCESS database?

In Linux you need MySQL you can create the same database and table

create database mydatabase;


create table mytable (
A INT NOT NULL AUTO_INCREMENT,
B INT,
C INT,
D INT,
PRIMARY KEY(A)
);

then you can use user input to find the correct record

$sql="select * from mytable where B=$inputnumber;

$db_link=mysql_connect($hostname, $dbuser, $dbpassword)
or die("Unable to connect to the server!");
mysql_select_db($dbname)
or die("Unable to connect to the database");

$result=mysql_query($sql);
$num_row=mysql_numrows($result);
if($num_row !=0)
{
$row=mysql_fetch_row($result);
$A=$row[0];
$B=$row[1];
$C=$row[2];
$d=$row[3];

echo "A: ".$A.", B:".$B." , C:".$C." , D:">$D;

}

Please visit http://www.configure-all.com and find code examples you need


Good Luck
floridian is offline
Reply With Quote
View Public Profile Visit floridian's homepage!
 
Old 03-26-2006, 12:06 PM Re: Access to Mysql?
Experienced Talker

Posts: 31
Trades: 0
Thanks floridian for the quick repsonse...

How do I add 10,000 records... is there a way to import?

and yes, I do have the access database so I can export as text etc...
monkeylick is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Access to Mysql?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16013 seconds with 12 queries