recherches récentes:
incluez les fonctions ,
fonctions variables ,
fonctions de poteau...
Si vous êtes nouveau au PHP ou devez juste régénérer vos qualifications, c'est l'endroit à commencer. Cette série de cours d'instruction te donnera la connaissance de base que vous devrez créer un simple Site Web de PHP.
Le PHP est un langage de programmation r3fléchissant à l'origine conçu pour produire les pages Web dynamiques. [1] Le PHP est employé principalement dans le serveur-côté scripting, mais peut être employé d'une ligne de commande interface ou dans des applications graphiques autonomes. Des interfaces utilisateurs textuelles peuvent également être créées utilisant des ncurses.
(PECL maxdb:1.0-7.6.00.38)
maxdb->warning_count — Retourne le nombre d'avertissements depuis la dernière requête pour un lien donné
Style procédural
Style orienté objet (méthode)
maxdb_warning_count() retourne le nombre d'avertissements depuis la dernière requête dans la connexion représentée par le paramètre link .
Nombre d'avertissements ou zéro s'il n'y en a aucun.
Exemple #1 Style orienté objet
<?php
$maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB");
/* Vérification de la connexion */
if (maxdb_connect_errno()) {
printf("Echec de la connexion : %s\n", maxdb_connect_error());
exit();
}
$maxdb->query("CREATE TABLE temp.mycity LIKE hotel.city");
/* un nom de ville remarquablement long dans Wales */
$query = "INSERT INTO temp.mycity (zip, name) VALUES('11111',
'Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch')";
$maxdb->query($query);
printf ("Nombre d'avertissements : %d\n", $maxdb->warning_count);
/* Fermeture de la connexion */
$maxdb->close();
?>
Exemple #2 Style procédural
<?php
$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");
/* Vérification de la connexion */
if (maxdb_connect_errno()) {
printf("Echec de la connexion : %s\n", maxdb_connect_error());
exit();
}
maxdb_query($link, "CREATE TABLE temp.mycity LIKE hotel.city");
/* un nom de ville remarquablement long dans Wales */
$query = "INSERT INTO temp.mycity (zip, name) VALUES('11111',
'Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch')";
maxdb_query($link, $query);
printf ("Nombre d'avertissements : %d\n", maxdb_warning_count($link));
/* Fermeture de la connexion */
maxdb_close($link);
?>
L'exemple ci-dessus va afficher :
Warning: maxdb_query(): -8004 POS(62) Constant must be compatible with column type and length <...> Nombre d'avertissements : 0
Des autres fonctions utiles :
ref.maxdb | maxdb.setup | maxdb.resources | maxdb.installation | maxdb.examples | maxdb.constants | maxdb.configuration | intro.maxdb | function.maxdb-warning-count | function.maxdb-use-result | function.maxdb-thread-safe | function.maxdb-thread-id | function.maxdb-store-result | function.maxdb-stmt-store-result | function.maxdb-stmt-sqlstate | function.maxdb-stmt-send-long-data | function.maxdb-stmt-result-metadata | function.maxdb-stmt-reset | function.maxdb-stmt-prepare | function.maxdb-stmt-param-count | function.maxdb-stmt-num-rows | function.maxdb-stmt-init | function.maxdb-stmt-free-result | function.maxdb-stmt-fetch | function.maxdb-stmt-execute | function.maxdb-stmt-error | function.maxdb-stmt-errno | function.maxdb-stmt-data-seek | function.maxdb-stmt-close | function.maxdb-stmt-close-long-data | function.maxdb-stmt-bind-result | function.maxdb-stmt-bind-param | function.maxdb-stmt-affected-rows | function.maxdb-stat | function.maxdb-ssl-set | function.maxdb-sqlstate | function.maxdb-set-opt | function.maxdb-server-init | function.maxdb-server-end | function.maxdb-send-query | function.maxdb-send-long-data | function.maxdb-select-db | function.maxdb-rpl-query-type | function.maxdb-rpl-probe | function.maxdb-rpl-parse-enabled | function.maxdb-rollback | function.maxdb-report | function.maxdb-real-query | function.maxdb-real-escape-string | function.maxdb-real-connect | function.maxdb-query | function.maxdb-prepare | function.maxdb-ping | function.maxdb-param-count | function.maxdb-options | function.maxdb-num-rows | function.maxdb-num-fields | function.maxdb-next-result | function.maxdb-multi-query | function.maxdb-more-results | function.maxdb-master-query | function.maxdb-kill | function.maxdb-insert-id | function.maxdb-init | function.maxdb-info | function.maxdb-get-server-version | function.maxdb-get-server-info | function.maxdb-get-proto-info | function.maxdb-get-metadata | function.maxdb-get-host-info | function.maxdb-get-client-version | function.maxdb-get-client-info | function.maxdb-free-result | function.maxdb-field-tell | function.maxdb-field-seek | function.maxdb-field-count | function.maxdb-fetch | function.maxdb-fetch-row | function.maxdb-fetch-object | function.maxdb-fetch-lengths | function.maxdb-fetch-fields | function.maxdb-fetch-field | function.maxdb-fetch-field-direct | function.maxdb-fetch-assoc | function.maxdb-fetch-array | function.maxdb-execute | function.maxdb-escape-string | function.maxdb-error | function.maxdb-errno | function.maxdb-enable-rpl-parse | function.maxdb-enable-reads-from-master | function.maxdb-embedded-connect | function.maxdb-dump-debug-info | function.maxdb-disable-rpl-parse | function.maxdb-disable-reads-from-master | function.maxdb-debug | function.maxdb-data-seek | function.maxdb-connect | function.maxdb-connect-error | function.maxdb-connect-errno | function.maxdb-commit | function.maxdb-close | function.maxdb-close-long-data | function.maxdb-client-encoding | function.maxdb-character-set-name | function.maxdb-change-user | function.maxdb-bind-result | function.maxdb-bind-param | function.maxdb-autocommit | function.maxdb-affected-rows | book.maxdb |
Le PHP est une langue scripting d'usage universel employée couramment qui approprié particulièrement au développement de Web et peut être enfoncée dans le HTML. Si vous êtes nouveau au PHP et voulez avoir une certaine idée de la façon dont cela fonctionne, essayez le cours d'instruction d'introduction. Après ce, vérifiez le manuel en ligne, et l'exemple archivez les emplacements et certaines des autres ressources disponibles dans la section de liens.