Re: [PHP] What is wrong with next code

2004-11-02 Thread Vladimir Shiray
query('SELECT 1+1', $db1); > if ($result) > { > $row = mysql_fetch_row($result); > echo "Result: {$row[0]}\n"; > } > - > [EMAIL PROTECTED]:~/src/P

Re: [PHP] What is wrong with next code

2004-10-29 Thread Vladimir Shiray
- [EMAIL PROTECTED]:~/src/PHP# php -q mysql_connect3.php Result: 2 On Thu, 28 Oct 2004 23:08:39 -0400 John Holmes <[EMAIL PROTECTED]> wrote: > Vladimir Shiray wrote: > > - > > War

[PHP] What is wrong with next code

2004-10-28 Thread Vladimir Shiray
Can one explain me why I has got a result: - Warning: mysql_query(): 4 is not a valid MySQL-Link resource in ... $result = mysql_query('SELECT 1+1', $db1); - from next example. The example does not wo