Skip to main content

Posts

Showing posts with the label address

HTML Tags - Text

<p> This defines a paragraph.   <h1>....<h6> These are used to define html headings.<h1> defines the most important heading and <h6> defines the least important heading. <strong> This defines the most important text.   <em> This defines a emphasized text or italic text.   <abbr> This defines an abbreviation or an acronym. <acronym> This defines an acronym. <address> This defines the contact information of the document.Mostly they produce italic text with line breaks. <bdo> This means bi-directional override.It is used to override the current text direction. <blockquote> This defines a section that is quoted from another source. <cite> This defines the title of a work. <q> This defines a short quotation. <code> This is a phrase tag which defines a piece of computer code. <ins> This tag defines a text that has been inserted into a document. <dfn> This is a p...

Connecting to a remote mysql database using php and Android?

Connecting to a remote database has been a Herculean Task for some programmers. No more worries here is a simple post to make it really simple. Follow these steps exactly to get it done. Remember these when you are working with an online database. 1. Make sure that you have a running server. 2. INTERNET permission should be present in the AndroidManifest file of your app. 3. The path that you give in your program to point to the server file should be correct. After ensuring all these you are ready to go. First we will start with the Server side. Here I am going with a PHP example. I am getting a value from the Android side by using a variable say "my_val". Then the PHP script will look like this. Note that here I am only sending one value from the Android side to the PHP Side. so the Server side code will look like this. $val = $_POST['my_val']; echo $val; Look at the varaible name inside the $_POST. Make sure that you use the same variable name ...