473,811 Members | 2,859 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with mysql errors

I have these 3 errors and below are lines 17-19. Any suggestions what I
am forgetting?

Warning: mysql_select_db (): supplied argument is not a valid MySQL-Link
resource in /home/---/public_html/----/register2.php on line 17

Warning: mysql_query(): supplied argument is not a valid MySQL-Link
resource in /home/---/public_html/----/register2.php on line 18

Warning: mysql_close(): supplied argument is not a valid MySQL-Link
resource in /home/---/public_html/----/register2.php on line 19
16 $linkID = @mysql_connect( "localhost" , $username, $password);
17 mysql_select_db ($dbname, $linkID);
18 $result = mysql_query("IN SERT INTO alumni
(rank,firstname ,lastname,email ,passw,comments ) VALUES
('$rank','$firs tname','$lastna me','$email','$ passw','$textar ea')", $linkID);
19 mysql_close($li nkID);

Jul 19 '05 #1
3 2082
aquilo at hotmail.com wrote:
I have these 3 errors and below are lines 17-19. Any suggestions what I
am forgetting? 16 $linkID = @mysql_connect( "localhost" , $username, $password);
17 mysql_select_db ($dbname, $linkID);


You don't check for errors. MY guess would be that you fail to connect
to server and the $linkID has null value.

Jul 19 '05 #2
aquilo at hotmail.com wrote:
I have these 3 errors and below are lines 17-19. Any suggestions what I
am forgetting? 16 $linkID = @mysql_connect( "localhost" , $username, $password);
17 mysql_select_db ($dbname, $linkID);


You don't check for errors. MY guess would be that you fail to connect
to server and the $linkID has null value.

Jul 19 '05 #3
aquilo at hotmail.com wrote:
I have these 3 errors and below are lines 17-19. Any suggestions what I
am forgetting? 16 $linkID = @mysql_connect( "localhost" , $username, $password);
17 mysql_select_db ($dbname, $linkID);


You don't check for errors. MY guess would be that you fail to connect
to server and the $linkID has null value.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2429
by: Nic, Val, Vic, Mara, Ecs & Alc | last post by:
Does anyone know what's wrong with this code? I just started learning php & mysql from a book and this code is copied directly from it, yet it still fails to work... I always get the following error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tjc/public_html/results.php on line 40 <?php // create short varibles names
0
2099
by: Dafella | last post by:
The following is code from Xeoport. It is suppose to access my pop3 account and load email into Mysql database. It's not inserting and there is no log or anything to tell me why. Here is the page. http://www.dafella.com/xeoport/ The original coder left no contact info. The reason I think it's the code is because of another issue.
16
28718
by: Angelos | last post by:
I've seen this in php.net $r=@mysql_query($query,$MySQL); and I do not understand what would be the difference of this : $r=mysql_query($query,$MySQL); I mean what is the purpose of " =@ " ? Does anyone know ? I am Just curious Thanks
0
3535
by: Lenz Grimmer | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, MySQL 4.0.14, a new version of the popular Open Source/Free Software Database, has been released. It is now available in source and binary form for a number of platforms from our download pages at http://www.mysql.com/downloads/ and mirror sites.
8
5484
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
2
2908
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on the site, I made : rpm -i MySQL-server-5.0.18-0.i386.rpm then i have errors that relate to many conflicts. I cannot figure out why -and- cannot upgrade. Please Help !
0
1315
by: bob.herbst | last post by:
I am trying to write a form that will add a guest to a guest table in a MySQL database and then reload the page to display any guests that have been added as well as redisplay the guest form to add more guests. I have two problems I am running into. I can get the script to run just fine and it will come up with the event, any guest that has been added and the form, but when I click submit it doesn't reload the page and for some unknown...
0
2060
by: PowerLifter1450 | last post by:
Hi everyone, hoepfully someone can help me with this problem, as I am new to Linux and not so sure how to troubleshoot this problem. I installed MySQL 4.1.21 on Fedora Core two without receiving any errors, and when I do # service mysql start it starts successfully. However, when trying to get to a mysqlprompt. this happens:
110
10643
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst case scenario for MyISAM backend? Also is it possible to not to lose data but get them corrupted?
0
5578
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10393
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.