From: Joseph, Smile Poet
$db = mysql_connect(localhost, root);
mysql_select_db(mydb,$db);
$result = mysql_query(SELECT * FROM employees,$db);
I'm not even sure that should work. I'm at the day job right now so can't check any
of my source code or the php help files. What you really,
I plan to use Linux, on and off initially. Can I install it
(onto another partition) without disturbing my current
Windows XP settings. I don't want the current settings
disturbed because I'm busy with work and don't want to spend
time in re-tweaking the existing setting in order to do my
current
It doesn't like the value of $result. Try this.
$result = mysql_query(SELECT * FROM employees,$db);
if (!$result) {
echo mysql_errno() . : . mysql_error(). br\n;
} else {
printf(First Name: %sbr\n, mysql_result($result,0,first));
printf(Last Name: %sbr\n, mysql_result($result,0,last));
Yep you can. Linux will install as dual boot. You hard drive will be
reconfigured to free up unused space. Linux will be installed in the free
space. When you boot the lilo (linux loader) will give you a choice of which
os you want to boot. Read the instructions before starting and again while
Amrit Hallan wrote:
I plan to use Linux, on and off initially. Can I install it
(onto another partition) without disturbing my current
Windows XP settings. I don't want the current settings
disturbed because I'm busy with work and don't want to spend
time in re-tweaking the existing setting in
Thanks Bj and Sheila,
This was cut and paste from a tutor course!Your variation produced
this:
1146: Table 'mydb.employees' doesn't exist
Which is more confusing than ever.Since MSDos set up the database
without confirming and was offended when I tried to set it up again, I
assumed the
The linux/windows question is ever present I notice. As a question
has just been asked where Windows is installed and linux is to be
added can I ask the other question?
I am contemplating buying a new machine (at a very low price) with
linux Mandrake 9.1. Is there a problem installing windows
It isn't a question of first or second os. Windows simply doesn't like to
share, it wants to have the box all to itself. So install it first. Linux is
a better house guest. It will escort windows into a quiet little area where
it will think it's the only os in residence. At boot time you get to
Joseph,
Did the tutorial explain how to create the employees table and add data
to it? There is a command line tool (mysql) that lets you login directly
to the MySQL server and give it commands.
Here's a tutorial from the MySQL site:
Yes, I agree. Win98 will want the whole machine so it needs to be
installed first. I think later versions of Windows handle this better
but I have no direct experience with it.
However, if your a buying a new machine, why not just keep the old one?
That's what I've done. I have two machines on
Bj wrote:
I think you're trying to make it harder then it needs to be. The php
fopen() function does work in safe mode, and will only return success if the
page exists - it will fail if a 404 is returned. The code I originally
suggested is all you need to check a link:
if (fopen($url,
- Original Message -
From: Steve Miller
This is working OK, except that any https link that
I try to fopen comes back false, even when I know
it is a good link. Is there something I need to add
within the script to allow me to open a secure file?
Ahh. Hmmm. What a good question.
12 matches
Mail list logo