| name | language | licence |
|---|---|---|
| PHP/JS : ternaire | PHP | Other |
| PHP/MYSQL : Chaines de caractères echapper avant insertion en base | PHP | Other |
| PHP/MYSQL : Notes mysqli | PHP | Other |
| PHP/MYSQL : Usage procedurale de mysqli | PHP | Other |
| PHP/MYSQL : recuperer un date en base et la formater grace à date | PHP | Other |
| JS : expressions regulière | JS-JQuery | Other |
| HTML : select et optgroup : groupe d'option dans une liste déroulante | HTML | Other |
| HTML : HTML 4.01 Strict | HTML | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 >
language: PHP
licence: Other
PHP/MYSQL : Usage procedurale de mysqli
options: view full snippet • send to code collector
$host = ""; $usr = ""; $psswd = ""; $db = ""; $char = "UTF-8" $link = mysqli_connect($host, $usr, $pass); mysqli_set_charset($link, $char); mysqli_select_db($link, $db); $sql = "select * from 'table'"; $query = mysqli_query($link, $sql); $result = mysqli_fetch_array($query); //pas besoin de l'objet link pour la recuperation du resultat



library
html (48)