使用phpmyadmin在XAMPP中工作时,在创建表后,我可以选择在单击结构选项卡后单击"关系视图".见下文:

但是当我用我的主机phpmyadmin创建一个表时,我没有选择"关系视图"的选项见下文:

无论如何都有这个吗?目前我必须在xampp中建立关系并导出到我的主机phpmyadmin才能工作.
我试图匹配一个url直到一个特殊字符,但我正在使用的正则表达式匹配最后一个实例,当我需要它在第一个实例后停止.我究竟做错了什么?!
.+?(?=\")
Run Code Online (Sandbox Code Playgroud)
为了匹配所有东西直到第一 "
但是我的结果如下:
我有一个有空白问题的网站.我在doctype之前包含了一些文件,这导致输出一个空格.
搜索后我找到了这个解决方案: doctype之前的空白问题
但是在删除后?>我仍然遇到问题.以下是代码:
<?php
include ("include/session.php");
include ("include/updatestage.php");
?>
<!DOCTYPE HTML>....
Run Code Online (Sandbox Code Playgroud)
这是session.php:
<?php session_start();
// if a team name has been assigned to a session...
if ( isset($_SESSION ['teamName']))
{
//create "global variable $teamName that can be used across all pages as long as the function "session_start(); is present"
$teamName = $_SESSION ['teamName'];
}
else{
die ( "You are not logged in! Redirecting to login page...<meta http-equiv='REFRESH' content='2; url = index.php'>");
}
Run Code Online (Sandbox Code Playgroud)
这是updatestage.php: …
让我们说我有一些代码:
$text = $_POST['secret'];
$replaces = array(
'a' => 's',
'b' => 'n',
'c' => 'v',
'd' => 'f',
'e' => 'r',
'f' => 'g',
'g' => 'h',
'h' => 'j',
'i' => 'o',
'j' => 'k',
'k' => 'l',
'l' => 'a',
'm' => 'z',
'n' => 'm',
'o' => 'p',
'p' => 'q',
'q' => 'w',
'r' => 't',
's' => 'd',
't' => 'y',
'u' => 'i',
'v' => 'b',
'w' => 'e',
'x' => 'c',
'y' …Run Code Online (Sandbox Code Playgroud) 我的网站上有多个表格.
它们每个都由以下CSS设置:
#content table { border: 3px solid #FFF; }
#content table tr th { color: #FFF; background-color: #2a2d32; font-size:12px;}
#content table tr td, #content table tr th { border: 1px solid #FFF; padding: 5px; text-align: center; line-height: 1.4em; font-size:12px;}
Run Code Online (Sandbox Code Playgroud)
但是我想挑出一个特殊的表来获得独特的样式.这个表在这里:
<table cellspacing="0" cellpadding="0" width="100%" >
<tr style="background-color:#ebe7e5;">
<td>Income </td>
<td>€ </td>
<td>€ </td>
</tr>
<tr class="PL">
<td>Sales</td>
<td><?php echo $cBalance; ?>3,549</td>
<td></td>
</tr>
<th><strong>Total Income</strong></th>
<th></td>
<th><?php echo $pProductionCapacity; ?>3,705</th>
</tr>
<tr style="background-color:#ebe7e5;">
<td>Expenses </td>
<td>€ </td>
<td>€ </td> …Run Code Online (Sandbox Code Playgroud) 我有以下代码:
if ($currentStage == 7)
{
echo include("include/contentP7.php");
}
Run Code Online (Sandbox Code Playgroud)
"content7.php"的内容存在,但它是空白的.但是当$ currentStage等于7时,显示页面并输出随机的"1",尽管"content7.php"为空.
我假设它可能与if语句返回"True"有关.为什么这样,我怎么能删除这个"1".
我需要在我的代码中使用goto运算符,因为我似乎无法想到解决它的方法.但问题是我的主机只安装了PHP版本5.2.17.
有任何想法吗?
以下是我的代码:
if ($ready !=="y")
{
$check=mysql_query("SELECT `inserted` FROM `team`");
$numrows = mysql_num_rows($check);
$i="0";
while ($i<$numrows && $row = mysql_fetch_assoc($check))
{
$array[$i] = $row['inserted'];
$i++;
}
if (in_array("n", $array))
{
goto skip;
}
else
{
mysql_query("
UPDATE game SET ready='y'
");
}
}
skip:
Run Code Online (Sandbox Code Playgroud) php ×4
include ×2
css ×1
goto ×1
if-statement ×1
mysql ×1
phpmyadmin ×1
regex ×1
str-replace ×1
string ×1
whitespace ×1