[PHP-DB] Question concerning hostnames

2003-02-25 Thread 2b4ever php
I know this isn't the right group for this, but here we go. I have 2 URLs, on has some webspace attachted to it, the other one is being redirected the the first one. Example: http://www.pageOne.com has webspace. At the moment when you got to http://www.pageTwo.com you get to see

Re: [PHP-DB] Text Files

2003-03-07 Thread 2b4ever php
I have a TXT file in witch I'd like to suppress a line. The number of the line is given How can I do ? Thanks for your help ;) something like this should work $lineNumber = 10; $txtnm = something.txt; $txtnm = substr($txtnm, 0, -1); $fd = fopen ($txtnm, r); $i = 1; while (!feof($fd)) {

Re: [PHP-DB] [php] file open

2003-03-24 Thread 2b4ever php
hello, i'm using the next code: $fp=fopen(WBSMUTA.CSV,r); while (!(feof($fp))) { $data_file=fgets($fp,4096); echo br$data_filebr; } to open a file... but I want to read it from line 3.. and there is a special function for, but can't find it back :( can someone tell me the name

[PHP-DB] query question

2003-03-25 Thread 2b4ever php
heyas all, the database: KID MID 1 1 1 2 2 2 I have the following code: $PID = 1; $UID = 2; $res = mysql_query(SELECT KID FROM kpr WHERE MID = '$PID' OR MID = '$UID') or die (mysql_error()); $values = (array_values(mysql_fetch_array($res))); for ($i=; $i = count($values);