Multi DB connection, locally, won't connect to 2nd DB


HOME ยป Databases

Syntax: [ Download ] [ Hide ]Syntax: [ Download ] [ Show ]$dbuk = mysql_connect("localhost","root","")or die ('Could not connect to site1.co.uk');
$db2uk = mysql_connect("localhost","root","")or die ('Could not connect to site2.co.uk');
mysql_select_db('site1', $dbuk) or die ('Could not connect to site1.co.uk Database');
mysql_select_db('site2', $db2uk)or die ('Could not connect to site2.co.uk Database')or die(mysql_error());
We are trying to run tests between two entirely separately hosted web sites.
For some reason, when we

Related to : Multi DB connection, locally, won't connect to 2nd DB
Multi DB connection, locally, won't connect to 2nd DB
Databases
Syntax: [ Download ] [ Hide ]Syntax: [ Download ] [ Show ]$dbuk = mysql_connect("localhost","root","")or die ('Could not connect to site1.co.uk');
$db2uk = mysql_connect("localhost","root","")or die ('Could not connect to site2.co.uk');
mysql_select_db('site1', $dbuk) or die ('Could not connect to site1.co.uk Database');
mysql_select_db('site2', $db2uk)or die ('Could not connect to site2.co.uk Database')or die(mysql_error());
We are trying to run tests between two entirely separately hosted web sites.
For some reason, when we
websites wont work locally
Databases
I'm not a web developer. I have made a website once before via a template and I am attempting to make another.
I have been browsing websites and have found some that are available for use as long as credit isn't removed from the coding.
I keep coming across the same problem (same thing that was driving me crazy last time I tried making a website).
When I save the website on my computer, it saves an html file and a folder with website content. The background image slider does not work when I open the local index html file. In fact the background images aren't anywhere in the folder that contains the sites content.
This happens n
[ubuntu] 2nd user account wont connect to net
Databases
I have two user accounts on my laptop, one is for me and one for the mrs. the first one connects wirelessly to the internet as soon as I log in. The second account just hangs and continuously tries to connect but to no avail. help please
[ubuntu] Ubuntu wont connect via Wired connection
Databases
my friend has ubuntu installed, he deoesn't know much with computers so I am working on it. I tried but I don't see why it wont connect. Windows works fine. Its connected via Eithernet. I have Ubuntu on my PC too and its connected wired too. It works and so does Windows XP, Also Wireless is disabled somewhere. No way I see to re-enable it again. It is Ubuntu Hardy 8.04
We both have and Orange Livebox. By Inventul or something. Dont know name.
Any help is greatly wanted.
[ubuntu] outlook in vb wont connect, now no net connection
Databases
I am running Ubuntu 9.02 with VB 3.0.2 with Vista.
I installed vista and outlook 2007 successfully. The first attempt showed a local and internet connection in vbox and I rebooted after installing outlook.
After attempting to setup my exchange in outlook, it would not connect to the server so I checked my net connection inside the box and it shows now local only.
In the settings in vbox I have connected the network as NAT, Host only and the Bridge with Eth1 (the working net connection on my host), all other network options and that didnt work either.
With the Bridge, I get internet service when first booting but it always disappears after 30 secs t
connect to a web site using try multi user AND multi pass connection test
Databases

how can i test connection to a web site using windows form application.

Example: www.xxxxx.com is a site where login user is :abc AND pass is :123456 I have the following code and it works fine...

What i want is how to improve it to try multi user AND multi pass connection test. And for every success or faild connection , the (richbox2) suppose to have the result.

Another thing what is i want to export the result to .txt file, how can ido it. Thanks Alot.

public partial class Form1 : Form
{ 
    private string url;
    private string usname;
    private string upass;
    private string postData;
    //private string uandp;
    public Form1()
    {
        InitializeComponent(); 
    }

    private void Login()
    {
        usname = textBox1.Text;
        upass = richTextBox1.Text;
        url = "www.xxxxx.com/login.php";
        WebBrowser b = new WebBrowser();
        b.DocumentCompleted += new
WebBrowserDocumentCompletedEventHandler(b_DocumentCompleted);
        b.Navigate(url);
    }

    private void b_DocumentCompleted(object sender,
WebBrowserDocumentCompletedEventArgs e)
    { 
        WebBrowser b = sender as WebBrowser;
        string response = b.DocumentText;
        b.DocumentCompleted -= new
WebBrowserDocumentCompletedEventHandler(b_DocumentCompleted);
        b.DocumentCompleted += new
WebBrowserDocumentCompletedEventHandler(b_DocumentCompleted2);

        postData = string.Format("email={0}&pass={1}", usname,
upass);
        ASCIIEncoding enc = new ASCIIEncoding();
        b.Navigate(url, "", enc.GetBytes(postData), "Content-Type:
application/x-www-form-urlencoded
");
    }

    private void b_DocumentCompleted2(object sender,
WebBrowserDocumentCompletedEventArgs e)
    {

        WebBrowser b = sender as WebBrowser;
        string response = b.DocumentText;
        if (response.Contains("logout"))
        {
            richTextBox2.Text = "";
            label1.ForeColor = Color.Green;
            label1.Text = ("Login Successful");
            richTextBox2.Text += usname.ToString() + ":" +
upass.ToString() + "
"
                + "-------------------------------------------";
        }
        else
        {
            richTextBox2.Text = "";
            label1.ForeColor = Color.Red;
            label1.Text = ("Login Faild");
            richTextBox2.Text += usname.ToString() + ":" +
upass.ToString() + "
"
                +"-------------------------------------------";
        }

    }


    private void button1_Click(object sender, EventArgs e)//private 
    {
        Login();
    }


}

What i want is how to improve it to try multi user AND multi pass connection test. And for every success or faild connection , the (richbox2) suppose to have the result.

Another thing what is i want to export the result to .txt file, how can ido it. Thanks Alot.



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .