[wdvltalk] Re: Easy PHP limits?

2004-01-02 Thread Bj
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,

[wdvltalk] Testing Linux

2004-01-02 Thread Amrit Hallan
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

[wdvltalk] Re: Easy PHP limits?

2004-01-02 Thread Sheila Fenelon
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));

[wdvltalk] RE: Testing Linux

2004-01-02 Thread Trusz, Andrew
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

[wdvltalk] Re: Testing Linux

2004-01-02 Thread Sheila Fenelon
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

[wdvltalk] Re: Easy PHP limits?

2004-01-02 Thread Joseph, Smile Poet
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

[wdvltalk] Linux first

2004-01-02 Thread Joseph, Smile Poet
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

[wdvltalk] RE: Linux first

2004-01-02 Thread Trusz, Andrew
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

[wdvltalk] Re: Easy PHP limits?

2004-01-02 Thread Sheila Fenelon
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:

[wdvltalk] RE: Linux first

2004-01-02 Thread Sheila Fenelon
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

[wdvltalk] Re: php bad links script (more thoughts....!)

2004-01-02 Thread Steve Miller
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,

[wdvltalk] Re: php bad links script (more thoughts....!)

2004-01-02 Thread Bj
- 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.