sorce on php mysql 5.1.56

sorce on php mysql 5.1.56

am 21.04.2011 20:50:30 von Fred Silsbee

--0-300622604-1303411830=:74401
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Fatal error: Call to undefined function mysql_errors() in /var/www/html/lo=
g_book_MySQLnew.php on line 261


function repopulate()
  =A0 255 {
  =A0 256=20
  =A0 257 global $conn;
  =A0 258=20
  =A0 259 $user =3D "source /home/qt4user/log_book/create_log_book_mysq=
l.sql";
  =A0 260=20
  =A0 261 $result =3D mysql_query($user) or die(mysql_errors());
  =A0 262 }


For eons, the code works for other functions using SQL direct...no "source"

How does one do a "source" from php???

I usually use source on a mysql command line   5.1.56 to execute a whol=
e sql file




--0-300622604-1303411830=:74401--

Re: sorce on php mysql 5.1.56

am 21.04.2011 21:01:04 von Daniel Brown

On Thu, Apr 21, 2011 at 14:50, Fred Silsbee wrote:
> =A0Fatal error: Call to undefined function mysql_errors() in /var/www/htm=
l/log_book_MySQLnew.php on line 261

The function is mysql_error().



--=20

Network Infrastructure Manager
http://www.php.net/

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