mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
inserted mysql_connect into samples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79317 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4868726c09
commit
fbbc0d6430
3 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-get-host-info">
|
||||
<refnamediv>
|
||||
|
@ -24,6 +24,8 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
die("could not connect");
|
||||
printf ("MySQL host info: %s\n", mysql_get_host_info());
|
||||
?>
|
||||
]]>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-get-proto-info">
|
||||
<refnamediv>
|
||||
|
@ -24,6 +24,8 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
die("could not connect");
|
||||
printf ("MySQL protocol version: %s\n", mysql_get_proto_info());
|
||||
?>
|
||||
]]>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 -->
|
||||
<refentry id="function.mysql-get-server-info">
|
||||
<refnamediv>
|
||||
|
@ -24,6 +24,8 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
die("could not connect");
|
||||
printf ("MySQL server version: %s\n", mysql_get_server_info());
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue