My-sql comma values query

Show values 1,2,22,11

mysql_select_db($database_cdl_cms, $cdl_cms);
$query_photos = “SELECT * FROM table WHERE ex_ID IN (1,2,22,11)”;
$photos = mysql_query($query_photos, $cdl_cms) or die(mysql_error());
$row_photos = mysql_fetch_assoc($photos);
$totalRows_photos = mysql_num_rows($photos);

or
LIKE ‘%”.$_GET[‘cc_id’].”%’

How to use Ping

 

Windows Environment

Ping can be accessed at a DOS or command prompt. An Internet connection must already be established.

  1. Click on Start > Programs > DOS Prompt (Windows 95-98) or Command Prompt (NT). In a Windows 2000 or XP environment, click on Start > Run. Type command into the dialog box, then click OK.
  2. In the resulting command line window, type ping hostname, where hostname can be a domain name, a machine name or an IP address.
  3. Press Enter.

For example:

C:\> ping www.more.net Continue reading “How to use Ping”

CSS vertical align

Understandable code:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”>
<html>
<head>
<title>Universal vertical center with CSS</title>
<style>
.greenBorder {border: 1px solid green;} /* just borders to see it */
</style>
</head>

<body>
<div class=”greenBorder” style=”display: table; height: 400px; #position: relative; overflow: hidden;”>
<div style=” #position: absolute; #top: 50%;display: table-cell; vertical-align: middle;”>
<div class=”greenBorder” style=” #position: relative; #top: -50%”>
any text<br>
any height<br>
any content, for example generated from DB<br>
everything is vertically centered
</div>
</div>
</div>
</body>
</html>