在我的表中,tbphotos我有100条记录.然后我删除了所有记录,现在我想重新启动数据输入,我发现我的主键不是从1开始,而是从101开始,
有没有办法重置主键?
我正在使用MySQL管理员帐户.
不知道是怎么回事,但谷歌已经通过IP地址和域名索引了我的网站,在Google的一些搜索中,我看到了我的网站121.12.12.123/tech/tech.php.
请让我知道如何将其重定向到我的域名?
121.12.12.123 redirect to www.mydomain.com
121.12.12.123/* redirect to www.mydomain.com/*
Run Code Online (Sandbox Code Playgroud) 请帮我纠正这段代码,我想把它放在内部切换:
switch ($urlcomecatid) {
if ($urlcomeparentid == 1 || $urlcomeparentid == 2 || $urlcomeparentid == 3)
break;
case "50":
case "51":
case "52":
case "109":
case "110":
//do nothing and exit from switch
break;
default:
header ("Location:http://www.example.com/tech/tech.php"); exit();
break;
Run Code Online (Sandbox Code Playgroud)
}
我有一个div如下,它的宽度是 300px,然后我给它添加了 2px 的边框,我的问题是 2px 边框导致宽度为div302px?
谢谢
.test{
width:300px;
height:auto;
background-color:#A8F9C0;
float:left;
border:2px solid black;
}Run Code Online (Sandbox Code Playgroud)
<div class="test">
</div>Run Code Online (Sandbox Code Playgroud)
我有一个函数如下,但我得到警告的$tab变量,说它没有定义.我该如何定义它并且不再收到此警告?
<?php
/*** suggested articles as random ***/
function doArticle_suggested_small_horizontall($articleid,$title,$photo,$parentid,$catid,$altdescription) {
$tab .= "<table width=150 cellspacing=5 style=border: 1px solid #0066ff align=right>\n";
$tab .= "<tr>\n";
$tab .= "<td align=center bgcolor=#ffffff><a href='../artandculture/adetails.php?articleid=$articleid&parentid=$parentid&catid=$catid'>
<img src='../images/simage/$photo' border='0' alt='$altdescription'></a></td>\n";
$tab .= "</tr>\n";
$tab .= "<tr align=right width=150 height=80 border=0 style=border: 1px solid #ffffff>\n";
$tab .= "<td width=110 align=right dir='rtl' border=0 style=border: 1px solid #ffffff ><p class=articletitlenounderline><a href='../artandculture/adetails.php?articleid=$articleid&parentid=$parentid&catid=$catid'><strong>$title </strong></p></a></td>\n";
$tab .= "</tr>\n";
$tab .= "</table> <p> <hr class='hr99' ></hr></p>";
return $tab;
}
$tab = …Run Code Online (Sandbox Code Playgroud)