Computing.Net > Forums > Linux > inserting into mysql

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

inserting into mysql

Reply to Message Icon

Name: Problem of Mysql
Date: March 17, 2002 at 06:10:02 Pacific
Comment:

could any one please tell me that, when i call a command to insert value into mysql database, does it insert into the table orderly? what i mean, will the new one placed after the older one? or just insert randomly into the table? or any command i can use to achieve? sorry for my poor english



Sponsored Link
Ads by Google

Response Number 1
Name: Tom
Date: March 17, 2002 at 09:37:10 Pacific
Reply:

No, it will be placed at the end of the table.


0

Response Number 2
Name: Todd Vance
Date: May 9, 2002 at 15:20:53 Pacific
Reply:

Can someone tell me why this does not insert into the table...I get no errors, but never get anything inserted into the table!?

$hookup = mysql_connect($server, $user, $pass) or die ("Not hooked up to server.");

$dbtable=mysql_select_db($db,$hookup) or die ("Not hooked up to database");

$date=($year."-".$month."-".$day);
$pdate=($month."/".$day."/".$year);
printf("%s%s%s%s%s",$pdate,$id,$auctioneer,$location,$summary);

$sql="INSERT INTO auctions (date, auctioneer, descript, region, summary, pdate, location, xlink, ext)
VALUES('$date','$auctioneer','$descript','$region', '$summary', '$pdate', '$location', '$xlink', '$ext)";

mysql_query ($sql,$hookup);

?>

I appreciate ANY help at all!

Thanks tv


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: inserting into mysql

shellscript for gps log inserting into mysql www.computing.net/answers/linux/shellscript-for-gps-log-inserting-into-mysql/30307.html

C-prog inserts in mySql slowly www.computing.net/answers/linux/cprog-inserts-in-mysql-slowly/15194.html

Samba + MySQL + W2K + RH7.1 www.computing.net/answers/linux/samba-mysql-w2k-rh71/7541.html