Bình thường khi gửi tin nhắn qua Yahoo! Messenger, nếu bạn send :D thì người kia sẽ nhận được
. Vậy bạn muốn người kia nhận được :D thì bạn phải làm sao?
Hãy gõ :</b>D
</b> chính là chìa khóa, nó là khoảng trống đặc biệt ngăn cách mã emoticons.
Tạo cơ sở dữ liệu mới
CREATE DATABASE `tên cơ sở dữ liệu`;
Liệt kê tất cả các cơ sơ dữ liệu hiện có
SHOW DATABASES;
Chuyển cơ sở dữ liệu làm việc
USE `tên cơ sở dữ liệu`;
Liệt kê tất cả các bảng trong cơ sở dữ liệu đang làm việc
SHOW TABLES;
Liệt kê tất cả các bảng trong cơ sở dữ liệu bất kỳ
SHOW TABLES IN `tên cơ sở dữ liệu`;
Xem thông tin cấu trúc một bảng trong cơ sở dữ liệu
DESCRIBE `tên bảng`;
Xóa cơ sở dữ liệu
DROP DATABASE `db_name`;
Xóa bảng
DROP TABLE `tbl_name`;
Xem tất cả dữ liệu của bảng
SELECT * FROM `table name`;
Giả sử có bảng: chatter(id, name, birthday, location, balance)
Xem các chatter có tên là Phùng Văn Huy
SELECT * FROM `chatter` WHERE `name`=’Phùng Văn Huy’;
Read more…
<?php
$VIDEO_BAAMBOO = “http://video.baamboo.com/player/videoInfo.aspx?id=”;
$VIDEO_ID = isset($_GET["vid"]) ? $_GET["vid"] : “gOXxFRI6r1A”;
$url = $VIDEO_BAAMBOO . $VIDEO_ID;
$dom = new DomDocument;
$dom->load($url);
$flv = $dom->getElementsByTagName(“enclosure”)->item(0)->getAttribute(“url”);
if ($flv == null) echo “404″;
else echo $flv;
?>
Có không ít các cách chuyển hướng người dùng tới một trang khác. Mỗi cách đều có cái hay, và dở của nó. Dưới đây liệt kê một số cách, tạm thời chưa đi vào phân tích!
Giả sử trang mã nguồn đang là index.php, và cần chuyển sang alert.php
<?php
header(“Location: alert.php”);
?>
<script>
//alert(“Bye bye”);
window.location.href = “alert.php”;
</script>
<meta http-equiv=”refresh” content=”2;url=alert.php”>
*Giải thích thẻ meta refresh ở trên: sau 2 giây ở index.php, trình duyệt tự động chuyển sang load trang alert.php
*Tương tự nếu muốn chuyển tới một trang ở site khác
In Windows 2000, Microsoft added the ability to right-click the My Documents folder and choose a new location for that folder in the shell. With Windows XP, Microsoft has elevated the My Music and My Pictures folders to the same “special shell folder” status of My Documents, but they never added a similar (and simple) method for changing those folder’s locations. However, it is actually pretty easy to change the location of these folders, using the following method.
Open a My Computer window and navigate to the location where you’d like My Music (or My Pictures) to reside. Then, open the My Documents folder in a different window. Drag the My Music (or My Pictures) folder to the other window, and Windows XP will update all of the references to that folder to the new location, including the Start menu.