Can't get results from MySQL via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I've been fighting with PHP/MySQL to get proper results but without success.
For example:
  $sql = "SELECT * FROM prod WHERE shortname='Myprog";
  $result = mysql_query($sql);             >>> returns Resource #7
  $list = mysql_fetch_row($result);      >>> returns Array

and actually the data in the table is a four digit number! The query returns
what is expected in MySQL but refuses to do so under php. What is it (or
could be) that I am doing wrong/missing?

Thanks in advance.

Alp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux