sorce on php mysql 5.1.56

--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=A0=A0 255 {
=A0=A0=A0 256
=A0=A0=A0 257 global $conn;
=A0=A0=A0 258
=A0=A0=A0 259 $user =3D "source /home/qt4user/log_book/create_log_book_mysq=
l.sql";
=A0=A0=A0 260
=A0=A0=A0 261 $result =3D mysql_query($user) or die(mysql_errors());
=A0=A0=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=A0=A0 5.1.56 to execute a whol=
e sql file




--0-300622604-1303411830=:74401--
Fred Silsbee [ Do, 21 April 2011 20:50 ] [ ID #2058489 ]

Re: sorce on php mysql 5.1.56

On Thu, Apr 21, 2011 at 14:50, Fred Silsbee <fredsilsbee [at] yahoo.com> 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().



--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown [ Do, 21 April 2011 21:01 ] [ ID #2058491 ]
PHP » gmane.comp.php.database » sorce on php mysql 5.1.56

Vorheriges Thema: Pause While-loop when waiting for function call to complete
Nächstes Thema: the source command worked...the table is restored but still problem displayed