小编Isr*_*uez的帖子

如何设计下推式自动机

我如何设计一个接受平衡括号和括号的PDA([] []),我很难入门.我需要帮助编写此问题的转换函数.任何帮助表示赞赏

c++ pushdown-automaton

4
推荐指数
1
解决办法
6968
查看次数

PHP,从数据库中获取数据

我想用PHP从数据库中检索数据并在网站上显示.

此代码无法正常运行.我想在我的数据库上显示所有雪佛兰汽车.

<?php
$db = mysqli_connect("localhost","myusername",
"mypassword","database");

if (mysqli_connect_errno()) { 
    echo("Could not connect" .
      mysqli_connect_error($db) . "</p>");
    exit(" ");
}

$result = mysqli_query($query);

if(!$result){
  echo "<p> Could not retrieve at this time, please come back soon</p>" .   
    mysqli_error($dv);
}

$data = mysql_query("SELECT * FROM cars where carType = 'Chevy' AND active = 1")
  or die(mysql_error());

echo"<table border cellpadding=3>";
while($row= mysql_fetch_array( $data ))
{
  echo"<tr>";
  echo"<th>Name:</th> <td>".$row['name'] . "</td> ";
  echo"<th>ImagePath:</th> <td>".$row['imagePath'] . " </td></tr>";
  echo"<th>Description:</th> <td>".$row['description'] . "</td> ";
  echo"<th>Price:</th> …
Run Code Online (Sandbox Code Playgroud)

php mysql

2
推荐指数
1
解决办法
1万
查看次数

CSS样式表类

有没有办法让你有一个类的CSS文件让我们说p.one {color:red;}

并将其应用于不同的标签?如果有可能,我有办法得到一个例子吗?

css xhtml

0
推荐指数
1
解决办法
52
查看次数

标签 统计

c++ ×1

css ×1

mysql ×1

php ×1

pushdown-automaton ×1

xhtml ×1