Ctrl + V

Toneboy

Administrator
Staff member
#1
An old favourite of many bulletin boards this - throws up lots of interesting things, e.g. links, questions, answers (okay, more questions than answers!), etc. Ctrl & V simply pastes your clipboard's contents for everyone to see.

Very simple, go into the message area, then press "Ctrl" & "V" and show us what's on your clipboard.

(That was my clipboard, not very exciting, I know.)
 

lawrensons

CoffE Moderator
Staff member
#2
<%
DIM objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath ("/fpdb/leisureideas.mdb") & ";"
objConn.Open
%>

<%
DIM mySQL, objRS
mySQL = "SELECT * FROM Offers WHERE (""Hotel Town"" = '::HotelTown::')"
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open mySQL, objConn

' Count how many records exist
DIM iRecordCount
iRecordCount = 0
DO WHILE NOT objRS.EOF
iRecordCount = iRecordCount + 1
objRS.MoveNext
Loop

' Display result
Response.Write "(" & iRecordCount & ")"

objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
 

Toneboy

Administrator
Staff member
#8
<?php
session_start()
// Script to determine pagewidth
if (!$pagewidth) {
//how to set $pagewidth
<script language="JavaScript1.2">
<!--


if (screen.width==640||screen.height==480) //if 640x480
{
// set page width to 640
<?
$pagewidth="640";
session_register("pagewidth");
?>
}
else if (screen.width==800||screen.height==600) //if 800x600
{
// set page width to 800
<?
$pagewidth="800";
session_register("pagewidth");
?>
}
else if (screen.width==1024||screen.height==768) //if 1024x768
{
// set page width to 1024
<?
$pagewidth="1024";
session_register("pagewidth");
?>
}
else if (screen.width==1280||screen.height==1024) //if 1280x1024
{
// set page width to 1280
<?
$pagewidth="1280";
session_register("pagewidth");
?>
}
else
{
// set page width to other value, for sake of example, 700
<?
$pagewidth="700";
session_register("pagewidth");
?>
}
//-->
</script>
}
?>
<html>
<head>
<title>Pagewidth test</title>
</head>
<body>
<table width="<?=$pagewidth;?>" align="center">
<tr><td>
Your pagewidth is <?=$pagewidth;?>
</td></tr>
</table>
</body>
</html>
 
#9
Acts 2:46 So continuing daily with one accord in the temple, and breaking bread from house to house, they ate their food with gladness and simplicity of heart

See thread here
 
Top