Jakiś problem?

Tag: PHP

When to use GET and POST:

One way to get rid of this error message is to make your form use GET instead of POST. Just keep in mind that this is not always an appropriate solution (read below). Always use POST if you are performing an action that you don’t want to be repeated, if sensitive information is being transferred or if your form contains either…

Problem z pytaniami do widoków w MySQL 5

Wiesz coś może o zmianach w MySQL-u? Zainstalowałem w domu wer 5.1.46 > i nie wykonuje mi zapytań odwołujących się do widoków (utworzonych > gdzie indziej i zaimportowanych razem z całą bazą). Natomiast > phpMyAdmin po otwarciu dowolnej tabeli z dowolnej bazy pokazuje dane > ale na dole wyświetla błąd: „ogólne funkcje relacyjne zostały >…

Wybór arkusza stylu w zależności od przeglądarki

if (strpos($_SERVER[’HTTP_USER_AGENT’], 'MSIE’) !== false) { echo '<link rel=”stylesheet” type=”text/css” href=”style2.css”>’; }else if (strpos($_SERVER[’HTTP_USER_AGENT’], 'Mozilla’) !== false) { echo '<link rel=”stylesheet” type=”text/css” href=”style.css”>’; }else if (strpos($_SERVER[’HTTP_USER_AGENT’], 'Opera’) !== false) { echo '<link rel=”stylesheet” type=”text/css” href=”style.css”>’; }