A php update problem _php Tutorial

Source: Internet
Author: User
A PHP update problem

$conn = Dbo.mssql_connect ("61.164.111.245", "Yon", "123456");
$dbname = mssql_select_db ("Yong1", $conn) or Die ("database does not exist or is not available");
?>

I have not had problems with this generation in the generation of the native test

$action =$_post["Action"];

if ($action = = "Commit") {

$id =$_post["id"];

$title =$_post["title"];

$come =$_post["Come"];

$exitt =$_post["Exitt"];

$content =stripslashes (Trim ($_post["content"));

$uptime =$_post["uptime"];

if ($id = = "") {

echo "";

}

if ($title = = "") {

echo "";

}

if ($come = = "") {

echo "";

}

if ($exitt = = "") {

echo "";

}

if ($content = = "") {

echo "";

}

if ($uptime = = "") {

echo "";

}

$exec = "Update anew set title= '". $title. "', Come= '". $come. "', exitt= '". $exitt. "', content= '". $content. "', Uptime= '". $ Uptime. "' Where id= '. $id;

$query = @mssql_query ($exec);//here is 107 rows

if ($query) {

echo "";

Mssql_close ();

}

}

?>


Copy code but when it runs on the server, it appears.
Warning:mssql_query (): 3 is not a valid MS Sql-link resource in f:yongjiayjadmindianziup.php on line 107

[ ]


Best answer [url=http://www.111cn.cn/bbs/space.php?username=e net carefree] link Mark e-net carefree [/url]
[url=http://www.111cn.cn/bbs/space.php?uid=58710] link marker [img]http://www.111cn.cn/server/avatar.php?uid=58710& Size=small[/img][/url]sql server does not start or has a SQL ID error because you have a SQL Server service on this machine, and there is no space on it, or you have a default link on this machine and do not need mssql_connect to establish a link, And there's no space.

[ ]



d8888d Huitie Content-------------------------------------------------------
SQL Server does not start or has a SQL ID error because you have a SQL Server service on this machine, and there is no space on it, or you have a default link on this machine and do not need mssql_connect to establish a link, and there is no space

[ ]

d8888d Huitie Content-------------------------------------------------------
Where is the code to connect to the database?

d8888d Huitie Content-------------------------------------------------------
SQL Server for the database used by the server?

d8888d Huitie Content-------------------------------------------------------
$exec = "Update anew set title= '". $title. "', Come= '". $come. "', exitt= '". $exitt. "', content= '". $content. "', Uptime= '". $ Uptime. "' Where id= '". $id, "'";


Copy the code to try it, it is estimated that $id as a link.

d8888d Huitie Content-------------------------------------------------------
I'm dizzy, there's no initialization connection.

d8888d Huitie Content-------------------------------------------------------
The link code is posted. Everybody, look, I'm freaking out.

d8888d Huitie Content-------------------------------------------------------


$conn = Mssql_connect ("61.164.111.245", "Yon", "123456");

$dbname = mssql_select_db ("Yong1", $conn) or Die ("database does not exist or is not available");

echo $conn;

If not, contact your ISP and ask him to open the MSSQL extension for you, dbo.

?>


Copy Code

d8888d Huitie Content-------------------------------------------------------
Open MSSQL Extension
What's the opening?
Server is my own in the management
If someone else manages me, I'll call them and get them done.


http://www.bkjia.com/PHPjc/632548.html www.bkjia.com true http://www.bkjia.com/PHPjc/632548.html techarticle a php update problem $conn = Dbo.mssql_connect ("61.164.111.245", "Yon", "123456"), $dbname = mssql_select_db ("Yong1", $conn) or Die ("database does not exist or is not available");?> my generation is in ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.