Novice, Pat. let's take a look at the problem with the php code.

Source: Internet
Author: User
Novice, Pat. ladies and gentlemen, let me take a look at the Html & nbsp; Code: & lt; html & gt; & lt; head & gt; & lt; body & gt; & lt; form & nbsp; action = "sales_rep_m.ph novice, Pat. ladies and gentlemen, let's take a look at the problem with the php code.
Html Code:


















[/Code]


PHP code:



Sales Rep Maintenance

// Address error handling

ini_set('display_errors',1);
error_reporting(E_ALL & ~E_NOTICE);

// Attempt to Connect

if ($connection = @mysql_connect ('localhost', '***', '***')){
print '

Successfully connected to MySQL.

';
//mysql_close(); // close the connection
}
else {
die('

Could not connect to MySQL because: ' .mysql_error() .
'

');
}
if (@mysql_select_db("PREMIERE", $connection)){
print '

The PREMIERE database has been selected.

';
}
else {
die('

Cound not select the PREMIERE database because: ' .mysql_error().'

');
}

if(!$_REQUEST['submit'])
{
generate_form();
}
else if($_REQUEST['submit'] == "Search")
{
search_rep();
}
else if($_REQUEST['submit'] == "Add")
{
add_rep();
}
else if($_REQUEST['submit'] == "Delete")
{
delete_rep();
}
else if($_REQUEST['submit'] == "Update")
{
update_rep();
}

function generate_form()

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.