小编Gia*_*yez的帖子

字段列表中的未知列.PHP + Mysql

我正在尝试向phpmyadmin中的表添加值,我收到错误:'字段列表'中的未知列'...'.

这是我的代码:

    <?php   

    //preparing the patch to copy the uploaded file
    $target_path = "images/";

    //adding the name of the file, finishing the path
    $target_path = $target_path . basename( $_FILES['image']['name']); 

   //moving the file to the folder
   if(move_uploaded_file($_FILES['image']['tmp_name'], $target_path)) {
       echo "The file ".  basename( $_FILES['image']['name']). 
       " has been uploaded";
   } else{
      echo "There was an error uploading the file, please try again!";
   }

   //getting input from the form
   $name = $_POST['game'];
   $description = $_POST['beschrijving'];

   //preparing the query to insert the values …
Run Code Online (Sandbox Code Playgroud)

php mysql sql

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

检查所有文本框是否为空的有效方法

我想在提交表单之前检查是否所有文本框都已填满,我正在执行此操作的方式是这样的:

If strGebruikersnaam <> String.Empty And strVoornaam <> String.Empty And strFamilienaam <> String.Empty And strEmail <> String.Empty And strBevestigEmail <> String.Empty And strWachtwoord <> String.Empty And strBevestigWachtwoord <> String.Empty And strAntispam <> String.Empty Then

    End If
Run Code Online (Sandbox Code Playgroud)

我想知道是否有更有效的方法来做同样的事情.

vb.net asp.net

3
推荐指数
1
解决办法
1160
查看次数

php file_get_contents()显示页面而不是html源代码

我有这段代码,应该获取网站的源代码.

$homepage = file_get_contents('http://homepage.com');
echo $homepage;
Run Code Online (Sandbox Code Playgroud)

而不是实际给我的源代码..它显示了我正在尝试从中获取源代码的页面.

html php

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

如何从List <T>中删除特定对象

所以我去了一个存储Feeds对象的列表,这些对象是用链接和类别构建的.现在我想删除具有特定链接和类别的给定Feeds对象.

我的清单声明:

public void addFeed(String link, String cat) {
    linkAcategory.Add(new feed(link, cat));
}
Run Code Online (Sandbox Code Playgroud)

添加功能:

public void addFeed(String link, String cat) {
    linkAcategory.Add(new feed(link, cat));
}
Run Code Online (Sandbox Code Playgroud)

删除功能不起作用,但显示我正在尝试做的事情:

public void removeFeed(String link, String cat) {
    linkAcategory.Remove(new feed(link,cat));
}
Run Code Online (Sandbox Code Playgroud)

我希望我能得到任何有价值的帮助.提前致谢.

c# oop list object

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

标签 统计

php ×2

asp.net ×1

c# ×1

html ×1

list ×1

mysql ×1

object ×1

oop ×1

sql ×1

vb.net ×1