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("INSERT INTO alumni
(rank,firstname,lastname,email,passw,comments) VALUES
('$rank','$firstname','$lastname','$email','$passw ','$textarea')", $linkID);
19 mysql_close($linkID); 3 2048
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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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 " =@ " ?...
|
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...
|
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
--------------------------------------------------------------------------------
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |