mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-23 18:21:56 +01:00
muh
This commit is contained in:
parent
b5f9bfe6a5
commit
55c05c3818
Binary file not shown.
Binary file not shown.
@ -0,0 +1,175 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>method_exists</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Prüft, ob eine Methode innerhalb eines Objekts definiert ist">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, method_exists">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/method_exists.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>method_exists</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">bool <b>method_exists</b>(object object,
|
||||
string method_name)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 4 >= 4.0b2</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="122">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit method_exists() kann man überprüfen, ob eine Methode (method_name)<br>
|
||||
innerhalb eines Objekts (obj) definiert ist.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="../functions_funktionen/function_exists.html">function_exists()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>class database{ <br> function first(){<br> }
|
||||
function second(){
|
||||
}
|
||||
}
|
||||
$klasse = new database;
|
||||
$array = array("first","database","second");
|
||||
for($x=0;$x<count($array);$x++){
|
||||
if(method_exists($klasse,$array[$x]))
|
||||
echo "Das Objekt besitzt die Methode $array[$x] <br>";
|
||||
else
|
||||
echo "Das Objekt besitzt nicht die Methode $array[$x] <br>";
|
||||
}
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Das Objekt besitzt die Methode first<br>
|
||||
Das Objekt besitzt nicht die Methode database<br>
|
||||
Das Objekt besitzt die Methode second</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="../kontroll_mechanismen/index.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="../kontroll_mechanismen/index.html"><b>Kontroll-Mechanismen</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="is_subclass_of.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="is_subclass_of.html"><b>is_subclass_of</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>break</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="break">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, break">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T12:17+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/break.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T12:17+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>break</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>break</b>[int Sequenz]</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="87">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit break wird die aktuelle for-, while- oder switch-Anweisung abgebrochen
|
||||
und<br>
|
||||
somit die Schleife verlassen. <br>
|
||||
Da alle drei Parameter bei einer for-Schleife optional sind, kann es zu
|
||||
dem<br>
|
||||
Umstand kommen, dass ohne eine Iterationsvariable aus der for-Schleife
|
||||
eine<br>
|
||||
Endlosschleife wird.</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="99">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>for(;;){<br> echo $x++ . "<br>";<br> if($x == 3)break;<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="56">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1<br>
|
||||
2</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="continue.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="continue.html"><b>continue</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="index.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,158 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>continue</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="continue">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, continue">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/continue.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>continue</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>continue</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="44">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit continue kann man einen Schleifendurchlauf abbrechen und zum nächsten<br>
|
||||
Durchlauf übergehen.</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="86">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>for($x=1;$x<10;$x++){<br> if ($x % 2)continue;<br> echo $x . "<br>";<br>} <br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="72">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2<br>
|
||||
4<br>
|
||||
6<br>
|
||||
8</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="do_while.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="do_while.html"><b>do...while</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="break.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="break.html"><b>break</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,161 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>do...while</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="do...while">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, do...while">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/do_while.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>do...while</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>do...while</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="44">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Die do...while-Schleife ist der while-Schleife sehr ähnlich, aber
|
||||
ein<br>
|
||||
entscheidender Punkt sticht hervor. Die Bedingung wird erst am Ende der<br>
|
||||
Schleife überprüft. So wird mindestens einmal die Schleife durchlaufen,
|
||||
während<br>
|
||||
bei einer While-Schleife die Bedingung am Anfang schon false sein kann
|
||||
und<br>
|
||||
somit nicht durchlaufen wird.</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="101">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$var = 0;<br>do {<br> echo $var;<br>} while ($i>0); <br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="38">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="dynamische_variablen.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="dynamische_variablen.html"><b>Dynamische Variablen</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="continue.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="continue.html"><b>continue</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,160 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Dynamische Variablen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Dynamische Variblen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, Dynamische Variablen">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/dynamische_variablen.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>Dynamische Variablen</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>$$</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="81">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Oftmals ist es sinnvoll, dynamische Variablen-Bezeichner zu benutzen
|
||||
und im<br>
|
||||
weiteren Skript zu gebrauchen. Daher kann man innerhalb von PHP einen<br>
|
||||
Variablennamen dynamisch anlegen. Dabei nimmt eine dynamische Variable
|
||||
den<br>
|
||||
Wert einer anderen Variablen und nutzt diesen als Bezeichner. </p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="77">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$var = "Guten"; // Variable ein Wert zuweisen<br>$$var = "Tag"; // Bezeichner zuweisen (Guten)<br>echo "$var ${$var} <br>";<br>echo "$var $Guten <br>";<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="36">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Guten Tag <br>
|
||||
Guten Tag</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="for.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="for.html"><b>for</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="do_while.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="do_while.html"><b>do...while</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,163 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>for</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="for">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, for">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/for.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>for</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>for</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="81">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit for wird ein Schleifendurchlauf abgearbeitet. Dabei gibt man einen
|
||||
Start- und<br>
|
||||
einen Endwert ein. Die Schleife endet erst bei Erreichen des Endwertes.<br>
|
||||
Da alle drei Parameter bei einer for-Schleife optional sind, kann es zu
|
||||
dem<br>
|
||||
Umstand kommen, dass ohne eine Iterationsvariable aus der for-Schleife
|
||||
eine<br>
|
||||
Endlosschleife wird.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="46">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>for($x=1;$x<15;$x++){<br> echo "Dieses ist der" . $x . ". Durchlauf <br>";<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="65">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Dieses ist der 1. Durchlauf<br>
|
||||
.<br>
|
||||
.<br>
|
||||
Dieses ist der 14. Durchlauf</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="foreach.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="foreach.html"><b>foreach</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="dynamische_variablen.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="dynamische_variablen.html"><b>Dynamische Variablen</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,159 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>foreach</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="for">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, foreach">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/foreach.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>foreach</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>foreach</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP4</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="53">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Seit der Version 4 ist es nun auch endlich möglich, auf einfache
|
||||
Weise ein Array<br>
|
||||
auszulesen. Gegenüber einer for-Schleife vereinfacht sich die Syntax
|
||||
enorm. <br>
|
||||
Dabei wird das Array vom Anfang bis zum Ende durchlaufen.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="64">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$var = array("Birnen","Bananen","Äpfel"); <br>foreach ($var as $value) {<br> echo "Wert: $value<br>\n";<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="37">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Wert: Birnen<br>
|
||||
Wert: Bananen<br>
|
||||
Wert: Äpfel</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="if.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if.html"><b>if</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="for.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="for.html"><b>for</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,211 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>if</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="for">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, if">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/if.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>if</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#tipp"><b>Tipp</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>if</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="283">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit if wird ein Kontrollmechanismus eingeleitet und abgearbeitet, wenn
|
||||
dieser<br>
|
||||
wahr ist. Dabei müssen die Bedingungen innerhalb der Abfrage einen
|
||||
logischen<br>
|
||||
Wert (True oder False) zurückliefern.<br>
|
||||
Als False wird die Zahl 0, der String "0" oder ""
|
||||
(leer) gesehen, während alle<br>
|
||||
anderen Rückgabewerte True darstellen.<br>
|
||||
Im Folgenden sehen Sie Operatoren für die Ausdrücke, um diese
|
||||
bei der<br>
|
||||
Überprüfung von Bedingungen nutzen zu können.<br>
|
||||
<br>
|
||||
Logische Operatoren:</p>
|
||||
<ul>
|
||||
<li> and $x und $y müssen gleich sein</li>
|
||||
<li>or $x oder $y muss TRUE sein</li>
|
||||
<li>xor $x und $y dürfen nicht gleich sein (Ungleich)</li>
|
||||
<li>&&…$x und $y müssen gleich sein</li>
|
||||
<li>||…$x oder $y muss TRUE sein</li>
|
||||
<li>!… $x und $y dürfen nicht gleich sein (Ungleich)</li>
|
||||
</ul>
|
||||
<p> Vergleichoperatoren</p>
|
||||
<ul>
|
||||
<li>" ==...$x und $y müssen gleich sein</li>
|
||||
<li>" !=... $x und $y dürfen nicht gleich sein (Ungleich)</li>
|
||||
<li>" > $x muss größer als $y sein</li>
|
||||
<li>" < $x muss kleiner als $y sein</li>
|
||||
<li>" >= $x muss größer oder gleich $y sein</li>
|
||||
<li>" <= $x muss kleiner oder gleich $y sein</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="64">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre>$x = 0;</pre>
|
||||
<pre><b>1.Möglichkeit (einzeilige if-Abfrage)</b></pre>
|
||||
<pre>if($x == 0) echo "Die Variable ist Null";</pre>
|
||||
<pre>oder</pre>
|
||||
<pre>if($x == 0):
|
||||
echo "Die Variable ist Null";
|
||||
endif;</pre>
|
||||
<pre><b>2.Möglichkeit (mehrzeilige if-Abfrage)</b></pre>
|
||||
<pre>if($x == 0) {
|
||||
echo "Die Variable ist Null";
|
||||
echo "Eine sehr kleine Zahl";
|
||||
}</pre>
|
||||
<pre>oder</pre>
|
||||
<pre>if($x == 0):
|
||||
echo "Die Variable ist Null";
|
||||
echo "Eine sehr kleine Zahl";
|
||||
endif;</pre>
|
||||
<pre><b>3.Möglichkeit (HTML-Code umschließen)</b></pre>
|
||||
<pre><?PHP
|
||||
if($x == 0){
|
||||
?>
|
||||
Hier kann ganz normaler HTML-Code stehen
|
||||
<?PHP
|
||||
}
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="tipp">Tipp</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="37">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Achten Sie darauf, dass bei der 3. Möglichkeit der zu schließende
|
||||
if-Zweig<br>
|
||||
innerhalb von einem PHP-Syntax steht. <br>
|
||||
Zwischen dem if-Zweig kann beliebiger HTML-Code stehen und man muss nicht<br>
|
||||
auf PHP-typische Sonderzeichen achten, welche innerhalb von PHP gesondert<br>
|
||||
geschützt werden müssen.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="if_else.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if_else.html"><b>if...else</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="foreach.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="foreach.html"><b>foreach</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>if...else</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="for">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, if...else">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/if_else.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>if...else</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#tipp"><b>Tipp</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>if...else</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="70">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit if....else wird ein Kontrollmechanismus eingeleitet und auf den<br>
|
||||
Einstiegspunkt hin überprüft. Ist der if-Zweig "False",
|
||||
wird direkt in den else-<br>
|
||||
Zweig geleitet und dieser abgearbeitet. Ist hingegen der if-Zweig "True",
|
||||
wird<br>
|
||||
der else-Zweig übergangen und nur der if-Zweig abgearbeitet. Sie
|
||||
sollten aber<br>
|
||||
bedenken, dass auf jeden Fall einer der Blöcke abgearbeitet wird.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="64">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$x = 15;<br>if($x < 14){<br> echo $x . " ist kleiner als 14";<br>}<br>else{<br> echo $x . " ist größer als 14";<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="tipp">Tipp</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="50">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Achten Sie darauf, dass der else-Zweig immer abgearbeitet wird, wenn
|
||||
der if-<br>
|
||||
Zweig "False" zurückliefert.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="if_else_elseif.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if_else_elseif.html"><b>if...else...elseif</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="if.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if.html"><b>if</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,143 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>if...else...elseif</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="for">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, if...else...elseif">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/if_else.php_elseif">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>if...else...elseif</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>if...else...elseif</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="70">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit if....else....elseif wird ein Kontrollmechanismus eingeleitet und
|
||||
auf den<br>
|
||||
Einstiegspunkt hin überprüft. Ist der if-Zweig "False",
|
||||
wird direkt in den elseif-<br>
|
||||
Zweig geleitet und dieser wiederum auf Richtigkeit hin überpüft.
|
||||
Innerhalb des<br>
|
||||
elseif-Zweiges wird elseif als if und else als else gesehen. Sie sollten
|
||||
aber<br>
|
||||
bedenken, dass auf jeden Fall einer der Blöcke abgearbeitet wird.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="237">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$x = 10;<br>if($x < 0){<br> echo $x . "ist kleiner als 0";<br>}<br>else{<br> echo $x . " ist größer als 0";<br>}<br>elseif($x < 10){<br> echo $x . " ist kleiner als 10";<br>}<br>else{<br> echo $x . " ist größer als 10";<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="include.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="include.html"><b>include</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="if_else.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if_else.html"><b>if...else</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,165 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>include</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="include">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, include">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/include.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>include</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>include</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP3, PHP4</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="81">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Der include-Befehl hat zur Folge, dass vom PHP-Parsing-Modus in den HTML-<br>
|
||||
Modus geschaltet und die angegebene Datei eingelesen und ausgewertet wird.
|
||||
Ist<br>
|
||||
innerhalb der zu inkludierenden Datei PHP-Code, so muss dieser in gültigen<br>
|
||||
PHP-Start- (<?PHP) und End-Tags (?>) eingebunden werden.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="require.html">require()</a></li>
|
||||
<li><a href="require_once.html">require_once()</a></li>
|
||||
<li><a href="include_once.html">include_once()</a></li>
|
||||
<li><a href="../dateisystem_funktionen/readfile.html">readfile()</a></li>
|
||||
<li>virtual()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="48">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>include("php.php");<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Inhalt der Datei php.php</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="include_once.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="include_once.html"><b>include_once</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="if_else_elseif.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if_else_elseif.html"><b>if...else...elseif</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,168 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>include_once</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="include_once">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, include_once">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/include_once.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>include_once</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>include_once</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="69">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Der include_once Befehl hat zur Folge, dass die angegebene Datei eingelesen
|
||||
und<br>
|
||||
ausgewertet wird.<br>
|
||||
Wie bei der Anweisung require_once wird der Code nur einmal eingebunden.<br>
|
||||
Damit soll verhindert werden, dass zwei identische Funktionen inkludiert
|
||||
werden<br>
|
||||
und somit ein Fehler produziert wird.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="include.html">include()</a></li>
|
||||
<li><a href="require.html">require()</a></li>
|
||||
<li><a href="require_once.html">require_once()</a></li>
|
||||
<li><a href="../dateisystem_funktionen/readfile.html">readfile()</a></li>
|
||||
<li>virtual()<br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="34">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre>siehe require_once</pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>siehe require_once</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="require.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="require.html"><b>require</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="include.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="include.html"><b>include</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,95 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Übersicht Kontroll-Mechanismen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="In diesem Abschnitt werden Kontroll-Mechanismen beschrieben.">
|
||||
<meta name="keywords" content="SELFPHP, Kontroll-Mechanismen, break, continue, do...while, Dynamische Variablen, for, foreach, if, if...else, if...else...elseif, include, include_once, require, require_once, switch, Vordefinierte Variablen, while">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T02:35+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontrollmechanismen/index.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T02:35+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Ordner">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||
</head>
|
||||
|
||||
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>Kontroll-Mechanismen</h2>
|
||||
</td></td>
|
||||
</tr> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/kapx.gif" width="30" height="26" vspace="6" border="0" alt="Kapitelseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||
<p> In diesem Abschnitt werden Kontroll-Mechanismen beschrieben.<br>
|
||||
Der Abschnitt besteht aus folgenden Seiten:</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td nowrap> <img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="break.html"><b>break</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="continue.html"><b>continue</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="do_while.html"><b>do...while</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="dynamische_variablen.html"><b>Dynamische Variablen</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="for.html"><b>for</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="foreach.html"><b>foreach</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if.html"><b>if</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if_else.html"><b>if...else</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="if_else_elseif.html"><b>if...else...elseif</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="include.html"><b>include</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="include_once.html"><b>include_once</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="require.html"><b>require</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="require_once.html"><b>require_once</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="switch.html"><b>switch</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="vordefinierte_variablen.html"><b>Vordefinierte Variablen</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="while.html"><b>while</b></a><br>
|
||||
<br>
|
||||
  </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>require</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="require">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, require">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/require.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>require</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>require</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP3, PHP4</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="102">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Der require-Befehl hat zur Folge, dass vom PHP-Parsing-Modus in den HTML-<br>
|
||||
Modus geschaltet wird und die angegebene Datei eingelesen und ausgewertet<br>
|
||||
wird. Ist innerhalb der zu inkludierenden Datei PHP-Code, so muss dieser
|
||||
in<br>
|
||||
gültigen PHP-Start- (<?PHP) und End-Tags (?>) eingebunden werden.<br>
|
||||
Sie können den require-Befehl nicht innerhalb von Schleifen nutzen,
|
||||
da die Datei<br>
|
||||
nur einmal eingelesen wird, sogar falls der require-Befehl in einem Zweig
|
||||
steht,<br>
|
||||
der nicht ausgeführt wird - nutzen Sie in diesem Fall include().</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="include.html">include()</a></li>
|
||||
<li><a href="require.html">require()</a></li>
|
||||
<li><a href="require_once.html">require_once()</a></li>
|
||||
<li><a href="../dateisystem_funktionen/readfile.html">readfile()</a></li>
|
||||
<li>virtual()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="57">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>require("php.php");<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Inhalt der Datei php.php</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="require_once.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="require_once.html"><b>require_once</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="include_once.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="include_once.html"><b>include_once</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,220 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>require_once</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="require_once">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, require_once">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/require_once.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>require_once</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel1"><b>Beispiel1</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe1"><b>Ausgabe1</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel2"><b>Beispiel2</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe2"><b>Ausgabe2</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>require_once</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="133">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Der require_once Befehl hat zur Folge, dass an seiner Stelle der Inhalt
|
||||
einer<br>
|
||||
anderen Datei ausgegeben wird und somit ersetzt sich der Befehl durch
|
||||
die Datei.<br>
|
||||
Der Hauptunterschied liegt darin, dass bei dem Befehl require_once der<br>
|
||||
einzubindende Code einer Datei nur einmal eingebunden wird.<br>
|
||||
Sehen Sie sich beide Beispiele genau an.<br>
|
||||
Beim zweiten Beispiel würde man versuchen, zwei identische functions
|
||||
in eine<br>
|
||||
Datei zu inkludieren - ein fataler Fehler!</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="include.html">include()</a></li>
|
||||
<li><a href="require.html">require()</a></li>
|
||||
<li><a href="require_once.html">require_once()</a></li>
|
||||
<li><a href="../dateisystem_funktionen/readfile.html">readfile()</a></li>
|
||||
<li>virtual()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel1">Beispiel1</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="57">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre>Inhalt der Datei index.php:<br>require_once("1.php");<br>mache_etwas();<br>require_once("2.php");</pre>
|
||||
<pre>Inhalt der Datei 1.php
|
||||
function mache_etwas(){
|
||||
echo "Hier ist die Datei 1.php<br>";
|
||||
}
|
||||
Inhalt der Datei 2.php
|
||||
require_once("1.php");
|
||||
echo "Hier ist die Datei 2.php";</pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe1">Ausgabe1</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="36">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Hier ist die Datei 1.php<br>
|
||||
Hier ist die Datei 2.php</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel2">Beispiel2</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="185">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre>Inhalt der Datei index.php:<br>require("1.php");<br>mache_etwas();<br>require("2.php");</pre>
|
||||
<pre>Inhalt der Datei 1.php
|
||||
function mache_etwas(){
|
||||
echo "Hier ist die Datei 1.php<br>";
|
||||
}
|
||||
Inhalt der Datei 2.php
|
||||
require("1.php");
|
||||
echo "Hier ist die Datei 2.php";</pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe2">Ausgabe2</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="47">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Hier ist die Datei 1.php<br>
|
||||
Fatal error: Cannot redeclare mache_etwas() in 1.php on line 2</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="switch.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="switch.html"><b>switch</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="require.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="require.html"><b>require</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,159 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>switch</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="switch">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, switch">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/switch.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>switch</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>switch</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP3, PHP4</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="101">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Switch ist vergleichbar mit einer if-Abfrage. Der Vorteil ist aber, dass
|
||||
Sie mit der<br>
|
||||
switch-Anweisung verschiedene Argumente mit einer Variablen überprüfen<br>
|
||||
können und somit in bestimmte Teile verzweigen können. Innerhalb
|
||||
der<br>
|
||||
Verzweigung haben Sie die Möglichkeit, den Durchlauf mit break abzubrechen<br>
|
||||
und somit die Schleife zu verlassen.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="220">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$var = 2;<br>switch ($var) {<br> case 0:<br> echo "\$var ist gleich 0";<br> break;<br> case 1:<br> echo "\$var ist gleich 1";<br> break;<br> case 2:<br> echo "\$var ist gleich 2";<br> break;<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>$var ist gleich 2</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="vordefinierte_variablen.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="vordefinierte_variablen.html"><b>Vordefinierte Variablen</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="require_once.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="require_once.html"><b>require_once</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,187 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Vordefinierte Variablen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Vordefinierte Variablen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, Vordefinierte Variablen">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T13:19+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/vordefinierte_variablen.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T13:19+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>Vordefinierte Variablen</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>Vordefinierte Variablen</b></td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="101">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Sie haben mit den unten stehenden Servervariablen die Möglichkeit,
|
||||
viele<br>
|
||||
Informationen über das Serversystem oder den Besucher ihrer Website
|
||||
zu<br>
|
||||
bekommen. Alle Variablen hier ausführlich zu erklären, würde
|
||||
den Rahmen des<br>
|
||||
Buches sprengen.<br>
|
||||
Sie haben aber die Möglichkeit, die einzelnen Variablen in ihren
|
||||
Skripts<br>
|
||||
auszuprobieren. </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="443">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo "<br> GATEWAY_INTERFACE: $GATEWAY_INTERFACE <br><br> SERVER_NAME: $SERVER_NAME <br><br> SERVER_SOFTWARE: $SERVER_SOFTWARE <br><br> SERVER_PROTOCOL: $SERVER_PROTOCOL <br><br> REQUEST_METHOD: $REQUEST_METHOD <br><br> QUERY_STRING: $QUERY_STRING <br><br> DOCUMENT_ROOT: $DOCUMENT_ROOT <br><br> HTTP_ACCEPT: $HTTP_ACCEPT <br><br> HTTP_ACCEPT_CHARSET: $HTTP_ACCEPT_CHARSET <br><br> HTTP_ENCODING: $HTTP_ENCODING <br><br> HTTP_ACCEPT_LANGUAGE: $HTTP_ACCEPT_LANGUAGE<br><br> HTTP_CONNECTION: $HTTP_CONNECTION <br><br> HTTP_HOST: $HTTP_HOST <br><br> HTTP_REFERER: $HTTP_REFERER <br><br> HTTP_USER_AGENT: $HTTP_USER_AGENT <br> <br> REMOTE_ADDR: $REMOTE_ADDR <br><br> REMOTE_PORT: $REMOTE_PORT <br><br> SCRIPT_FILENAME: $SCRIPT_FILENAME <br><br> SERVER_ADMIN: $SERVER_ADMIN <br><br> SERVER_PORT: $SERVER_PORT <br><br> SERVER_SIGNATURE: $SERVER_SIGNATURE <br><br> PATH_TRANSLATED: $PATH_TRANSLATED <br><br> SCRIPT_NAME: $SCRIPT_NAME <br><br> REQUEST_URI: $REQUEST_URI <br><br>";<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="394">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>GATEWAY_INTERFACE: CGI/1.1 <br>
|
||||
SERVER_NAME: linux.im-online.de <br>
|
||||
SERVER_SOFTWARE: Apache/1.3.12 (Unix) PHP/4.0.0 <br>
|
||||
SERVER_PROTOCOL: HTTP/1.1 <br>
|
||||
REQUEST_METHOD: GET <br>
|
||||
QUERY_STRING: <br>
|
||||
DOCUMENT_ROOT: /www/htdocs <br>
|
||||
HTTP_ACCEPT: / <br>
|
||||
HTTP_ACCEPT_CHARSET: <br>
|
||||
HTTP_ENCODING: <br>
|
||||
HTTP_ACCEPT_LANGUAGE: de <br>
|
||||
HTTP_CONNECTION: Keep-Alive <br>
|
||||
HTTP_HOST: 192.168.19.222 <br>
|
||||
HTTP_REFERER: <br>
|
||||
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; QXW0334s)
|
||||
<br>
|
||||
REMOTE_ADDR: 192.168.19.103 <br>
|
||||
REMOTE_PORT: 3573 <br>
|
||||
SCRIPT_FILENAME: /www/users//test/index.php <br>
|
||||
SERVER_ADMIN: root@linux.im-online.de <br>
|
||||
SERVER_PORT: 80 <br>
|
||||
SERVER_SIGNATURE: <br>
|
||||
Apache/1.3.12 Server at linux.im-online.de Port 80<br>
|
||||
PATH_TRANSLATED: /www/users//test/index.php <br>
|
||||
SCRIPT_NAME: /~test/index.php <br>
|
||||
REQUEST_URI: /~test/ </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="while.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="while.html"><b>while</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="switch.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="switch.html"><b>switch</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,188 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>while</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="while">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Kontroll-Mechanismen, while">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-02T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/kontroll_mechanismen/while.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-02T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Kontroll-Mechanismen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>while</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF"><b>while</b>(expr)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="44">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit while() wird ein Schleifendurchlauf abgearbeitet und so lange ausgeführt,
|
||||
bis<br>
|
||||
das Schleifenende erreicht wurde. Dabei wird bei jedem Schleifendurchlauf
|
||||
die<br>
|
||||
Bedingung (expr) auf true geprüft. Ist true erreicht, wird die while-Schleife<br>
|
||||
beendet. Ist die Bedingung schon vor dem ersten Durchlauf false, wird
|
||||
die<br>
|
||||
Schleife nicht einmal abgearbeitet. <br>
|
||||
Die while-Schleife ist sehr sinnvoll, wenn man vorher nicht genau weiß,
|
||||
wie oft<br>
|
||||
ein Durchlauf benötigt wird.<br>
|
||||
In Zusammenhang mit Datenbankabfragen ist die while-Schleife sehr sinnvoll<br>
|
||||
und empfehlenswert. So könnte man sich z.B. alle Mitglieder eines
|
||||
Vereins<br>
|
||||
ausgeben lassen, welche vor 1970 geboren wurden. Da Sie aber im Vorfeld
|
||||
(bei<br>
|
||||
der Programmierung) nicht wissen können, wie viele Mitglieder es
|
||||
sind, bietet<br>
|
||||
sich dort die Kombination mit einer While-Schleife an.<br>
|
||||
Achten Sie darauf, dass eine while-Schleife immer einen Endwert besitzen
|
||||
muss<br>
|
||||
da es sonst zu Programmabstürzen kommen kann. Wird die While-Schleife<br>
|
||||
fehlerhaht eingesetzt, ist das Resultat katastrophal - aus der while-Schleife
|
||||
wird<br>
|
||||
eine Endlosschleife.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="101">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><b>1. Möglichkeit</b><br>$x = 0;<br>while($x < 14){<br> echo $x++ . ". Durchlauf <br>";<br>}<br>
|
||||
|
||||
<b>2. Möglichkeit</b><br>while($x < 14):<br> $x++;<br> echo $x . ". Durchlauf <br>";<br>endwhile;</pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="38">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0.Durchlauf<br>
|
||||
.<br>
|
||||
.<br>
|
||||
13. Durchlauf<br>
|
||||
</p>
|
||||
<p> </p>
|
||||
<p>1.Durchlauf<br>
|
||||
.<br>
|
||||
.<br>
|
||||
13.Durchlauf</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="../mail_funktionen/index.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="../mail_funktionen/index.html"><b>Mail-Funktionen</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="vordefinierte_variablen.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="vordefinierte_variablen.html"><b>Vordefinierte Variablen</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Kontroll-Mechanismen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,65 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Übersicht Mail-Funktionen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="In diesem Abschnitt werden Mail-Funktionen beschrieben.">
|
||||
<meta name="keywords" content="SELFPHP, Mail-Funktionen, mail">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-07T08:00+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mail_funktionen/index.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-07T08:00+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Ordner">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||
</head>
|
||||
|
||||
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>Mail-Funktionen</h2>
|
||||
</td></td>
|
||||
</tr> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/kapx.gif" width="30" height="26" vspace="6" border="0" alt="Kapitelseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||
<p> In diesem Abschnitt werden Mail-Funktionen beschrieben.<br>
|
||||
Der Abschnitt besteht aus folgenden Seiten:</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td nowrap> <img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mail.html"><b>mail</b></a><br>
|
||||
<br>
|
||||
  </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,340 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mail</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Versendet E-Mails">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mail-Funktionen, mail">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mail_funktionen/mail.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mail-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mail-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mail</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel1"><b>Beispiel1</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe1"><b>Ausgabe1</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel2"><b>Beispiel2</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe2"><b>Ausgabe2</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">bool <b>mail</b>(string to, string subject,
|
||||
string message [, string additional_headers])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="247">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mail() kann man eine E-Mail im Text- oder HTML-Format an eine oder<br>
|
||||
mehrere Personen versenden. Sie können in dieser Mail einen Empfänger
|
||||
(to),<br>
|
||||
einen Absender, ein CC , ein BCC und sogar ein Attachment festlegen, die
|
||||
alle<br>
|
||||
beim Versand berücksichtigt werden. <br>
|
||||
Der Betreff (subject) und die Nachricht (message) werden dann mit den
|
||||
obigen<br>
|
||||
Daten versendet. Im Mailheader (additional_headers) können Sie verschiedene<br>
|
||||
Angaben (From, Cc, Bcc etc - siehe Beispiel) machen, welche jeweils durch<br>
|
||||
einen Zeilenvorschub (\n) getrennt sein müssen. <br>
|
||||
Wollen Sie eine E-Mail an mehrere Personen senden, so schreiben Sie sie
|
||||
im to-<br>
|
||||
Bereich und trennen die einzelnen Adressen durch ein Komma(,).<br>
|
||||
Im optionalen Parameter additional_parameters können Sie<br>
|
||||
Befehlszeilenargumente an das Mail-Programm übergeben.</p>
|
||||
<p>Zu Beispiel 1:<br>
|
||||
Bei diesem Beispiel wurde per Formular eine HTML-Mail generiert und an
|
||||
den<br>
|
||||
Empfänger gesendet. Zusätzlich wurde eine zusätzliche E-Mail-Adresse
|
||||
im BCC<br>
|
||||
angegeben und weitergeleitet. Bedenken Sie bitte, dass Sie bei Einbindung
|
||||
von<br>
|
||||
Grafiken die absolute Adresse (im Internet) angeben müssen, da sonst
|
||||
das Bild<br>
|
||||
nicht angezeigt wird.<br>
|
||||
Sie sollten aber lieber auf Grafiken verzichten, da der User beim Lesen
|
||||
der<br>
|
||||
Nachricht (wenn er offline ist) nicht sehr glücklich sein wird, dass
|
||||
er online gehen<br>
|
||||
muss, um sich die Grafik anzuschauen.</p>
|
||||
<p>Zu Beispiel 2:<br>
|
||||
Bei diesem Beispiel wurde per Formular (wie bei Beispiel 1) eine Text-Mail<br>
|
||||
generiert und an den Empfänger gesendet. Zusätzlich wurde eine
|
||||
E-Mail-Adresse<br>
|
||||
im CC angegeben und weitergeleitet.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel1">Beispiel1</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br> //Wird vom Formular ausgefuellt<br> $email_to = "$name_freund <$email_freund>"; <br> //Absender-Email<br> $email_from_mail = "mail@selfphp.info"; <br> //Absender-Name<br> $email_from_name = "Damir Enseleit"; <br> //Betreff in der Mail<br> $email_betreff = "Selfphp-Mailer";<br> //BCC<br> $email_to_bcc = "mail@selfphp4.de";<br>?>
|
||||
|
||||
<html><head>
|
||||
<title>Selfphp-Mailer</title>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF">
|
||||
<h4>Selfphp-Mailer</h4>
|
||||
<?php
|
||||
if(!isset($email_freund)){
|
||||
?>
|
||||
<form action="index.php" method="post">
|
||||
<table width="58%" border="0" cellspacing="2" cellpadding="0">
|
||||
<tr>
|
||||
<td width="15%" valign="top">
|
||||
Name/Freund:
|
||||
</td>
|
||||
<td width="85%">
|
||||
<input type="text" name="name_freund">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" valign="top">
|
||||
Email/Freund:
|
||||
</td>
|
||||
<td width="85%">
|
||||
<input type="text" name="email_freund">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" valign="top">
|
||||
Kommentar:
|
||||
</td>
|
||||
<td width="85%">
|
||||
<textarea cols="30" rows="6" name="kommentar"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" valign="top">&nbsp;</td>
|
||||
<td width="85%">
|
||||
<input type="submit" value="HTML-Mail senden" name="submit">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form> </pre>
|
||||
<pre><?php
|
||||
}
|
||||
else{
|
||||
$emailbody = '
|
||||
<html>
|
||||
<!--
|
||||
Hallo ' . $name_freund . '
|
||||
Ihr System unterstuetzt keine HTML-Mails!
|
||||
Folgende Nachricht wurde Ihnen uebermittelt:
|
||||
' . $kommentar . '
|
||||
-->
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" >
|
||||
<b>SELFPHP: Version 1.0.0 , Autor: Damir Enseleit</b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" >
|
||||
<img src="http://www.selfphp3.de/src/logo.gif" width="106" height="109" border="0" alt="SELFHTML">
|
||||
</td>
|
||||
<td bgcolor="#EEEEEE" valign="bottom" width="100%">
|
||||
Dynamische Webapplikationen:<br>
|
||||
<b>PHP-Dateien selbst erstellen</b>
|
||||
<h1>Newsletter</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" valign="top" align="center">
|
||||
<h2>Inhalt</h2>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" width="100%">
|
||||
<h2>Hallo ' . $name_freund . '</h2>
|
||||
<p><b>Das ist Deine Nachricht:</b></p>
|
||||
<pre><font face="Verdana,Geneva,Arial, Helvetica,sans-serif" color="#006600">'
|
||||
. $kommentar .
|
||||
'</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2 bgcolor="#EEEEEE" >
|
||||
<img src="http://www.selfphp3.de/src/up.gif" width="14" height="10" border="0" alt="nachoben">&#160;
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>&copy; 2001<img src="http://www.selfphp3.de/src/mail.gif" width="15" height="10" border="0" alt="E-Mail">
|
||||
&nbsp;<a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
</body>
|
||||
</html>
|
||||
'; </pre>
|
||||
<pre>$header="From:$email_from_name<$email_from_mail>\n";
|
||||
$header .= "Reply-To: $email_from_mail\n";
|
||||
$header .= "Bcc: $email_to_bcc\n";
|
||||
$header .= "X-Mailer: PHP/" . phpversion(). "\n";
|
||||
$header .= "X-Sender-IP: $REMOTE_ADDR\n";
|
||||
$header .= "Content-Type: text/html";
|
||||
mail($email_to,$email_betreff,$emailbody,$header);
|
||||
echo "<p>Sende Email nach: $email_freund<br>
|
||||
Sende Email(BCC) nach: $email_from_mail";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe1">Ausgabe1</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p><b>Ausfüllen des Formular:</b></p>
|
||||
<p><img src="../funktionsgrafiken/mail_0.gif" width="394" height="430"></p>
|
||||
<p><b>Bestätigung beim Versenden:</b></p>
|
||||
<p><img src="../funktionsgrafiken/mail_1.gif" width="394" height="269"></p>
|
||||
<p><b>Fertige Email beim Empfänger:</b></p>
|
||||
<p><img src="../funktionsgrafiken/mail_2.gif" width="396" height="611"></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel2">Beispiel2</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br> //Wird vom Formular ausgefuellt<br> $email_to = "$name_freund<$email_freund>"; <br> //Absender-Email<br> $email_from_mail = "mail@selfphp4.de"; <br> //Absender-Name<br> $email_from_name = "Damir Enseleit"; <br> //Betreff in der Mail<br> $email_betreff = "Selfphp-Mailer";<br> //CC<br> $email_to_cc="Matthias Hupp<mail@selfphp.info>";<br>?><br><html><head> <br><title>Selfphp-Mailer</title> <br></head><br><body bgcolor="#FFFFFF"> <br><h4>Selfphp-Mailer</h4> <br><?php <br>if(!isset($email_freund)){ <br>?><br><form action="index.php" method="post"> <br><table width="58%" border="0" cellspacing="2" cellpadding="0"><br> <tr><br> <td width="15%" valign="top"><br> Name/Freund:<br> </td><br> <td width="85%"> <br> <input type="text" name="name_freund"><br> </td><br> </tr><br> <tr><br> <td width="15%" valign="top"><br> Email/Freund:<br> </td><br> <td width="85%"> <br> <input type="text" name="email_freund"><br> </td><br> </tr><br> <tr><br> <td width="15%" valign="top"><br> Kommentar:<br> </td><br> <td width="85%"> <br> <textarea cols="30" rows="6"name="kommentar"></textarea><br> </td><br> </tr><br> <tr><br> <td width="15%" valign="top">&nbsp;</td><br> <td width="85%"> <br> <input type="submit" value="HTML-Mail senden" name="submit"><br> </td><br> </tr>
|
||||
</table><br></form> <br><?php <br>} <br>else{ <br> $header="From:$email_from_name<$email_from_mail>\n"; <br> $header .= "Cc: $email_to_cc\n"; <br> mail($email_to,$email_betreff,$kommentar,$header);<br>}<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe2">Ausgabe2</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p><img src="../funktionsgrafiken/mail_3.gif" width="396" height="272"></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="../mathematische_funktionen/index.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="../mathematische_funktionen/index.html"><b>Mathematische-Funktionen</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="index.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="index.html"><b>Mail-Funktionen</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mail-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,164 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>abs</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Gibt den Absolutwert einer Zahl aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, abs">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/abs.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>abs</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">mixed <b>abs</b>(mixed number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit abs() kann man sich von einer bestimmten Zahl (number) den Absolutwert<br>
|
||||
zurückgeben lassen. Ist die Zahl vom Typ "float", wird
|
||||
auch die Zahl als "float",<br>
|
||||
sonst als "int" zurückgegeben.<br>
|
||||
Ist die Zahl bereits ein Absolutwert, so bleibt sie von dem Befehl abs()
|
||||
unberührt.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo abs(-6);<br>echo "<br>";<br>echo abs(-2.5);<br>echo "<br>";<br>echo abs(0); <br>echo "<br>";<br>echo abs(12);<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>6<br>
|
||||
2.5<br>
|
||||
0<br>
|
||||
12</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="acos.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="acos.html"><b>acos</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="index.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,171 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>acos</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Gibt den Arcuscosinus-Wert im Bogenmass aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, acos">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/acos.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>acos</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>acos</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="194">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit acos() kann man sich den Arcuscosinus-Wert zu arg im Bogenmaß<br>
|
||||
zurückgeben lassen. Der Wert arg darf zwischen -1.0 und 1.0 liegen.
|
||||
Werte<br>
|
||||
darüber werden als "NAN" zurückgegeben.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="asin.html">asin()</a></li>
|
||||
<li><a href="atan.html">atan()</a></li>
|
||||
<li><a href="cos.html">cos()</a></li>
|
||||
<li><a href="rad2deg.html">rad2deg()</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo acos(1.00); <br>echo "<br>";<br>echo acos(0.52); <br>echo "<br>";<br>echo acos(-1.00); <br>echo "<br>";<br>echo acos(-1.01); <br>echo "<br>";<br>echo rad2deg(acos(0.50)) . "°";<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0<br>
|
||||
1.023945376099<br>
|
||||
3.1415926535898<br>
|
||||
NAN<br>
|
||||
60°</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="asin.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="asin.html"><b>asin</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="abs.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="abs.html"><b>abs</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>asin</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Gibt den Arcussinus-Wert im Bogenmass aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, asin">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/asin.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>asin</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>asin</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="198">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit asin() kann man sich den Arcussinus-Wert zu arg im Bogenmaß
|
||||
zurückgeben<br>
|
||||
lassen. Der Wert arg darf zwischen -1.0 und 1.0 liegen. Werte darüber
|
||||
werden als<br>
|
||||
"NAN" zurückgegeben.<br>
|
||||
</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="acos.html">acos()</a></li>
|
||||
<li><a href="atan.html">atan()</a></li>
|
||||
<li><a href="sin.html">sin()</a></li>
|
||||
<li><a href="rad2deg.html">rad2deg()</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo asin(1.0); <br>echo "<br>";<br>echo asin(0.52); <br>echo "<br>";<br>echo asin(-1.00); <br>echo "<br>";<br>echo asin(-1.01);<br>echo "<br>";<br>echo rad2deg(asin(0.50)) . "°";<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1.5707963267949<br>
|
||||
0.54685095069594<br>
|
||||
-1.5707963267949<br>
|
||||
NAN<br>
|
||||
30°</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="atan.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="atan.html"><b>atan</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="acos.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="acos.html"><b>acos</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,166 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>atan</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Gibt den Arcustangens-Wert im Bogenmass aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, atan">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/atan.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>atan</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>atan</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="125">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit atan() kann man sich den Arcustangens-Wert zu arg im Bogenmaß<br>
|
||||
zurückgeben lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="asin.html">asin()</a></li>
|
||||
<li><a href="acos.html">acos()</a></li>
|
||||
<li><a href="atan2.html">atan2()</a></li>
|
||||
<li><a href="rad2deg.html">rad2deg()</a></li>
|
||||
<li><a href="tan.html">tan()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo $wert = atan(-1); <br>echo "<br>";<br>echo rad2deg(atan(1)) . "°";<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>-0.78539816339745<br>
|
||||
45°</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="atan2.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="atan2.html"><b>atan2</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="asin.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="asin.html"><b>asin</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,169 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>atan2</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Gibt den Arcustangens-Wert im Bogenmass aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, atan2">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/atan2.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>atan2</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>atan2</b>(float y, float x)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.5, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="125">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit atan2() kann man sich den Arcustangens-Wert der Parameter x und y<br>
|
||||
zurückgeben lassen. Dabei wird das Vorzeichen beider Parameter ausgewertet<br>
|
||||
und so der Quadrant des Ergebnisses bestimmt.<br>
|
||||
</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="atan.html">atan()</a></li>
|
||||
<li><a href="asin.html">asin()</a></li>
|
||||
<li><a href="acos.html">acos()</a></li>
|
||||
<li><a href="rad2deg.html">rad2deg()</a></li>
|
||||
<li><a href="tan.html">tan()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo atan2(-2,2); <br>echo "<br>";<br>echo rad2deg(atan2(1,2)) . "°";<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>-0.78539816339745<br>
|
||||
26.565051177078°</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="base_convert.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="base_convert.html"><b>base_convert</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="atan.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="atan.html"><b>atan</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>base_convert</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert beliebige Zahlen zu anderen Basen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, base_convert">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/base_convert.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>base_convert</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>base_convert</b>(string number,
|
||||
int frombase, int tobase)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.6, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="263">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit base_convert() kann man eine Zahl (number) von einer beliebigen Basis<br>
|
||||
(frombase) zu einer anderen Basis (tobase) konvertieren lassen. Es ist
|
||||
darauf zu<br>
|
||||
achten, dass die Basen den Wert 36 nicht überschreiten. Für
|
||||
Zahlen in Basen<br>
|
||||
größer als 10 werden neben den Ziffern 0-9 auch die Buchstaben
|
||||
a-z genutzt,<br>
|
||||
wobei a einen Wert von 10 und z einen Wert von 36 hat.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bindec.html">bindec()</a></li>
|
||||
<li><a href="decbin.html">decbin()</a></li>
|
||||
<li><a href="dechex.html">dechex()</a></li>
|
||||
<li><a href="decoct.html">decoct()</a></li>
|
||||
<li><a href="hexdec.html">hexdec()</a></li>
|
||||
<li><a href="octdec.html">octdec()</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo base_convert(16,2,4); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcadd.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcadd.html"><b>bcadd</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="atan2.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="atan2.html"><b>atan2</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,165 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcadd</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Addiert zwei Zahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcadd">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcadd.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcadd</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcadd</b>(string Operand,
|
||||
string Operand [, int Genauigkeit ])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3>= 3.0.6, PHP 4</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="141">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcadd() wird der erste Operand (LOperand) zu dem zweiten Operanden<br>
|
||||
(ROperand) addiert. Der optionale Parameter Genauigkeit bestimmt die<br>
|
||||
Nachkommastellen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bcsub.html">bcsub()</a></li>
|
||||
</ul>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar , wenn PHP bei
|
||||
der Installation mit <br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcadd(30,6,3); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>36.000</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bccomp.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bccomp.html"><b>bccomp</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="base_convert.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="base_convert.html"><b>base_convert</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,169 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bccomp</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Vergleicht zwei Zahlen miteinander">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bccomp">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bccomp.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bccomp</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bccomp</b>(string Operand,
|
||||
string Operand [,int Genauigkeit])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="113">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bccomp() wird der erste Operand (LOperand) mit dem zweiten Operanden<br>
|
||||
(ROperand) verglichen. Sind beide Operanden gleich, wird 0 zurückgegeben.
|
||||
Ist<br>
|
||||
der linke Operand größer als der rechte Operand, wird +1 zurückgegeben,
|
||||
sonst <br>
|
||||
-1 (rechter Operand ist größer). <br>
|
||||
Der Parameter Genauigkeit bestimmt die Nachkommastellen, welche beim<br>
|
||||
Vergleich berücksichtigt werden.</p>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar , wenn PHP bei
|
||||
der Installation mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bccomp(21.123,21.124,2); <br>echo "<br>";<br>echo bccomp(21.123,21.124,3); <br>echo "<br>";<br>echo bccomp(21.124,21.123,3); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0<br>
|
||||
-1<br>
|
||||
1</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcdiv.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcdiv.html"><b>bcdiv</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcadd.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcadd.html"><b>bcadd</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,167 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcdiv</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Dividiert zwei Zahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcdiv">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcdiv.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcdiv</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcdiv</b>(string Operand,
|
||||
string Operand [,int Genauigkeit])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="128">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcdiv() wird der erste Operand (LOperand) durch den zweiten Operanden<br>
|
||||
(ROperand) dividiert. Der Parameter Genauigkeit bestimmt die<br>
|
||||
Nachkommastellen im Ergebnis.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bcmul.html">bcmul()</a></li>
|
||||
</ul>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar, wenn PHP bei
|
||||
der Installation mit <br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcdiv(9,2,0); <br>echo "<br>";<br>echo bcdiv(9,2,1); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>4<br>
|
||||
4.5</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcmod.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcmod.html"><b>bcmod</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bccomp.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bccomp.html"><b>bccomp</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,164 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcmod</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert den Modulus-Wert zweier Zahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcmod">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcmod.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcmod</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcmod</b>(string Operand,
|
||||
string Modulus)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="128">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcmod() wird der Modulus-Wert einer Zahl (Operand) zurückgeliefert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bcdiv.html">bcdiv()</a></li>
|
||||
</ul>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar, wenn PHP bei
|
||||
der Installation mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcmod(80,3); // 80:3=26 - Rest 2<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcmul.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcmul.html"><b>bcmul</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcdiv.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcdiv.html"><b>bcdiv</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,169 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcmul</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Multipliziert zwei Zahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcmul">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcmul.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcmul</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcmul</b>(string Operand,
|
||||
string Operand [,int Genauigkeit])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="128">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcmul() wird der erste Operand (LOperand) mit dem zweiten Operanden<br>
|
||||
(ROperand) multipliziert. Der Parameter Genauigkeit bestimmt die<br>
|
||||
Nachkommastellen im Ergebnis.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bcdiv.html">bcdiv()</a></li>
|
||||
</ul>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar, wenn PHP bei
|
||||
der Installation mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcmul(3.3,2,0); <br>echo "<br>";<br>echo bcmul(3.3,2,1); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>6<br>
|
||||
6.6</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcpow.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcpow.html"><b>bcpow</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcmod.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcmod.html"><b>bcmod</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcpow</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Potenziert zwei Zahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcpow">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcpow.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcpow</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcpow</b>(string Operand,
|
||||
string Operand [,int Genauigkeit])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="128">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcpow() wird der erste Operand (x) mit dem zweiten Operanden (y)<br>
|
||||
potenziert. Der Parameter Genauigkeit bestimmt die Nachkommastellen im<br>
|
||||
Ergebnis.<br>
|
||||
Es ist darauf zu achten, dass der zweite Operand keine Nachkommastellen
|
||||
besitzt.<br>
|
||||
Je nach Version erhalten Sie entweder eine Fehlermeldung oder die<br>
|
||||
Nachkommastelle wird bei der Berechnung einfach nicht berücksichtigt.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bcsqrt.html">bcsqrt()</a></li>
|
||||
</ul>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar, wenn PHP bei
|
||||
der Installation mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcpow(3.1,3,3); <br>echo "<br>";<br>echo bcpow(3.1,3,1); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>29.791<br>
|
||||
29.7</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcscale.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcscale.html"><b>bcscale</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcmul.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcmul.html"><b>bcmul</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,163 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcscale</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Bestimmt die Genauigkeit aller folgenden BC-Funktionen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcscale">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcscale.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcscale</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcscale</b>(int Genauigkeit)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="128">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcscale() wird die Genauigkeit aller folgenden BC-Funktionen innerhalb
|
||||
des<br>
|
||||
laufenden Skripts bestimmt. Falls Sie einer BC-Funktion (z.B. bcadd) keinen<br>
|
||||
expliziten Wert für den Parameter Genauigkeit übergeben, gilt
|
||||
die mit bcscale()<br>
|
||||
voreingestellte Anzahl der Nachkommastellen.</p>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar, wenn PHP bei
|
||||
der Installation mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>bcscale(3); <br>/* Alle nachfolgenden Berechnungen haben drei Nachkommastellen */<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p> </p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcsqrt.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcsqrt.html"><b>bcsqrt</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcpow.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcpow.html"><b>bcpow</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,159 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcsqrt</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt die Quadratwurzel einer Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcsqrt">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcsqrt.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcsqrt</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcsqrt</b>(string Operand
|
||||
, int Genauigkeit)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="93">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcsqrt() wird die Quadratwurzel von Operand ermittelt. Der Parameter<br>
|
||||
Genauigkeit gibt die Nachkommastellen des Ergebnisses an. <br>
|
||||
Achtung: Diese Funktion ist nur ausführbar, wenn PHP bei der Installation
|
||||
mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcsqrt(25,3); <br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>5.000</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bcsub.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcsub.html"><b>bcsub</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcscale.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcscale.html"><b>bcscale</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,161 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bcsub</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Subtrahiert zwei Zahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bcsub">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bcsub.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bcsub</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>bcsub</b>(string Operand,
|
||||
string Operand [,int Genauigkeit])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="97">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bcsub() wird der zweite Operand (ROperand) vom ersten Operanden<br>
|
||||
(LOperand) subtrahiert. Der Parameter Genauigkeit bestimmt die<br>
|
||||
Nachkommastellen im Ergebnis.</p>
|
||||
<p><b>Achtung:</b> Diese Funktion ist nur ausführbar, wenn PHP bei
|
||||
der Installation mit<br>
|
||||
--enable-bcmath konfiguriert wurde.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bcsub(17,9,3); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>8.000</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="bindec.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bindec.html"><b>bindec</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcsqrt.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcsqrt.html"><b>bcsqrt</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,165 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>bindec</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert eine binäre Zahl in eine dezimale Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, bindec">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/bindec.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>bindec</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>bindec</b>(string binary_string)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="97">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit bindec() wird eine binäre Zahl (binary_string) in eine dezimale
|
||||
Zahl<br>
|
||||
konvertiert.<br>
|
||||
Eine Binärzahl besteht ausschließlich aus den Ziffern 1 und
|
||||
0.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="decbin.html">decbin()</a></li>
|
||||
<li><a href="octdec.html">octdec()</a></li>
|
||||
<li><a href="hexdec.html">hexdec()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo bindec(101010); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>42</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="ceil.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="ceil.html"><b>ceil</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bcsub.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcsub.html"><b>bcsub</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,165 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>ceil</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Rundet auf die nächsthöhere ganze Zahl aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, ceil">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/ceil.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>ceil</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>ceil</b>(float number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="97">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit ceil() wird diejenige ganze Zahl zurückgegeben, welche größer
|
||||
oder gleich<br>
|
||||
der vorgegebenen Zahl (number) ist. Es wird ausschließlich aufgerundet,
|
||||
auch<br>
|
||||
wenn die Nachkommastelle kleiner als 5 ist.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="floor.html">floor()</a></li>
|
||||
<li><a href="round.html">round()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo ceil(9.4); <br>echo "<br>";<br>echo ceil(10); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>10<br>
|
||||
10</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="cos.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="cos.html"><b>cos</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="bindec.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bindec.html"><b>bindec</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>cos</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den Cosinuswert im Radianten">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, cos">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/cos.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>cos</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>cos</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="139">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit cos() kann man sich den Cosinuswert von arg im Bogenmaß zurückgeben<br>
|
||||
lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="sin.html">sin()</a></li>
|
||||
<li><a href="tan.html">tan()</a></li>
|
||||
<li><a href="acos.html">acos()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo cos(30); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0.15425144988758</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="decbin.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="decbin.html"><b>decbin</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="ceil.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="ceil.html"><b>ceil</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>decbin</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert eine dezimale Zahl in eine binäre Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, decbin">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/decbin.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>decbin</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>decbin</b>(int number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="139">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit decbin() wird eine dezimale Zahl (number) in eine binäre Zahl
|
||||
konvertiert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="bindec.html">bindec()</a></li>
|
||||
<li><a href="dechex.html">dechex()</a></li>
|
||||
<li><a href="decoct.html">decoct()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo decbin(42); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>101010</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="dechex.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="dechex.html"><b>dechex</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="cos.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="cos.html"><b>cos</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>dechex</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert eine dezimale Zahl in eine hexadezimale Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, dechex">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/dechex.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>dechex</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>dechex</b>(int number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="142">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit dechex() wird eine dezimale Zahl (number) in eine hexadezimale Zahl<br>
|
||||
konvertiert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="hexdec.html">hexdec()</a></li>
|
||||
<li><a href="decbin.html">decbin()</a></li>
|
||||
<li><a href="decoct.html">decoct()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo dechex(42); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2a</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="decoct.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="decoct.html"><b>decoct</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="decbin.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="decbin.html"><b>decbin</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>decoct</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert eine dezimale Zahl in eine oktale Darstellung">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, decoct">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/decoct.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>decoct</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>decoct</b>(int number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="142">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit decoct() wird eine dezimale Zahl (number) in oktale Darstellung konvertiert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="octdec.html">octdec()</a></li>
|
||||
<li><a href="decbin.html">decbin()</a></li>
|
||||
<li><a href="dechex.html">dechex()</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo decoct(42); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>52</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="deg2rad.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="deg2rad.html"><b>deg2rad</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="dechex.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="dechex.html"><b>dechex</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>deg2rad</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Rechnet eine Gradzahl in Bogenmass um">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, deg2rad">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/deg2rad.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>deg2rad</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">double <b>deg2rad</b>(double number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.4, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="121">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit deg2rad() wird eine übergebene Zahl (number als Winkelangabe)
|
||||
von Grad in<br>
|
||||
Bogenmaß umgerechnet.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="rad2deg.html">rad2deg()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo deg2rad(90); <br>?></pre>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1.5707963267949</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="exp.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="exp.html"><b>exp</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="decoct.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="decoct.html"><b>decoct</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,161 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>exp</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Eine Zahl wird mit e potenziert">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, exp">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/exp.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>exp</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>exp</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="107">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit exp() wird die Eulerscher Zahl e mit der übergebenen Zahl (arg)
|
||||
potenziert.<br>
|
||||
Dabei ist die Eulerscher Zahl e=2.7183.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="pow.html">pow()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo exp(10); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>22026.465794807</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="floor.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="floor.html"><b>floor</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="deg2rad.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="deg2rad.html"><b>deg2rad</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,166 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>floor</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Rundet auf die nächstkleinere ganze Zahl ab">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, floor">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/floor.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>floor</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>floor</b>(float number)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="107">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit floor() wird diejenige ganze Zahl ausgegeben, welche kleiner oder
|
||||
gleich der<br>
|
||||
vorgegebenen Zahl number ist. Es wird ausschließlich abgerundet,
|
||||
auch wenn die<br>
|
||||
Nachkommastelle größer als 5 ist.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="ceil.html">ceil()</a></li>
|
||||
<li><a href="round.html">round()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo floor(9.4); <br>echo "<br>";<br>echo floor(10); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>9<br>
|
||||
10</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="getrandmax.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="getrandmax.html"><b>getrandmax</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="exp.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="exp.html"><b>exp</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,169 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>getrandmax</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den größten Wert des Betriebssystem">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, getrandmax">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/getrandmax.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>getrandmax</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>getrandmax</b>(void)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="107">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit getrandmax() kann man sich den größten Wert zurückgeben
|
||||
lassen, den die<br>
|
||||
Funktion rand() auf der vorhandenen Plattform als Zufallszahl zurückgeben<br>
|
||||
könnte.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="rand.html">rand()</a></li>
|
||||
<li><a href="srand.html">srand()</a></li>
|
||||
<li><a href="mt_rand.html">mt_rand()</a></li>
|
||||
<li><a href="mt_srand.html">mt_srand()</a></li>
|
||||
<li><a href="mt_getrandmax.html">mt_getrandmax()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo "UNIX: " . getrandmax();<br>echo "<br>";<br>echo "Windows: " . getrandmax();<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>UNIX: 2147483647<br>
|
||||
Windows: 32767</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="hexdec.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="hexdec.html"><b>hexdec</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="floor.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="floor.html"><b>floor</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,165 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>hexdec</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert eine hexadezimale Zahl in eine dezimale Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, hexdec">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/hexdec.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>hexdec</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>hexdec</b>(string hex_string)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="159">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit hexdec() wird eine hexadezimale Zahl (hex_string) in eine dezimale
|
||||
Zahl<br>
|
||||
konvertiert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="dechex.html">dechex()</a></li>
|
||||
<li><a href="bindec.html">bindec()</a></li>
|
||||
<li><a href="octdec.html">octdec()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo hexdec("2a");<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>42</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="log.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="log.html"><b>log</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="getrandmax.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="getrandmax.html"><b>getrandmax</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,151 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Übersicht Mathematische-Funktionen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="In diesem Abschnitt werden Mathematische-Funktionen beschrieben.">
|
||||
<meta name="keywords" content="SELFPHP, Mathematische-Funktionen, abs, acos, asin, atan, atan2, base_convert, bcadd, bccomp, bcdiv, bcmod, bcmul, bcpow, bcscale, bcsqrt, bcsub, bindec, ceil, cos, decbin, dechex, decoct, deg2rad, exp, floor, getrandmax, hexdec, log, log10, max, min, mt_getrandmax, mt_rand, mt_srand, number_format, octdec, pi, pow, rad2deg, rand, round, sin, sqrt, srand, tan">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-03T08:00+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/index.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-03T08:00+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Ordner">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||
</head>
|
||||
|
||||
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>Mathematische-Funktionen</h2>
|
||||
</td></td>
|
||||
</tr> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/kapx.gif" width="30" height="26" vspace="6" border="0" alt="Kapitelseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||
<p> In diesem Abschnitt werden Mathematische-Funktionen beschrieben.<br>
|
||||
Der Abschnitt besteht aus folgenden Seiten:</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td nowrap> <img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="abs.html"><b>abs</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="acos.html"><b>acos</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="asin.html"><b>asin</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="atan.html"><b>atan</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="atan2.html"><b>atan2</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="base_convert.html"><b>base_convert</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcadd.html"><b>bcadd</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bccomp.html"><b>bccomp</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcdiv.html"><b>bcdiv</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcmod.html"><b>bcmod</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcmul.html"><b>bcmul</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcpow.html"><b>bcpow</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcscale.html"><b>bcscale</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcsqrt.html"><b>bcsqrt</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bcsub.html"><b>bcsub</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="bindec.html"><b>bindec</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="ceil.html"><b>ceil</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="cos.html"><b>cos</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="decbin.html"><b>decbin</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="dechex.html"><b>dechex</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="decoct.html"><b>decoct</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="deg2rad.html"><b>deg2rad</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="exp.html"><b>exp</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="floor.html"><b>floor</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="getrandmax.html"><b>getrandmax</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="hexdec.html"><b>hexdec</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="log.html"><b>log</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="log10.html"><b>log10</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="max.html"><b>max</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="min.html"><b>min</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_getrandmax.html"><b>mt_getrandmax</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_rand.html"><b>mt_rand</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_srand.html"><b>mt_srand</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="number_format.html"><b>number_format</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="octdec.html"><b>octdec</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="pi.html"><b>pi</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="pow.html"><b>pow</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="rad2deg.html"><b>rad2deg</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="rand.html"><b>rand</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="round.html"><b>round</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="sin.html"><b>sin</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="sqrt.html"><b>sqrt</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="srand.html"><b>srand</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="tan.html"><b>tan</b></a><br>
|
||||
<br>
|
||||
  </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,164 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>log</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den natürlichen Logarithmus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, log">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/log.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>log</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>log</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="159">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit log() kann man sich den natürlichen Logarithmus (zur Basis e=2.7183
|
||||
-<br>
|
||||
Eulerscher Zahl) des Parameters arg zurückgeben lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="exp.html">exp()</a></li>
|
||||
<li><a href="log10.html">log10()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo log(210); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>5.3471075307175</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="log10.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="log10.html"><b>log10</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="hexdec.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="hexdec.html"><b>hexdec</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,162 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>log10</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den Zehner-Logarithmus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, log10">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/log10.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>log10</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">float <b>log10</b>(float arg)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="111">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit log10() kann man sich den Logarithmus (Logarithmus zur Basis 10)
|
||||
des<br>
|
||||
Parameters arg zurückgeben lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="log.html">log()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo log10(210); <br>?></pre>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2.3222192947339</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="max.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="max.html"><b>max</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="log.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="log.html"><b>log</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>max</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt die größte Zahl innerhalb eines Arrays">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, max">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/max.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>max</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">mixed <b>max</b>(mixed arg1, mixed arg2,
|
||||
mixed argn)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="111">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit max() kann man sich den größten Wert der übergebenen
|
||||
Argumente (arg1 bis<br>
|
||||
argn) zurückgeben lassen. Dabei ist darauf zu achten, dass mindestens
|
||||
zwei Werte<br>
|
||||
vorhanden sein müssen, um eine Überprüfung vornehmen zu
|
||||
können. Sollten Sie<br>
|
||||
dennoch nur einen Wert übergeben wollen, so muss dieser ein Array
|
||||
sein.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="min.html">min()</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$array = array(5,2,45,12,9,13,22);<br>echo max($array); <br>echo "<br>";<br>echo max(1,2,3,4,5,6,7); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>45<br>
|
||||
7</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="min.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="min.html"><b>min</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="log10.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="log10.html"><b>log10</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>min</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt die kleinste Zahl eines Arrays">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, min">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/min.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>min</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">mixed <b>min</b>(mixed arg1, mixed arg2,
|
||||
mixed argn)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="111">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit min() kann man sich den kleinsten Wert der übergebenen Argumente
|
||||
(arg1<br>
|
||||
bis argn) zurückgeben lassen. Dabei ist darauf zu achten, dass mindestens
|
||||
zwei<br>
|
||||
Werte vorhanden sein müssen, um eine Überprüfung vornehmen
|
||||
zu können.<br>
|
||||
Sollten Sie dennoch nur einen Wert übergeben wollen, so muss dieser
|
||||
ein Array<br>
|
||||
sein.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="max.html">max()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$array = array(5,2,45,12,9,13,22);<br>echo min($array); <br>echo "<br>";<br>echo min(1,2,3,4,5,6,7); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2<br>
|
||||
1</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mt_getrandmax.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_getrandmax.html"><b>mt_getrandmax</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="max.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="max.html"><b>max</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,171 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mt_getrandmax</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den größten Wert eines Betriebssystem">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, mt_getrandmax">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/mt_getrandmax.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mt_getrandmax</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mt_getrandmax</b>(void)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.6, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="111">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mt_getrandmax() kann man sich den größten Wert zurückgeben
|
||||
lassen, den<br>
|
||||
die Funktion mt_rand() auf der vorhandenen Plattform zurückgeben
|
||||
könnte.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mt_rand.html">mt_rand()</a></li>
|
||||
<li><a href="mt_srand.html">mt_srand()</a></li>
|
||||
<li><a href="rand.html">rand()</a></li>
|
||||
<li><a href="srand.html">srand()</a></li>
|
||||
<li><a href="getrandmax.html">getrandmax()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo mt_getrandmax();<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>UNIX: 2147483647<br>
|
||||
Windows: 2147483647</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mt_rand.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_rand.html"><b>mt_rand</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="min.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="min.html"><b>min</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,176 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mt_rand</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt Zufallszahlen">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, mt_rand">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/mt_rand.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mt_rand</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mt_rand</b>([int min [, int max]])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.6, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="111">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mt_rand() man sich eine Zufallszahl zwischen min und max zurückgeben<br>
|
||||
lassen.<br>
|
||||
Gegenüber rand() erzeugt mt_rand() wesentlich bessere Zufallszahlen.
|
||||
Ohne die<br>
|
||||
Parameter min und max werden Zufallszahlen zwischen 0 und dem<br>
|
||||
plattformabhängigen Maximalwert geliefert. Dieser Maximalwert kann
|
||||
mit<br>
|
||||
mt_getrandmax() ermittelt werden. Sie sollten unbedingt immer den Befehl<br>
|
||||
mt_srand() vor mt_rand() benutzen, um nicht immer dieselben Werte zu bekommen.<br>
|
||||
</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mt_srand.html">mt_srand()</a></li>
|
||||
<li><a href="mt_getrandmax.html">mt_getrandmax()</a></li>
|
||||
<li><a href="rand.html">rand()</a></li>
|
||||
<li><a href="srand.html">srand()</a></li>
|
||||
<li><a href="getrandmax.html">getrandmax()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>mt_srand((double)microtime()*1000000);<br>$zufall = mt_rand(); <br>echo $zufall; <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1722492715 //kann aber auch ein anderer Wert sein!</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mt_srand.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_srand.html"><b>mt_srand</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mt_getrandmax.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_getrandmax.html"><b>mt_getrandmax</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mt_srand</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Legt einen internen Startwert für Zufallszahlen fest">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, mt_srand">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/mt_srand.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mt_srand</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>void <b>mt_srand</b>(int seed)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.6, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="215">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mt_srand() legt man einen internen Startwert für den "Mersenne-Twister"-<br>
|
||||
Zufallszahlengenerator von mt_rand() fest. Um nicht immer die gleichen
|
||||
Werte<br>
|
||||
zu bekommen, sollte man als Wert die aktuelle Zeit nehmen. Diese Funktion
|
||||
gibt<br>
|
||||
keinen Ergebniswert zurück!<br>
|
||||
</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mt_rand.html">mt_rand()</a></li>
|
||||
<li><a href="mt_getrandmax.html">mt_getrandmax()</a></li>
|
||||
<li><a href="rand.html">rand()</a></li>
|
||||
<li><a href="srand.html">srand()</a></li>
|
||||
<li><a href="getrandmax.html">getrandmax()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>mt_srand((double)microtime()*1000000); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57"> </td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="number_format.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="number_format.html"><b>number_format</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mt_rand.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_rand.html"><b>mt_rand</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,165 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>number_format</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Formatiert eine Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, number_format">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/number_format.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>number_format</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>string <b>number_format</b>(float number [, int decimals [, string dec_point
|
||||
[, string thousands_sep]]])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="56">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit number_format() kann man eine Zahl (number) formatieren. Die Parameter<br>
|
||||
haben folgende Bedeutung:<br>
|
||||
number ist der zu formatierende Wert<br>
|
||||
decimals Anzahl der Nachkommastellen<br>
|
||||
string1 legt das Zeichen vor den Nachkommastellen fest<br>
|
||||
string2 legt das Tausendertrennzeichen fest<br><br>Die Funktion akzeptiert ein, zwei oder vier Parameter (nicht drei).</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo number_format(2120,2,".",","); <br>echo "<br>";<br>echo number_format(2120,2,",","."); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">2,120.00<br>
|
||||
2.120,00
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="octdec.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="octdec.html"><b>octdec</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mt_srand.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mt_srand.html"><b>mt_srand</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,166 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>octdec</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Konvertiert eine oktale Zahl in eine dezimale Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, octdec">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/octdec.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>octdec</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>octdec</b>(string octal_string)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="118">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit octdec() wird eine oktale Zahl (octal_string) in eine dezimale Zahl<br>
|
||||
konvertiert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="decoct.html">decoct()</a></li>
|
||||
<li><a href="bindec.html">bindec()</a></li>
|
||||
<li><a href="hexdec.html">hexdec()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo octdec(52); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>42</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="pi.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="pi.html"><b>pi</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="number_format.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="number_format.html"><b>number_format</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,167 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>pi</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Errechnet den Nährungswert der Kreiszahl Pi">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, pi">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/pi.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>pi</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>double <b>pi</b>(void)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="61">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit pi() kann man sich den Näherungswert der Kreiszahl Pi zurückgeben
|
||||
lassen.<br>
|
||||
Dieser kann dann z.B. für Kreisberechnungen genutzt werden.</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>$pi = pi();<br>$r = 15;<br>$kreis_flaeche = $pi * pow($r,2);<br>$kreis_flaeche = round($kreis_flaeche,2);<br>$kreis_umfang = $pi * 2 * $r;<br>$kreis_umfang = round($kreis_umfang,2);<br>echo "<b>Kreisberechnung:</b><br>";<br>echo "r = " . $r . " mm <br>";<br>echo "Pi = " . $pi . "<br>";<br>echo "Fläche = " . $kreis_flaeche . " mm² <br>";<br>echo "Umfang = " . $kreis_umfang . " mm <br>";<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p><b>Kreisberechnung:</b><br>
|
||||
r = 15 mm <br>
|
||||
Pi = 3.1415926535898<br>
|
||||
Fläche = 706.86 mm² <br>
|
||||
Umfang = 94.25 mm</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="pow.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="pow.html"><b>pow</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="octdec.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="octdec.html"><b>octdec</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,166 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>pow</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Potenziert eine Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, pow">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/pow.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>pow</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>float <b>pow</b>(float base, float exp)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="118">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit pow() kann man die Zahl base mit dem Faktor exp potenzieren (base
|
||||
hoch<br>
|
||||
exp) lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="exp.html">exp()</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo pow(3,4); // Ergibt 3*3*3*3 = 81<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>81</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="rad2deg.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="rad2deg.html"><b>rad2deg</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="pi.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="pi.html"><b>pi</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,164 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>rad2deg</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Rechnet eine Zahl vom Bogenmass in Grad um">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, rad2deg">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/rad2deg.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>rad2deg</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>double <b>rad2deg</b>(double number)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3 >= 3.0.4, PHP 4</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="106">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit rad2deg() wird ein übergebener Winkel (number) von Bogenmaß
|
||||
in Grad<br>
|
||||
umgerechnet.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="deg2rad.html">deg2rad()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo rad2deg(1.5707963267949); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>90</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="rand.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="rand.html"><b>rand</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="pow.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="pow.html"><b>pow</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,179 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>rand</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt eine Zufallszahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, rand">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/rand.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>rand</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>rand</b>([int min [, int max]])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="106">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit rand() kann man sich eine Zufallszahl zwischen min und max zurückgeben<br>
|
||||
lassen. Es ist darauf zu achten, dass min kleiner ist als max und max
|
||||
nicht größer<br>
|
||||
ist als der maximale Wert, welcher auf der vorhandenen Plattform möglich
|
||||
ist.<br>
|
||||
Bei PHP mit der Versionsnummer kleiner als 3.0.7 hat max eine andere<br>
|
||||
Bedeutung: Die höchstmögliche Zahl ist min + max.<br>
|
||||
Die Parameter min und max sind optional. Wenn Sie keine Argumente übergeben,<br>
|
||||
werden Zufallszahlen zwischen 0 und dem plattformabhängigen Maximalwert<br>
|
||||
geliefert. Dieser Maximalwert kann mit getrandmax() ermittelt werden.<br>
|
||||
Sie sollten unbedingt immer den Befehl srand() vor rand() benutzen, um
|
||||
nicht<br>
|
||||
immer dieselben Werte zu bekommen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="srand.html">srand()</a></li>
|
||||
<li><a href="getrandmax.html">getrandmax()</a></li>
|
||||
<li><a href="mt_rand.html">mt_rand()</a></li>
|
||||
<li><a href="mt_srand.html">mt_srand()</a></li>
|
||||
<li><a href="mt_getrandmax.html">mt_getrandmax()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>srand((double)microtime()*1000000);<br>echo rand();<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1427835891 //kann aber auch ein anderer Wert sein!</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="round.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="round.html"><b>round</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="rad2deg.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="rad2deg.html"><b>rad2deg</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>round</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Rundet eine Zahl auf oder ab">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, round">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/round.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>round</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>double <b>round</b>(double val [, int precision])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="106">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit round() wird eine Zahl (val) auf- oder abgerundet. Der Parameter
|
||||
precision<br>
|
||||
ist optional und nur in PHP4 verfügbar. Mit precision kann man die<br>
|
||||
Nachkommastellen angeben, nach denen gerundet wird.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="ceil.html">ceil()</a></li>
|
||||
<li><a href="floor.html">floor()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo round(22.86); <br>echo "<br>";<br>echo round(22.25); <br>echo "<br>";<br>echo round(22.86 , 1); <br>echo "<br>";<br>echo round(22.25 , 1); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>23<br>
|
||||
22<br>
|
||||
22.9<br>
|
||||
22.3</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="sin.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="sin.html"><b>sin</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="rand.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="rand.html"><b>rand</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,164 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>sin</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den Sinuswert im Radianten">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, sin">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/sin.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>sin</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>float <b>sin</b>(float arg)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="140">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit sin() kann man sich den Sinuswert im Radianten zurückgeben lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="cos.html">cos()</a></li>
|
||||
<li><a href="tan.html">tan()</a></li>
|
||||
<li><a href="asin.html">asin()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo sin(1); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0.8414709848079</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="sqrt.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="sqrt.html"><b>sqrt</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="round.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="round.html"><b>round</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,159 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>sqrt</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt die Quadratwurzel einer Zahl">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, sqrt">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/sqrt.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>sqrt</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>float <b>sqrt</b>(float arg)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="38">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit sqrt() kann man sich die Quadratwurzel des Wertes arg zurückgeben
|
||||
lassen.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo sqrt(64); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>8</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="srand.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="srand.html"><b>srand</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="sin.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="sin.html"><b>sin</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>srand</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Legt den internen Startwert für den Zufallsgenerator fest">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, srand">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/srand.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>srand</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>void <b>srand</b>(int seed)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="38">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit srand() wird der interne Startwert für den Zufallsgenerator
|
||||
rand() festgelegt.<br>
|
||||
Um nicht immer gleichen Zufallszahlen zu bekommen, sollte immer die aktuelle<br>
|
||||
Zeit als Basis genommen werden.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="rand.html">rand()</a></li>
|
||||
<li><a href="getrandmax.html">getrandmax()</a></li>
|
||||
<li><a href="mt_rand.html">mt_rand()</a></li>
|
||||
<li><a href="mt_srand.html">mt_srand()</a></li>
|
||||
<li><a href="mt_getrandmax.html">mt_getrandmax()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>srand((double)microtime()*1000000);<br>echo rand();<br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1427835891 //kann aber auch ein anderer Wert sein!</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="tan.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="tan.html"><b>tan</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="sqrt.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="sqrt.html"><b>sqrt</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,167 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>tan</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt den Tangens im Radianten">
|
||||
<meta name="keywords" content="SELFPHP, PHP, Mathematische-Funktionen, tan">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mathematische_funktionen/tan.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Mathematische-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>tan</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>float <b>tan</b>(float arg)</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="146">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit tan() kann man sich den Tangenswert im Radianten zurückgeben
|
||||
lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="sin.html">sin()</a></li>
|
||||
<li><a href="cos.html">cos()</a></li>
|
||||
<li><a href="atan.html">atan()</a></li>
|
||||
<li><a href="atan2.html">atan2()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>echo tan(60); <br>?></pre>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="42">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>0.32004038937956</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="../mysql_funktionen/index.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="../mysql_funktionen/index.html"><b>MySQL-Funktionen</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="srand.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="srand.html"><b>srand</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>Mathematische-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,129 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Übersicht MySQL-Funktionen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="In diesem Abschnitt werden MySQL-Funktionen beschrieben.">
|
||||
<meta name="keywords" content="SELFPHP, MySQL-Funktionen, mysql_affected_rows, mysql_change_user, mysql_close, mysql_connect, mysql_create_db, mysql_data_seek, mysql_db_query, mysql_drop_db, mysql_errno, mysql_error, mysql_fetch_array, mysql_fetch_field, mysql_fetch_lengths, mysql_fetch_object, mysql_fetch_row, mysql_field_flags, mysql_field_len, mysql_field_name, mysql_field_seek, mysql_field_table, mysql_field_type, mysql_free_result, mysql_insert_id, mysql_list_dbs, mysql_list_fields, mysql_list_tables, mysql_num_fields, mysql_num_rows, mysql_pconnect, mysql_query, mysql_result, mysql_select_db, mysql_tablename">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-03T08:00+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/index.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-03T08:00+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Ordner">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||
</head>
|
||||
|
||||
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>MySQL-Funktionen</h2>
|
||||
</td></td>
|
||||
</tr> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/kapx.gif" width="30" height="26" vspace="6" border="0" alt="Kapitelseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||
<p> In diesem Abschnitt werden MySQL-Funktionen beschrieben.<br>
|
||||
Der Abschnitt besteht aus folgenden Seiten:</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td nowrap> <img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_affected_rows.html"><b>mysql_affected_rows</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_change_user.html"><b>mysql_change_user</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_close.html"><b>mysql_close</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_connect.html"><b>mysql_connect</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_create_db.html"><b>mysql_create_db</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_data_seek.html"><b>mysql_data_seek</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_db_query.html"><b>mysql_db_query</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_drop_db.html"><b>mysql_drop_db</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_errno.html"><b>mysql_errno</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_error.html"><b>mysql_error</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_array.html"><b>mysql_fetch_array</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_field.html"><b>mysql_fetch_field</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_lengths.html"><b>mysql_fetch_lengths</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_object.html"><b>mysql_fetch_object</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_row.html"><b>mysql_fetch_row</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_flags.html"><b>mysql_field_flags</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_len.html"><b>mysql_field_len</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_name.html"><b>mysql_field_name</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_seek.html"><b>mysql_field_seek</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_table.html"><b>mysql_field_table</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_type.html"><b>mysql_field_type</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_free_result.html"><b>mysql_free_result</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_insert_id.html"><b>mysql_insert_id</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_dbs.html"><b>mysql_list_dbs</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_fields.html"><b>mysql_list_fields</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_tables.html"><b>mysql_list_tables</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_num_fields.html"><b>mysql_num_fields</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_num_rows.html"><b>mysql_num_rows</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_pconnect.html"><b>mysql_pconnect</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_query.html"><b>mysql_query</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_result.html"><b>mysql_result</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_select_db.html"><b>mysql_select_db</b></a><br>
|
||||
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_tablename.html"><b>mysql_tablename</b></a><br>
|
||||
<br>
|
||||
  </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,187 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_affected_rows</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert die Anzahl betroffener Datensätze einer vorhergehenden MySQL Operation">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_affected_rows">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_affected_rows.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_affected_rows</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_affected_rows</b>([int
|
||||
Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="304">
|
||||
<p>Mit mysql_affected_rows() kann man sich die Menge der Datensätze<br>
|
||||
zurückgeben lassen, welche von einer vorangegangene MySQL-Operation<br>
|
||||
betroffen waren. Sollten Sie die optionale Verbindungskennung (Verbindungs-<br>
|
||||
Kennung) nicht angeben, so wird die momentane Verbindung verwendet.</p>
|
||||
<p>Folgende Anweisungen werden berücksichtigt:<br>
|
||||
DELETE<br>
|
||||
INSERT<br>
|
||||
UPDATE<br>
|
||||
Beachten Sie bitte, dass diese Funktion bei einer DELETE-Anweisung ohne<br>
|
||||
WHERE-Bedingung den Wert Null (0) zurückgeben wird, obwohl alle<br>
|
||||
Datensätze gelöscht wurden.</p>
|
||||
<p>Wenn Sie die Anzahl der Datensätze ermitteln möchten, die von
|
||||
SELECT-<br>
|
||||
Anweisungen zurückgegeben wurden, sollten Sie die Funktion<br>
|
||||
mysql_num_rows() nutzen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_num_rows.html">mysql_num_rows()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */
|
||||
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");
|
||||
$db_select = @MYSQL_SELECT_DB($db_name);
|
||||
$result = mysql_query("DELETE FROM selfphp_funktionen WHERE gruppe = 'Datenbanken'");
|
||||
echo mysql_affected_rows() . " Datensätze gelöscht!";
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2 Datensätze gelöscht!</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_change_user.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_change_user.html"><b>mysql_change_user</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="index.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,175 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_change_user</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Wechselt den zur Zeit angemeldeten Benutzer">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_change_user">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_change_user.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_change_user</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_change_user</b>(string
|
||||
Benutzername, string Kennwort [, string Datenbank [, int Verbindungs-Kennung]])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3>= 3.0.13</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_change_user() kann man den zur Zeit angemeldeten User ändern.<br>
|
||||
Dabei benötigt diese Funktion den neuen User (Benutzername) und das
|
||||
Passwort<br>
|
||||
(Kennwort), um ihn anzumelden. Mit dem optionalen Parameter Datenbank<br>
|
||||
können Sie einen Datenbanknamen angeben.<br>
|
||||
Sollte die optionale Verbindungskennung (Verbindungs-Kennung) fehlen,
|
||||
so wird<br>
|
||||
auf die momentane Verbindungskennung zurückgegriffen.<br>
|
||||
Beachten Sie bitte, dass diese Funktion eine MySQL-Datenbank mit der<br>
|
||||
Versionsnummer 3.23.3 oder höher benötigt.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */
|
||||
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");<br><br>if($db)<br> echo "Verbindung zur Datenbank wurde hergestellt";<br>echo "<br>";<br>if(mysql_change_user("matthias","self","selfphp",$db))<br> echo "User wurde gewechselt!";<br>else<br> echo "Konnte User nicht wechseln!";
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Verbindung zur Datenbank wurde hergestellt<br>
|
||||
User wurde gewechselt!</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_close.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_close.html"><b>mysql_close</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_affected_rows.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_affected_rows.html"><b>mysql_affected_rows</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,181 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_close</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Beendet eine Verbindung zum Datenbank-Server">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_close">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_close.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_close</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_close</b>([int Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_close() schließt man anhand der Verbindungskennung (Verbindungs-<br>
|
||||
Kennung) eine Verbindung zu einer MySQL-Datenbank. Im Erfolgsfall gibt
|
||||
diese<br>
|
||||
Funktion true, sonst false zurück.<br>
|
||||
Eigentlich müssen Sie nicht-persistente Verbindungen zu einer Datenbank
|
||||
nicht<br>
|
||||
explizit schließen, sollten dies aber tun, um einen guten Programmierstil<br>
|
||||
beizubehalten.<br>
|
||||
Beachten Sie bitte, dass mysql_close() keine persistenten Verbindungen,
|
||||
welche<br>
|
||||
mit mysql_pconnect() hergestellt wurden, schließen kann.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
<li><a href="mysql_pconnect.html">mysql_pconnect()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP<br>/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */
|
||||
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");<br><br>if($db)<br> echo "Verbindung zur Datenbank wurde hergestellt";<br>echo "<br>";<br>/* Schliessen der Datenbank-Verbindung */<br> $db_close = @MYSQL_CLOSE($db);<br> <br>if($db_close)<br> echo "Verbindung zur Datenbank geschlossen";<br>else<br> echo "Konnte Verbindung zur Datenbank nicht schliessen";
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Verbindung zur Datenbank wurde hergestellt<br>
|
||||
Verbindung zur Datenbank geschlossen</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_connect.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_connect.html"><b>mysql_connect</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_change_user.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_change_user.html"><b>mysql_change_user</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,200 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_connect</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Öffnet eine Verbindung zum Datenbank-Server">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_connect">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_connect.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_connect</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_connect</b>([string hostname[:port][:/path/to/socket]
|
||||
[, string Benutzername [, string Kennwort]]])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_connect() öffnet man eine Verbindung zu einer MySQL-Datenbank.<br>
|
||||
Im Erfolgsfall gibt diese Funktion eine Verbindungskennung, sonst false
|
||||
zurück.<br>
|
||||
Falls keine Verbindung erstellt werden kann, so können Sie eine eigene<br>
|
||||
Fehlermeldung zum Browser senden und danach das Skript abbrechen lassen<br>
|
||||
(siehe im Beispiel "or die").<br>
|
||||
Alle Parameter dieser Funktion sind optional; wenn Sie keinen Wert übergeben,<br>
|
||||
gelten folgende Vorgabewerte:<br>
|
||||
hostname - localhost<br>
|
||||
Benutzername - Name des Benutzers, dem der Server-Prozess gehört.<br>
|
||||
Kennwort - ein leeres Kennwort</p>
|
||||
<p>Falls Sie Zugriff auf eine MySQL-Datenbank im Internet haben, so werden
|
||||
Sie<br>
|
||||
die Zugangsdaten, die Sie von Ihrem Provider bekommen haben, in die dafür<br>
|
||||
vorgesehenen Parameter eintragen müssen (siehe Beispiel).<br>
|
||||
Als zusätzliche Parameter können Sie den :port (ab PHP 3.0B4)
|
||||
und den<br>
|
||||
:/path/to/socket (ab PHP 3.0.10) mit angeben.<br>
|
||||
Fehlermeldungen, die eventuell auftreten und ausgegeben werden, können
|
||||
Sie<br>
|
||||
mit einem "@" unterdrücken. Die Verbindung zur Datenbank
|
||||
wird mit dem<br>
|
||||
Skriptende oder der Funktion mysql_close() wieder geschlossen.<br>
|
||||
Falls Sie mysql_connect() ein zweites Mal mit den gleichen Argumenten<br>
|
||||
aufrufen, so wird keine neue Verbindung aufgebaut, sondern die vorhandene<br>
|
||||
Verbindungskennung genutzt.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_pconnect.html">mysql_pconnect()</a></li>
|
||||
<li><a href="mysql_close.html">mysql_close()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/
|
||||
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */
|
||||
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");
|
||||
$db_check = @MYSQL_SELECT_DB($db_name);<br>if($db)<br> echo "Verbindung zur Datenbank wurde hergestellt";
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Verbindung zur Datenbank wurde hergestellt</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_create_db.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_create_db.html"><b>mysql_create_db</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_close.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_close.html"><b>mysql_close</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,183 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_create_db</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Erzeugt eine Datenbank">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_create_db">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_create_db.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_create_db</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_create_db</b>(string Datenbankname
|
||||
[, int Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="196">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_create_db() kann man eine neue Datenbank (Datenbankname)<br>
|
||||
erzeugen. Bei der Erstellung der neuen Datenbank können Sie eine
|
||||
optionale<br>
|
||||
Verbindungskennung (Verbindungs-Kennung) angeben. Im Erfolgsfall gibt
|
||||
diese<br>
|
||||
Funktion true, sonst false zurück.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_drop_db.html">mysql_drop_db()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_createdb()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/
|
||||
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */
|
||||
$db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");
|
||||
if (mysql_create_db ($db_name)) <br> echo "Datenbank $db_name wurde erstellt!";
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Datenbank selfphp wurde erstellt!</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_data_seek.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_data_seek.html"><b>mysql_data_seek</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_connect.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_connect.html"><b>mysql_connect</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,217 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_data_seek</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Bewegt den internen Datensatz-Zeiger">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_data_seek">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_data_seek.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_data_seek</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_data_seek</b>(int Ergebnis-Kennung,int
|
||||
Datensatznummer)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="196">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_data_seek() bewegt man den internen Datensatz-Zeiger auf einen<br>
|
||||
Datensatz (Datensatznummer) unter Angabe der Ergebnis-Kennung (Ergebnis-<br>
|
||||
Kennung). Bei dem nächsten Aufruf der Funktion mysql_fetch_row()
|
||||
wird dann<br>
|
||||
der entsprechende Datensatz geholt.<br>
|
||||
Beachten Sie bitte, dass der erste Datensatz den Index 0 hat (wie das
|
||||
erste<br>
|
||||
Element eines Arrays).<br>
|
||||
Im Erfolgsfall gibt diese Funktion true, sonst false zurück.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
<li><a href="mysql_num_rows.html">mysql_num_rows()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/<b>*<br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/
|
||||
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "thunderbird";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $db_select = @MYSQL_SELECT_DB($db_name);<br> $result = mysql_query("SELECT * FROM selfphp_funktionen ORDER BY id");<br> mysql_data_seek ($result, 1); <br> $row = mysql_fetch_row($result);<br> echo $row[0] . "<br>";<br> echo $row[1] . "<br>";<br> echo $row[2] . "<br>";<br> echo $row[3];
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>2<br>
|
||||
Variablen-Funktionen<br>
|
||||
is_double<br>
|
||||
(PHP 3 )</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_db_query.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_db_query.html"><b>mysql_db_query</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_create_db.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_create_db.html"><b>mysql_create_db</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,227 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_db_query</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Es wird eine Anfrage an die Datenbank gesendet">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_db_query">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_db_query.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_db_query</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_db_query</b>(string Datenbank,
|
||||
string Anfrage [, int Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="196">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_db_query() stellt man eine Anfrage (Anfrage) an eine Datenbank.<br>
|
||||
Diese Funktion ist fast identisch mit der Funktion mysql_query(), mit
|
||||
der<br>
|
||||
Ausnahme, dass Sie bei mysql_db_query() die Datenbank direkt angeben<br>
|
||||
(Datenbank) und somit vorher nicht mit mysql_select_db() eine Datenbank<br>
|
||||
angeben müssen. <br>
|
||||
Mit dem optionalen Verbindungsparameter (Verbindungs-Kennung) können
|
||||
Sie<br>
|
||||
eine explizite Verbindungskennung angeben. Falls diese fehlt, so wird
|
||||
auf die<br>
|
||||
aktuelle Verbindung zurückgegriffen. Sollte dies auch fehlschlagen,
|
||||
so wird<br>
|
||||
versucht, eine Verbindung ohne Angaben von Argumenten (siehe mysql_connect)<br>
|
||||
zu erstellen.<br>
|
||||
Im Erfolgsfall gibt diese Funktion true, sonst false zurück.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/
|
||||
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "thunderbird";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $result = mysql_db_query("selfphp","SELECT * FROM selfphp_funktionen WHERE gruppe = 'Array-Funktionen' ORDER BY id");
|
||||
while($row = mysql_fetch_row($result)){ <br> echo $row[0] . "<br>"; <br> echo $row[1] . "<br>"; <br> echo $row[2] . "<br>"; <br> echo $row[3];<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1<br>
|
||||
Array-Funktionen<br>
|
||||
array_count_values<br>
|
||||
(PHP 4 >= 4.0b4)</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_drop_db.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_drop_db.html"><b>mysql_drop_db</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_data_seek.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_data_seek.html"><b>mysql_data_seek</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,187 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_drop_db</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Löscht eine Datenbank">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_drop_db">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_drop_db.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_drop_db</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_drop_db</b>(string Datenbankname
|
||||
[, int Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="196">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_drop_db() kann man versuchen, eine komplette Datenbank<br>
|
||||
(Datenbankname) vom Server zu löschen.<br>
|
||||
Mit dem optionalen Verbindungsparameter (Verbindungs-Kennung) können
|
||||
Sie<br>
|
||||
eine explizite Verbindungskennung angeben. Falls diese fehlt, wird auf
|
||||
die<br>
|
||||
aktuelle Verbindung zurückgegriffen. Sollte dies auch fehlschlagen,
|
||||
so wird<br>
|
||||
versucht, eine Verbindung ohne Angaben von Argumenten (siehe mysql_connect)<br>
|
||||
zu erstellen.<br>
|
||||
Im Erfolgsfall gibt diese Funktion true, sonst false zurück.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
<li><a href="mysql_create_db.html">mysql_create_db()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_dropdb()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre>
|
||||
<?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/
|
||||
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "thunderbird";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> if(mysql_drop_db("selfphp",$db))<br> echo "Datenbank gelöscht!";<br> else<br> echo "Konnte Datenbank nicht löschen!";<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Datenbank gelöscht!</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_errno.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_errno.html"><b>mysql_errno</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_db_query.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_db_query.html"><b>mysql_db_query</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,207 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_errno</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert die Fehlernummer einer bereits zuvor ausgeführten Operation">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_errno">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_errno.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_errno</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">int <b>mysql_errno</b>([int Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="196">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_errno() kann man sich die Fehlernummer einer zuvor ausgeführten<br>
|
||||
Operation zurückgeben lassen. Da MySQL-Fehler nicht zu einer Ausgabe
|
||||
von<br>
|
||||
Fehlermeldungen führen und das Skript normal weiter durchlaufen wird,
|
||||
sollten<br>
|
||||
Sie sich diese Fehlernummer zurückgeben lassen, um den Fehler zu
|
||||
beseitigen.<br>
|
||||
Mit dem optionalen Verbindungsparameter (Verbindungs-Kennung) können
|
||||
Sie<br>
|
||||
eine explizite Verbindungskennung angeben. Falls diese fehlt, wird auf
|
||||
die<br>
|
||||
aktuelle Verbindung zurückgegriffen. Sollte dies auch fehlschlagen,
|
||||
wird<br>
|
||||
versucht, eine Verbindung ohne Angaben von Argumenten (siehe mysql_connect)<br>
|
||||
zu erstellen.</p>
|
||||
<p>Im unteren Beispiel wurde versucht, auf eine Tabelle (self) zuzugreifen,
|
||||
welche in<br>
|
||||
der Datenbank "selfphp" nicht existent ist.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
<li><a href="mysql_error.html">mysql_error()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center colspan="4"><b>Aktuelle Tabellen in Datenbank selfphp</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td><b>selfphp_forum</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td><b>selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td><b>selfphp_guestbook</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td><b>selfphp_statistik</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "thunderbird";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT * FROM self"); <br> if($result) { <br> echo mysql_num_rows($result); <br> }<br> else{<br> echo "Fehler-Nr. " . mysql_errno()." - " .mysql_error();<br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Fehler-Nr. 1146 - Table 'selfphp.self' doesn't exist</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_error.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_error.html"><b>mysql_error</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_drop_db.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_drop_db.html"><b>mysql_drop_db</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,225 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_error</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert den Fehlertext einer bereits zuvor ausgeführten MySQL Operation">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_error">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_error.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_error</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">string <b>mysql_error</b>([int Verbindungs-Kennung])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="357">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_error() kann man sich den Fehlertext einer zuvor ausgeführten<br>
|
||||
Operation zurückgeben lassen. Da MySQL-Fehler nicht zu einer Ausgabe
|
||||
von<br>
|
||||
Fehlermeldungen führen und das Skript normal weiter durchlaufen wird,
|
||||
sollten<br>
|
||||
Sie sich diesen Fehlertext zurückgeben lassen, um den Fehler zu beseitigen.<br>
|
||||
Mit dem optionalen Verbindungsparameter (Verbindungs-Kennung) können
|
||||
Sie<br>
|
||||
eine explizite Verbindungskennung angeben. Falls diese fehlt, wird auf
|
||||
die<br>
|
||||
aktuelle Verbindung zurückgegriffen. Sollte dies auch fehlschlagen,
|
||||
wird<br>
|
||||
versucht, eine Verbindung ohne Angaben von Argumenten (siehe mysql_connect)<br>
|
||||
zu erstellen.</p>
|
||||
<p>Im unteren Beispiel wurde versucht, auf das Feld "grupp" zuzugreifen,
|
||||
das in der<br>
|
||||
Tabelle "selfphp_funktionen" nicht existent ist. Der Fehlertext
|
||||
wurde danach an<br>
|
||||
eine Funktion zur weiteren Bearbeitung übergeben.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
<li><a href="mysql_errno.html">mysql_errno()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
function error($line,$file,$string,$error=""){<br> $fehler = "<b>Fehler in Zeile ".$line." in ".$file."</b> ";<br> $fehler .= "<br>" . $string . "<br>";<br> if($error) $fehler .= "<b>MySQL-Error:</b> ". $error;<br> die($fehler);<br>}
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");
|
||||
$db_select = @MYSQL_SELECT_DB($db_name);<br> $result = mysql_query("DELETE FROM selfphp_funktionen WHERE grupp = 'Datenbanken'")
|
||||
or error(__LINE__,__FILE__,"Konnte Eintr&auml;ge nicht l&ouml;schen",mysql_error());<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p><b>Fehler in Zeile 25 in /www/users/test_php/index.php </b><br>
|
||||
Konnte Einträge nicht löschen<br>
|
||||
<b>MySQL-Error:</b> Unknown column 'grupp' in 'where clause'</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_fetch_array.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_array.html"><b>mysql_fetch_array</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_errno.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_errno.html"><b>mysql_errno</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,220 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_fetch_array</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Holt einen Datensatz als assoziatives Array">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_fetch_array">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_fetch_array.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_fetch_array</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">array <b>mysql_fetch_array</b>(int Ergebnis-Kennung
|
||||
[, int Ergebnistyp])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="198">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_fetch_array() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) Datensätze in einem assoziativen Array übergeben
|
||||
lassen.<br>
|
||||
Dabei werden die Feldnamen innerhalb der Tabelle als Schlüssel des
|
||||
Arrays<br>
|
||||
genutzt. Im Erfolgsfall liefert diese Funktion den aktuellen Datensatz,
|
||||
sonst wird<br>
|
||||
false zurückgegeben.<br>
|
||||
Der zweite Parameter (Ergebnistyp) ist optional. Sie können in diesem
|
||||
Parameter<br>
|
||||
folgende Konstanten übergeben:<br>
|
||||
MYSQL_ASSOC: Funktionsergebnis ist ein assioziatives Array.<br>
|
||||
MYSQL_NUM: Funktionsergebnis ist ein numerisch indiziertes Array.<br>
|
||||
MYSQL_BOTH: Funktionsergebnis ist ein Array, das die Elemente des<br>
|
||||
Ergebnisdatensatzes sowohl assoziativ als auch numerisch indiziert enthält.
|
||||
Dies<br>
|
||||
ist der Default-Wert.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT befehl, version FROM selfphp_funktionen ORDER BY befehl"); <br> while($row = mysql_fetch_array($result)) { <br> echo $row['befehl'] . " / ";<br> echo $row['version'] . "<br>"; <br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>array_count_values / (PHP 4 >= 4.0b4)<br>
|
||||
chdir / (PHP 3, PHP 4 )<br>
|
||||
is_double / (PHP 3 )</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_fetch_field.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_field.html"><b>mysql_fetch_field</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_error.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_error.html"><b>mysql_error</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,234 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_fetch_field</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Stellt ein Objekt mit Feldinformationen bereit">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_fetch_field">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_fetch_field.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_fetch_field</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">object <b>mysql_fetch_field</b>(int
|
||||
Ergebnis-Kennung [, int Feld-Offset])</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="240">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_fetch_field() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) ein Objekt mit Feldinformationen aus einem<br>
|
||||
Anfrageergebnis zurückgeben lassen. Gibt man den optionalen Parameter
|
||||
Feld-<br>
|
||||
Offset nicht an, so werden die Informationen des nächsten Feldes
|
||||
geliefert, das<br>
|
||||
noch nicht mit mysql_fetch_field() ausgegeben wurde.</p>
|
||||
<p>Die Eigenschaften des Objekts sind folgende: <br>
|
||||
name - Feldname innerhalb der Tabelle <br>
|
||||
table - Name der Tabelle, zu der das Feld gehört <br>
|
||||
max_length - max. Länge des Feldes <br>
|
||||
not_null - 1, das Feld kann nicht Null sein <br>
|
||||
primary_key - 1, das Feld ist ein Primärschlüssel<br>
|
||||
unique_key - 1, das Feld ist ein eindeutiger Schlüssel<br>
|
||||
multiple_key - 1, das Feld ist ein nicht eindeutiger Schlüssel<br>
|
||||
numeric - 1, das Feld ist vom Typ "numeric"<br>
|
||||
blob - 1, das Feld ist vom Typ "BLOB"<br>
|
||||
type - der Feld-Typ <br>
|
||||
unsigned - 1, das Feld ist vorzeichenlos<br>
|
||||
zerofill - 1, das Feld ist "zero-filled"</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_field_seek.html">mysql_field_seek()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> <br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT version FROM selfphp_funktionen WHERE id = '1'" ); <br> $row = mysql_fetch_row($result); <br> for($x=0; $x<count($row); $x++) { <br> $str = mysql_fetch_field($result,$x); <br> echo "name: " . $str -> name . "<br>"; <br> echo "table: " . $str -> table . "<br>"; <br> echo "max_length: " . $str -> max_length . "<br>"; <br> echo "not_null: " . $str -> not_null . "<br>"; <br> echo "primary_key: " . $str -> primary_key . "<br>";<br> echo "unique_key: " . $str -> unique_key . "<br>"; <br> echo "multiple_key" . $str -> multiple_key . "<br>";<br> echo "numeric: " . $str -> numeric . "<br>"; <br> echo "blob: " . $str -> blob . "<br>"; <br> echo "type: " . $str -> type . "<br>"; <br> echo "unsigned: " . $str -> unsigned . "<br>";<br> echo "zerofill: " . $str -> zerofill;<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>name: version<br>
|
||||
table: selfphp_funktionen<br>
|
||||
max_length: 16<br>
|
||||
not_null: 0<br>
|
||||
primary_key: 0<br>
|
||||
unique_key: 0<br>
|
||||
multiple_key0<br>
|
||||
numeric: 0<br>
|
||||
blob: 0<br>
|
||||
type: string<br>
|
||||
unsigned: 0<br>
|
||||
zerofill: 0</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_fetch_lengths.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_lengths.html"><b>mysql_fetch_lengths</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_fetch_array.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_array.html"><b>mysql_fetch_array</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,223 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_fetch_lengths</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Ermittelt die Länge eines Feldes in einem Datensatz">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_fetch_lengths">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_fetch_lengths.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_fetch_lengths</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">array <b>mysql_fetch_lengths</b>(int
|
||||
Ergebnis-Kennung)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="237">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_fetch_lengths() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) die Länge eines jeden Feldes in einem Datensatz<br>
|
||||
zurückgeben lassen.</p>
|
||||
<p>Als Rückgabewert dieser Funktion erhalten Sie ein Array mit den
|
||||
Längen der<br>
|
||||
Felder, im Fehlerfall wird false zurückgegeben.</p>
|
||||
<p>Folgende Funktionen werden unterstützt:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
<li><a href="mysql_fetch_array.html">mysql_fetch_array()</a></li>
|
||||
<li><a href="mysql_fetch_object.html">mysql_fetch_object()</a></li>
|
||||
</ul>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> while($row = mysql_fetch_row($result)) { <br> $laenge = mysql_fetch_lengths($result); <br> echo "$row[1] ($laenge[1])" . " - "; <br> echo "$row[2] ($laenge[2])<BR>"; <br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Array-Funktionen (16) - array_count_values (18)<br>
|
||||
Variablen-Funktionen (20) - is_double (9)<br>
|
||||
Verzeichnis-Funktionen (22) - chdir (5)<br>
|
||||
Mail-Funktionen (15) - mail (4)</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_fetch_object.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_object.html"><b>mysql_fetch_object</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_fetch_field.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_field.html"><b>mysql_fetch_field</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,224 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_fetch_object</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Stellt einen Datensatz als Objekt bereit">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_fetch_object">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_fetch_object.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_fetch_object</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">object <b>mysql_fetch_object</b>(int
|
||||
Ergebnis-Kennung [, int Ergebnistyp]))</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="237">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_fetch_object() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) Datensätze als ein Objekt mit Eigenschaften, die
|
||||
den Feldern<br>
|
||||
innerhalb der Tabelle entsprechen, übergeben lassen. Dabei können
|
||||
Sie anhand<br>
|
||||
der Feldnamen auf die Werte zugreifen. Im Erfolgsfall liefert diese Funktion
|
||||
den<br>
|
||||
aktuellen Datensatz, sonst wird false zurückgegeben.<br>
|
||||
Der zweite Parameter (Ergebnistyp) ist optional. Sie können in diesem
|
||||
Parameter<br>
|
||||
dieselben Konstanten wie in der Funktion mysql_fetch_array() übergeben:<br>
|
||||
MYSQL_ASSOC, MYSQL_NUM oder MYSQL_BOTH.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_array.html">mysql_fetch_array()</a></li>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> while ($row = mysql_fetch_object ($result)) {<br> echo $row -> id . " - ";<br> echo $row -> gruppe . " - ";<br> echo $row -> befehl . " - ";<br> echo $row -> version . "<br>";<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1 - Array-Funktionen - array_count_values - (PHP 4 >= 4.0b4)<br>
|
||||
2 - Variablen-Funktionen - is_double - (PHP 3 )<br>
|
||||
3 - Verzeichnis-Funktionen - chdir - (PHP 3, PHP 4)<br>
|
||||
4 - Mail-Funktionen - mail - (PHP 3, PHP 4)</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_fetch_row.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_row.html"><b>mysql_fetch_row</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_fetch_lengths.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_lengths.html"><b>mysql_fetch_lengths</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,220 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_fetch_row</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Stellt einen Datensatz als indiziertes Array bereit">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_fetch_row">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_fetch_row.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_fetch_row</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10><tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">array <b>mysql_fetch_row</b>(int Ergebnis-Kennung)</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="213">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_fetch_row() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) einen Datensatz in Form eines indizierten Arrays übergeben<br>
|
||||
lassen.<br>
|
||||
Im Erfolgsfall liefert diese Funktion den aktuellen Datensatz, sonst wird
|
||||
false<br>
|
||||
zurückgegeben.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_array.html">mysql_fetch_array()</a></li>
|
||||
<li><a href="mysql_fetch_object.html">mysql_fetch_object()</a></li>
|
||||
<li><a href="mysql_data_seek.html">mysql_data_seek()</a></li>
|
||||
<li><a href="mysql_fetch_lengths.html">mysql_fetch_lengths()</a></li>
|
||||
<li><a href="mysql_result.html">mysql_result()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> while ($row = mysql_fetch_row ($result)) {<br> echo $row[0] . " - ";<br> echo $row[1] . " - ";<br> echo $row[2] . " - ";<br> echo $row[3] . "<br>";<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>1 - Array-Funktionen - array_count_values - (PHP 4 >= 4.0b4)<br>
|
||||
2 - Variablen-Funktionen - is_double - (PHP 3 )<br>
|
||||
3 - Verzeichnis-Funktionen - chdir - (PHP 3, PHP 4)<br>
|
||||
4 - Mail-Funktionen - mail - (PHP 3, PHP 4)</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_field_flags.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_flags.html"><b>mysql_field_flags</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_fetch_object.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_object.html"><b>mysql_fetch_object</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,246 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_field_flags</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Stellt die Flags eines Feldes bereit">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_field_flags">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_field_flags.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_field_flags</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>string <b>mysql_field_flags</b>(int Ergebnis-Kennung, int Feldoffset)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="351">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Mit mysql_field_flags() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) die Flags eines Feldes (Feldoffset) in einem Anfrageergebnis<br>
|
||||
zurückgeben lassen.<br>
|
||||
Unter einem Flag versteht man die erweiterten Eigenschaften eines Feldes.<br>
|
||||
Die übergebenen Flags werden als einzelne Worte getrennt durch ein
|
||||
Leerzeichen<br>
|
||||
zurückgegeben. Folgende Flags werden unterstützt (ist von MySQL
|
||||
abhängig):<br>
|
||||
not_null<br>
|
||||
primary key<br>
|
||||
unique_key<br>
|
||||
multiple_key<br>
|
||||
blob<br>
|
||||
unsigned<br>
|
||||
zerofill<br>
|
||||
binary<br>
|
||||
enum<br>
|
||||
auto_increment<br>
|
||||
timestamp</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_fieldflags()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center><b>Field</b></td>
|
||||
<td align=center><b>Type</b></td>
|
||||
<td align=center><b>Null</b></td>
|
||||
<td align=center><b>Default</b></td>
|
||||
<td align=center><b>Extra</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>id</td>
|
||||
<td>int(4)</td>
|
||||
<td>No</td>
|
||||
<td>0</td>
|
||||
<td>auto_increment</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>gruppe</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>befehl</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>version</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center><b>Keyname</b></td>
|
||||
<td align=center><b>Unique</b></td>
|
||||
<td align=center><b>Field</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>PRIMARY</td>
|
||||
<td>Yes</td>
|
||||
<td>id</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db); <br> $result = mysql_query("SELECT id FROM selfphp_funktionen"); <br> $flags = explode(" ", mysql_field_flags($result,0));<br> for($x=0;$x<count($flags);$x++){<br> echo $flags[$x];<br> echo "<br>";<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>not_null<br>
|
||||
primary_key<br>
|
||||
auto_increment</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_field_len.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_len.html"><b>mysql_field_len</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_fetch_row.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_fetch_row.html"><b>mysql_fetch_row</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,219 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_field_len</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert die Länge eines Feldes">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_field_len">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_field_len.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_field_len</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_field_len</b>(int Ergebnis-Kennung, int Feldoffset)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="141">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_field_len() kann man sich anhand einer Ergebnis-Kennung (Ergebnis-<br>
|
||||
Kennung) und des Feldindex (Feldoffset) die Länge eines Feldes zurückgeben<br>
|
||||
lassen.</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_fieldlen()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center><b>Field</b></td>
|
||||
<td align=center><b>Type</b></td>
|
||||
<td align=center><b>Null</b></td>
|
||||
<td align=center><b>Default</b></td>
|
||||
<td align=center><b>Extra</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>id</td>
|
||||
<td>int(4)</td>
|
||||
<td>No</td>
|
||||
<td>0</td>
|
||||
<td>auto_increment</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>gruppe</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>befehl</td>
|
||||
<td>varchar(51)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>version</td>
|
||||
<td>varchar(52)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> $menge = mysql_num_rows($result);<br> for($x=0;$x<$menge;$x++){<br> echo mysql_field_len($result,$x);<br> echo "<br>";<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>4<br>
|
||||
50<br>
|
||||
51<br>
|
||||
52</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_field_name.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_name.html"><b>mysql_field_name</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_field_flags.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_flags.html"><b>mysql_field_flags</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,219 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_field_name</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert den Namen eines Feldes">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_field_name">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_field_name.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_field_name</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>string <b>mysql_field_name</b>(int Ergebnis-Kennung, int Feldoffset)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="113">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_field_name() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) und des Feldindex (Feldoffset) den Namen eines Feldes<br>
|
||||
zurückgeben lassen.</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_fieldname()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center><b>Field</b></td>
|
||||
<td align=center><b>Type</b></td>
|
||||
<td align=center><b>Null</b></td>
|
||||
<td align=center><b>Default</b></td>
|
||||
<td align=center><b>Extra</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>id</td>
|
||||
<td>int(4)</td>
|
||||
<td>No</td>
|
||||
<td>0</td>
|
||||
<td>auto_increment</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>gruppe</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>befehl</td>
|
||||
<td>varchar(51)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>version</td>
|
||||
<td>varchar(52)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> $menge = mysql_num_rows($result);<br> for($x=0;$x<$menge;$x++){<br> echo mysql_field_name($result,$x);<br> echo "<br>";<br> }
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>id<br>
|
||||
gruppe<br>
|
||||
befehl<br>
|
||||
version</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_field_seek.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_seek.html"><b>mysql_field_seek</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_field_len.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_len.html"><b>mysql_field_len</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,219 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_field_seek</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Bewegt den Feldzeiger auf ein bestimmtes Feld">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_field_seek">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_field_seek.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_field_seek</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_field_seek</b>(int Ergebnis-Kennung, int Feldoffset)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="113">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_field_seek() kann man anhand einer Ergebnis-Kennung (Ergebnis-<br>
|
||||
Kennung) den Feldzeiger auf den angegebenen Feldindex (Feldoffset) setzen.<br>
|
||||
Wird bei dem nächsten Aufruf der Funktion mysql_fetch_field() kein
|
||||
Feldindex<br>
|
||||
übergeben, so wird der zuvor mit mysql_field_seek() bestimmte Feldindex<br>
|
||||
genutzt.<br>
|
||||
Im unteren Beispiel wurde mittels "SELECT" eine Anfrage auf
|
||||
die Felder<br>
|
||||
"gruppe" und "befehl" gestellt. Diese beiden Felder
|
||||
haben intern den Feldindex<br>
|
||||
"gruppe=0 , befehl=1". Durch mysql_field_seek() wurde direkt
|
||||
auf das Feld 1<br>
|
||||
(befehl) verwiesen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_field.html">mysql_fetch_field()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("SELECT gruppe, befehl FROM selfphp_funktionen"); <br> mysql_field_seek($result,1); <br> $row = mysql_fetch_field($result); <br> echo $row->name;<br> echo "<br>";<br> echo $row->max_length;
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>befehl<br>
|
||||
18</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_field_table.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_table.html"><b>mysql_field_table</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_field_name.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_name.html"><b>mysql_field_name</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,216 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_field_table</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Holt den Namen der Tabelle, welches das Feld enthält">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_field_table">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_field_table.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_field_table</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>string <b>mysql_field_table</b>(int Ergebnis-Kennung, int Feldoffset)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="202">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_field_table() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) und des Feldindex (Feldoffset) den aktuellen<br>
|
||||
Tabellennamen, der dem zurückgegebenen Feld zugehörig ist, zurückgeben<br>
|
||||
lassen.<br>
|
||||
Im unteren Beispiel wurde mittels "SELECT" eine Anfrage auf
|
||||
die Felder<br>
|
||||
"gruppe" und "befehl" gestellt. Diese beiden Felder
|
||||
haben intern den Feldindex<br>
|
||||
"gruppe=0 , befehl=1". Durch mysql_field_table() wurde nun der
|
||||
Tabellennamen<br>
|
||||
von Feld 1 (befehl) angefordert.</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_fieldtable()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("SELECT gruppe, befehl FROM selfphp_funktionen"); <br> echo mysql_field_table($result,1);
|
||||
?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>selfphp_funktionen</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_field_type.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_type.html"><b>mysql_field_type</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_field_seek.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_seek.html"><b>mysql_field_seek</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,228 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_field_type</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Holt den Typ eines Feldes">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_field_type">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_field_type.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_field_type</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>string <b>mysql_field_type</b>(int Ergebnis-Kennung, int Feldoffset)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="311">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_field_type() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) und des Feldindex (Feldoffset) den Typ eines Feldes<br>
|
||||
zurückgeben lassen.</p>
|
||||
<p>Dieser kann unter anderem folgende Werte besitzen:<br>
|
||||
blob<br>
|
||||
date<br>
|
||||
datetime<br>
|
||||
int<br>
|
||||
real<br>
|
||||
string<br>
|
||||
time<br>
|
||||
timestamp<br>
|
||||
year</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_fieldtype()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center><b>Field</b></td>
|
||||
<td align=center><b>Type</b></td>
|
||||
<td align=center><b>Null</b></td>
|
||||
<td align=center><b>Default</b></td>
|
||||
<td align=center><b>Extra</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>id</td>
|
||||
<td>int(4)</td>
|
||||
<td>No</td>
|
||||
<td>0</td>
|
||||
<td>auto_increment</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>gruppe</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>befehl</td>
|
||||
<td>varchar(51)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>version</td>
|
||||
<td>varchar(52)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("SELECT * FROM selfphp_funktionen");<br> $menge = mysql_num_fields($result); <br> for($x=0;$x<$menge;$x++) { <br> $type = mysql_field_type($result,$x);<br> $name = mysql_field_name($result,$x);<br> echo "Feld " . $name . " ist vom Typ " . $type;<br> echo "<br>"; <br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Feld id ist vom Typ int<br>
|
||||
Feld gruppe ist vom Typ string<br>
|
||||
Feld befehl ist vom Typ string<br>
|
||||
Feld version ist vom Typ string</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_free_result.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_free_result.html"><b>mysql_free_result</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_field_table.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_table.html"><b>mysql_field_table</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,216 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_free_result</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Der belegte Speicher wird freigegeben">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_free_result">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_free_result.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_free_result</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_free_result</b>(int Ergebnis-Kennung)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="176">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_free_result() kann man anhand einer Ergebnis-Kennung (Ergebnis-<br>
|
||||
Kennung) den belegten Speicher wieder freigeben.<br>
|
||||
Diese Funktion ist auf Servern mit sehr wenig Arbeitsspeicher sinnvoll,
|
||||
um die<br>
|
||||
Resourcen wieder freizugeben. Nach Beendigung des Skripts wird der Speicher<br>
|
||||
automatisch wieder freigegeben.<br>
|
||||
Beachten Sie, dass nach dieser Funktion nicht mehr auf das Ergebnis Ihrer<br>
|
||||
Anfrage zurückgegriffen werden kann, da dieses entfernt wurde.</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_freeresult()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("SELECT befehl, version FROM selfphp_funktionen ORDER BY befehl");
|
||||
while($row = mysql_fetch_array($result)) { <br> echo $row['befehl'] . " / ";<br> echo $row['version'] . "<br>"; <br> }<br> if(mysql_free_result($result));<br> echo "Speicher wurde wieder freigegeben";<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>array_count_values / (PHP 4 >= 4.0b4)<br>
|
||||
chdir / (PHP 3, PHP 4 )<br>
|
||||
is_double / (PHP 3 )<br>
|
||||
Speicher wurde wieder freigegeben</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_insert_id.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_insert_id.html"><b>mysql_insert_id</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_field_type.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_field_type.html"><b>mysql_field_type</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,260 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_insert_id</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Holt die Verbindungs-Kennung einer vorherigen INSERT-Anweisung">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_insert_id">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_insert_id.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_insert_id</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_insert_id</b>(int Verbindungs-Kennung)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="133">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_insert_id() kann man sich anhand einer Verbindungskennung<br>
|
||||
(Verbindungs-Kennung) die Kennung des Datensatzes zurückgeben lassen,
|
||||
der<br>
|
||||
bei einer vorangegangenen INSERT-Operation angelegt wurde. Die<br>
|
||||
zurückgegebene Kennung ist ein Wert, welcher von der INSERT-Anweisung
|
||||
für<br>
|
||||
ein automatisch inkrementiertes Feld (AUTO_INCREMENT) vergeben wurde<br>
|
||||
(siehe Beispiel).<br>
|
||||
Falls der Wert für die Verbindungskennung (Verbindungs-Kennung) fehlt,
|
||||
so<br>
|
||||
wird auf die aktuelle Verbindung zurückgegriffen.</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$result = mysql_query("INSERT INTO selfphp_funktionen (gruppe,befehl,version)
|
||||
VALUES ('Variablen-Funktionen','empty','(PHP 3 )')");
|
||||
$var = mysql_insert_id(); <br> echo $var;<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>5</p>
|
||||
<p><b>Datenbank nachher:</b></p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>5</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>empty</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_list_dbs.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_dbs.html"><b>mysql_list_dbs</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_free_result.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_free_result.html"><b>mysql_free_result</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,190 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_list_dbs</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Stellt eine komplette Liste aller Datenbanken auf dem Server bereit">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_list_dbs">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_list_dbs.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_list_dbs</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_list_dbs</b>(int Verbindungs-Kennung)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="239">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_list_dbs() kann man sich anhand einer Verbindungskennung<br>
|
||||
(Verbindungs-Kennung) eine Liste aller verfügbaren Datenbanken auf
|
||||
dem<br>
|
||||
Datenbankserver zurückgeben lassen. Um das Ergebnis zu durchlaufen,
|
||||
sollten<br>
|
||||
Sie die Funktion mysql_tablename() nutzen.<br>
|
||||
Falls der Wert für die Verbindungskennung (Verbindungs-Kennung) fehlt,
|
||||
so<br>
|
||||
wird auf die aktuelle Verbindung zurückgegriffen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_tablename.html">mysql_tablename()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_listdbs()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre>
|
||||
<?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> mysql_select_db("selfphp",$db);
|
||||
$menge = mysql_num_rows($result);<br> for($x=0; $x<$menge; $x++) { <br> $database = mysql_tablename($result,$x); <br> echo $database;<br> echo "<br>"; <br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>chat<br>
|
||||
login<br>
|
||||
mysql<br>
|
||||
newsletter<br>
|
||||
selfphp<br>
|
||||
shop</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_list_fields.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_fields.html"><b>mysql_list_fields</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_insert_id.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_insert_id.html"><b>mysql_insert_id</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,241 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_list_fields</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Zeigt die Felder einer Tabelle">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_list_fields">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_list_fields.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_list_fields</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_list_fields</b>(string Datenbankname, string Tabellenname
|
||||
[, int Verbindungs-Kennung])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="399">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_list_fields() kann man sich anhand einer Verbindungskennung<br>
|
||||
(Verbindungs-Kennung), des Datenbanknamens (Datenbankname) und des<br>
|
||||
Tabellennames (Tabellenname) alle Felder einer Tabelle auflisten lassen.
|
||||
Als<br>
|
||||
Rückgabewert dieser Funktion erhalten Sie einen ganzzahlig positiven
|
||||
Wert als<br>
|
||||
Ergebnis-Kennung, welche Sie für andere Funktionen wie z.B.<br>
|
||||
mysql_field_name() nutzen können.<br>
|
||||
Falls der Wert für die Verbindungskennung (Verbindungs-Kennung) fehlt,
|
||||
so<br>
|
||||
wird auf die aktuelle Verbindung zurückgegriffen.<br>
|
||||
Auf mögliche Fehlermeldungen können Sie nur direkt zugreifen,
|
||||
wenn Sie der<br>
|
||||
Funktion ein "@" voranstellen, sonst wird die Fehlermeldung
|
||||
in die Variable<br>
|
||||
"$phperrmsg" geschrieben.</p>
|
||||
<p>Mit folgenden Funktionen können Sie auf die Ergebnis-Kennung zurückgreifen:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_field_flags.html">mysql_field_flags()</a></li>
|
||||
<li><a href="mysql_field_len.html">mysql_field_len()</a></li>
|
||||
<li><a href="mysql_field_name.html">mysql_field_name()</a></li>
|
||||
<li><a href="mysql_field_type.html">mysql_field_type()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_listfields()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center><b>Field</b></td>
|
||||
<td align=center><b>Type</b></td>
|
||||
<td align=center><b>Null</b></td>
|
||||
<td align=center><b>Default</b></td>
|
||||
<td align=center><b>Extra</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>id</td>
|
||||
<td>int(4)</td>
|
||||
<td>No</td>
|
||||
<td>0</td>
|
||||
<td>auto_increment</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>gruppe</td>
|
||||
<td>varchar(50)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>befehl</td>
|
||||
<td>varchar(51)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>version</td>
|
||||
<td>varchar(52)</td>
|
||||
<td>Yes</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre><?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $result = mysql_list_fields($db_name, "selfphp_funktionen",$db);<br> $menge = mysql_num_fields($result);<br> for($x=0;$x<$menge;$x++){<br> $type = mysql_field_type($result,$x);<br> $name = mysql_field_name($result,$x); <br> $len = mysql_field_len($result,$x); <br> $flags = mysql_field_flags($result,$x); <br> echo "Feld <b>$name</b>:<br>";<br> echo "&nbsp;&nbsp;&nbsp;$type [$len]";<br> echo "$flags<BR>";<br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Feld <b>id</b>:<br>
|
||||
int [4] not_null primary_key auto_increment<br>
|
||||
Feld <b>gruppe</b>:<br>
|
||||
string [50] <br>
|
||||
Feld <b>befehl</b>:<br>
|
||||
string [51] <br>
|
||||
Feld <b>version</b>:<br>
|
||||
string [52]</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_list_tables.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_tables.html"><b>mysql_list_tables</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_list_dbs.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_dbs.html"><b>mysql_list_dbs</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,201 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_list_tables</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Stellt eine komplette Liste aller Tabellen in einer Datenbank">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_list_tables">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_list_tables.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_list_tables</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_list_tables</b>(string Datenbankname [, int Verbindungs-Kennung])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="209">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_list_tables() kann man sich anhand eines Datenbanknamens<br>
|
||||
(Datenbankname) und einer optionalen Verbindungskennung (Verbindungs-<br>
|
||||
Kennung) alle Tabellen einer Datenbank zurückgeben lassen. Als Rückgabewert<br>
|
||||
dieser Funktion erhalten Sie einen ganzzahlig positiven Wert als Ergebnis-<br>
|
||||
Kennung; dieses Ergebnis können Sie mit der Funktion mysql_tablename()<br>
|
||||
durchlaufen, um die Namen der Tabellen abzurufen.<br>
|
||||
Sollte die Verbindungskennung fehlen, so wird auf die aktuelle Verbindung<br>
|
||||
zurückgegriffen.</p>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_listtables()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr>
|
||||
<td align=center colspan="4"><b>Aktuelle Tabellen in Datenbank selfphp</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td><b>selfphp_forum</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td><b>selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td><b>selfphp_guestbook</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td><b>selfphp_statistik</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre><?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "thunderbird";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $result = mysql_list_tables($db_name,$db); <br> $menge = mysql_num_rows($result);<br> for($x=0;$x<$menge;$x++){ <br> $table_name = mysql_tablename($result,$x); <br> echo $table_name;<br> echo "<br>";<br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>selfphp_forum<br>
|
||||
selfphp_funktionen<br>
|
||||
selfphp_guestbook<br>
|
||||
selfphp_statistik</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_num_fields.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_num_fields.html"><b>mysql_num_fields</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_list_fields.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_fields.html"><b>mysql_list_fields</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,218 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_num_fields</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Die Menge der Felder eines Ergebnis in einer Anfrage werden geliefert">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_num_fields">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_num_fields.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_num_fields</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_num_fields</b>(int Ergebnis-Kennung)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="204">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_num_fields() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) die Anzahl der Felder eines Ergebnisses zurückgeben<br>
|
||||
lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_db_query.html">mysql_db_query()</a></li>
|
||||
<li><a href="mysql_fetch_field.html">mysql_fetch_field()</a></li>
|
||||
<li><a href="mysql_num_rows.html">mysql_num_rows()</a></li>
|
||||
<li><a href="mysql_query.html">mysql_query()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_numfields()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre><?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $db_select = @MYSQL_SELECT_DB($db_name);<br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> $menge = mysql_num_fields($result);<br> echo $menge;<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>4</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_num_rows.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_num_rows.html"><b>mysql_num_rows</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_list_tables.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_list_tables.html"><b>mysql_list_tables</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,220 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_num_rows</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Die Menge der Datensätze in einem Ergebnis werden geliefert">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_num_rows">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_num_rows.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_num_rows</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_num_rows</b>(int Ergebnis-Kennung)</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="212">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_num_rows() kann man sich anhand einer Ergebnis-Kennung<br>
|
||||
(Ergebnis-Kennung) die Anzahl der Datensätze eines Ergebnisses zurückgeben<br>
|
||||
lassen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_db_query.html">mysql_db_query()</a></li>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
<li><a href="mysql_query.html">mysql_query()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_numrows()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre><?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $db_select = @MYSQL_SELECT_DB($db_name);<br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> $menge = mysql_num_rows($result);<br> echo "<b>$menge Datensätze gefunden<br></b>";<br> while($row = mysql_fetch_row($result)){<br> echo $row[1] . " - " . $row[2];<br> echo "<br><br>";<br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p><b>4 Datensätze gefunden</b><br>
|
||||
Array-Funktionen - array_count_values</p>
|
||||
<p>Variablen-Funktionen - is_double</p>
|
||||
<p>Verzeichnis-Funktionen - chdir</p>
|
||||
<p>Mail-Funktionen - mail</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_pconnect.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_pconnect.html"><b>mysql_pconnect</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_num_fields.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_num_fields.html"><b>mysql_num_fields</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,209 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_pconnect</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Öffnete eine persistente Verbindung zum MySQL Server">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_pconnect">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_pconnect.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_pconnect</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_pconnect</b>([string hostname[:port][:/path/to/socket] [,
|
||||
string Benutzername [, string Kennwort]]])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="313">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_pconnect() öffnet man eine persistente Verbindung zu einer
|
||||
MySQL-<br>
|
||||
Datenbank. Im Erfolgsfall gibt diese Funktion eine Verbindungskennung,
|
||||
sonst<br>
|
||||
false zurück.<br>
|
||||
Falls keine Verbindung erstellt werden kann, können Sie eine eigene<br>
|
||||
Fehlermeldung zum Browser senden und danach das Skript abbrechen lassen<br>
|
||||
(siehe im Beispiel "or die").<br>
|
||||
Alle Parameter dieser Funktion sind optional; wenn Sie keinen Wert übergeben,<br>
|
||||
gelten folgende Vorgabewerte:<br>
|
||||
hostname - localhost<br>
|
||||
Benutzername - Name des Benutzers, dem der Server-Prozess gehört<br>
|
||||
Kennwort - ein leeres Kennwort</p>
|
||||
<p>Falls Sie Zugriff auf eine MySQL-Datenbank im Internet haben, werden
|
||||
Sie<br>
|
||||
die Zugangsdaten, die Sie von Ihrem Provider bekommen haben, in die dafür<br>
|
||||
vorgesehenen Parameter eintragen müssen (siehe Beispiel).<br>
|
||||
Als zusätzliche Parameter können Sie den :port (ab PHP 3.0B4)
|
||||
und den<br>
|
||||
:/path/to/socket (ab PHP 3.0.10) mit angeben.<br>
|
||||
Fehlermeldungen, die eventuell auftreten und ausgegeben werden, können
|
||||
Sie mit<br>
|
||||
einem "@" unterdrücken. <br>
|
||||
Die Verbindung zur Datenbank wird nicht mit dem Skriptende geschlossen.</p>
|
||||
<p>Folgendes ist gegenüber mysql_connect() anders:</p>
|
||||
<ol>
|
||||
<li> Es wird versucht, vor dem Verbindungsaufbau eine persistente Verbindung<br>
|
||||
zum gleichen Host mit dem gleichen Benutzer und Passwort zu erstellen.<br>
|
||||
Gelingt dies, so wird die Verbindungskennung dieser Verbindung<br>
|
||||
zurückgegeben.</li>
|
||||
<li>Die Verbindung wird nicht mit dem Beenden des Skripts geschlossen,
|
||||
sondern<br>
|
||||
bleibt bestehen für einen zukünftigen Verbindungsaufbau.<br>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/<br>
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_PCONNECT($db_server,$db_user,$db_passwort)
|
||||
or die ("Konnte keine Verbindung zur Datenbank herstellen");
|
||||
$db_check = @MYSQL_SELECT_DB($db_name);<br> if($db)<br> echo "Verbindung zur Datenbank wurde hergestellt";<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Verbindung zur Datenbank wurde hergestellt</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_query.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_query.html"><b>mysql_query</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_num_rows.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_num_rows.html"><b>mysql_num_rows</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,229 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_query</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Sendet eine SQL Anfrage zum Datenbankserver">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_query">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_query.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_query</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_query</b>(string Anfrage [, int Verbindungs-Kennung])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="297">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_query() sendet man eine SQL-Anfrage (Anfrage) an einen<br>
|
||||
Datenbankserver. Wird der optionale Parameter der Verbindungskennung<br>
|
||||
(Verbindungs-Kennung) nicht angegeben, so wird versucht, eine Verbindung<br>
|
||||
ohne Angaben von Argumenten (siehe mysql_connect) aufzubauen.<br>
|
||||
Die Funktion mysql_query() liefert im Erfolgsfall true, sonst false zurück.<br>
|
||||
Beachten Sie bitte, dass diese Funktion keine Angaben über die Anzahl
|
||||
der<br>
|
||||
Datensätze zurückgibt.<br>
|
||||
Um auf die Datensätze zugreifen zu können, sollten Sie die unten
|
||||
stehenden<br>
|
||||
Funktionen nutzen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_affected_rows.html">mysql_affected_rows()</a></li>
|
||||
<li><a href="mysql_db_query.html">mysql_db_query()</a></li>
|
||||
<li><a href="mysql_free_result.html">mysql_free_result()</a></li>
|
||||
<li><a href="mysql_result.html">mysql_result()</a></li>
|
||||
<li><a href="mysql_select_db.html">mysql_select_db()</a></li>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre><?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);<br> $db_select = @MYSQL_SELECT_DB($db_name);<br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> $menge = mysql_num_rows($result);<br> echo "<b>$menge Datensätze gefunden<br></b>";<br> while($row = mysql_fetch_row($result)){<br> echo $row[1] . " - " . $row[2];<br> echo "<br><br>";<br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p><b>5 Datensätze gefunden</b><br>
|
||||
Array-Funktionen - array_count_values</p>
|
||||
<p>Variablen-Funktionen - is_double</p>
|
||||
<p>Verzeichnis-Funktionen - chdir</p>
|
||||
<p>Mail-Funktionen - mail</p>
|
||||
<p>Variablen-Funktionen - empty</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_result.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_result.html"><b>mysql_result</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_pconnect.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_pconnect.html"><b>mysql_pconnect</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,233 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_result</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Liefert das Ergebnis einer Anfrage">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_result">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_result.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_result</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_result</b>(int Ergebnis-Kennung, int Datensatz-Index [,
|
||||
mixed Feld])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="206">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_result() kann man sich anhand einer Ergebnis-Kennung (Ergebnis-<br>
|
||||
Kennung) und der Angabe des Datensatz-Index (Datensatz-Index) den Inhalt<br>
|
||||
eines Feldes zurückgeben lassen. Mit dem optionalen Paremeter Feld
|
||||
kann man<br>
|
||||
einen Feldnamen in der Form "tablename.feldname" (siehe Beispiel)
|
||||
angeben.<br>
|
||||
Sollte das Feld ein Alias besitzen (select gruppe as group), so ist dieser
|
||||
Alias als<br>
|
||||
Feldname zu nutzen.<br>
|
||||
Falls die MySQL-Anfrage sehr viele Datensätze enthält, sollten
|
||||
Sie aus<br>
|
||||
Geschwindigkeitsgründen auf die unten stehenden Funktionen zurückgreifen.</p>
|
||||
<p>Schnellere Funktionen:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_fetch_array.html">mysql_fetch_array()</a></li>
|
||||
<li><a href="mysql_fetch_object.html">mysql_fetch_object()</a></li>
|
||||
<li><a href="mysql_fetch_row.html">mysql_fetch_row()</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>/*<b><br>
|
||||
</b><b>Datenbank:</b> </p>
|
||||
<table border="0" bgcolor=A6A6A6>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td align=center colspan="4"><b>Tabelle selfphp_funktionen</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center><b>id</b></td>
|
||||
<td align=center><b>gruppe</b></td>
|
||||
<td align=center><b>befehl</b></td>
|
||||
<td align=center><b>version</b></td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>1</td>
|
||||
<td>Array-Funktionen</td>
|
||||
<td>array_count_values</td>
|
||||
<td>(PHP 4 >= 4.0b4)</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>2</td>
|
||||
<td>Variablen-Funktionen</td>
|
||||
<td>is_double</td>
|
||||
<td>(PHP 3 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=DDDDDD>
|
||||
<td>3</td>
|
||||
<td>Verzeichnis-Funktionen</td>
|
||||
<td>chdir</td>
|
||||
<td>(PHP 3, PHP 4 )</td>
|
||||
</tr>
|
||||
<tr bgcolor=CCCCCC>
|
||||
<td>4</td>
|
||||
<td>Mail-Funktionen</td>
|
||||
<td>mail</td>
|
||||
<td>(PHP 3. PHP 4 )</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>*/</p>
|
||||
<pre><?PHP
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort);
|
||||
$db_select = @MYSQL_SELECT_DB($db_name);<br> $result = mysql_query("SELECT * FROM selfphp_funktionen"); <br> for($x=0;$x<mysql_num_rows($result);$x++) { <br> $str_1 = mysql_result($result,$x, "selfphp_funktionen.id"); <br> echo "id: $str_1 <br>"; <br> $str_2 = mysql_result($result,$x,1); <br> echo "gruppe: $str_2 <br><br>"; <br> }<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>id: 1 <br>
|
||||
gruppe: Array-Funktionen </p>
|
||||
<p>id: 2 <br>
|
||||
gruppe: Variablen-Funktionen </p>
|
||||
<p>id: 3 <br>
|
||||
gruppe: Verzeichnis-Funktionen </p>
|
||||
<p>id: 4 <br>
|
||||
gruppe: Mail-Funktionen </p>
|
||||
<p>id: 5 <br>
|
||||
gruppe: Variablen-Funktionen</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_select_db.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_select_db.html"><b>mysql_select_db</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_query.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_query.html"><b>mysql_query</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,188 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>mysql_select_db</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||
<meta name="description" content="Wählt eine Datenbank aus">
|
||||
<meta name="keywords" content="SELFPHP, PHP, MySQL-Funktionen, mysql_select_db">
|
||||
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/mysql_funktionen/mysql_select_db.html">
|
||||
<meta name="DC.Language" content="de">
|
||||
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||
<meta name="SELF.Version" content="1">
|
||||
<meta name="SELF.Pagetype" content="Information">
|
||||
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // MySQL-Funktionen == index.html">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||
<h2>mysql_select_db</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding=10>
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>int <b>mysql_select_db</b>(string Datenbankname [, int Verbindungs-Kennung])</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="32">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="206">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<p>Mit mysql_select_db() wählt man eine Datenbank aus. Im Erfolgsfall
|
||||
gibt diese<br>
|
||||
Funktion true, sonst false zurück.<br>
|
||||
Als Parameter wird der Datenbankname (Datenbankname) gefordert. Sie können<br>
|
||||
zusätzlich eine Verbindungskennung (Verbindungs-Kennung) mit angeben.
|
||||
Fehlt<br>
|
||||
die Verbindungskennung, so wird die aktuelle Verbindungskennung genutzt.<br>
|
||||
Fehlt auch diese Kennung, so wird versucht, eine Verbindung ohne Angaben
|
||||
von<br>
|
||||
Argumenten (siehe mysql_connect) herzustellen.</p>
|
||||
<p>Siehe auch:</p>
|
||||
<ul>
|
||||
<li><a href="mysql_connect.html">mysql_connect()</a></li>
|
||||
<li><a href="mysql_pconnect.html">mysql_pconnect()</a></li>
|
||||
<li><a href="mysql_query.html">mysql_query()</a></li>
|
||||
</ul>
|
||||
<p>Abwärtskompatible Funktionen:</p>
|
||||
<ul>
|
||||
<li>mysql_selectdb()</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="66">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||
<pre><?PHP
|
||||
/* <br> Allgemeine Daten fuer die Datenbankanbindung<br> und direkter Connect zur Datenbank. Nach<br> Einbindung dieses Segments kann direkt mit<br> MySQL-Befehlen auf die Datenbank zugegriffen<br> werden.<br>*/<br>
|
||||
/* Datenbankserver - In der Regel die IP */<br> $db_server = "localhost";</pre>
|
||||
<pre>/* Datenbankname */
|
||||
$db_name = "selfphp";</pre>
|
||||
<pre>/* Datenbankuser */
|
||||
$db_user = "root";</pre>
|
||||
<pre>/* Datenbankpasswort */
|
||||
$db_passwort = "mega";
|
||||
|
||||
/* Erstellt Connect zu Datenbank her */<br> $db = @MYSQL_PCONNECT($db_server,$db_user,$db_passwort)
|
||||
or die ("Konnte keine Verbindung zur Datenbank herstellen");<br> $db_select = @MYSQL_SELECT_DB($db_name);<br> if($db_select)<br> echo "Datenbank wurde ausgewählt";<br>?></pre>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||
|
||||
<table width="100%" cellpadding=10 height="45">
|
||||
<tr>
|
||||
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||
<p>Datenbank wurde ausgewählt</p>
|
||||
<p></p>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="mysql_tablename.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_tablename.html"><b>mysql_tablename</b></a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="mysql_result.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||
<a href="mysql_result.html"><b>mysql_result</b></a> </td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||
<a href="index.html"><b>MySQL-Funktionen</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user