[Solved] changing Font size in html style attribute

[ad_1] The first one has the style attribute (CSS) of font-size:160% it sets the font-size property to 160%. % is a relative CSS unit, it will set the font size to 160 percentage of the parent element. <div style=”font-size:24px;”> <p style=”font-size:160%;”>This is a paragraph with 160% of the font size of parent div</p> <p>This is … Read more

[Solved] Using HTML forms with a PHP script [closed]

[ad_1] The action attribute of the form tag directs the browser to where you want to send your form data. To direct the browser to a PHP script, just change the action attribute in your code to the PHP script you’d like to send your data to. <form action=”my_php_file.php”> [ad_2] solved Using HTML forms with … Read more

[Solved] Fetch the products URL [closed]

[ad_1] There are many ways to get XML from a URL – perhaps the simplest is using simplexml_load_file : $xml = simplexml_load_file($url); print_r($xml); Where obviously $url is your URL. You can add the username and password into the URL like http://username:password@url/ Or you could use cURL and then simplexml_load_string to parse the results: $ch = … Read more

[Solved] Radio Button not working [closed]

[ad_1] This line is missing a comma: $Query .= “banner_images=””.$banner_images.”””; should be $Query .= “banner_images=””.$banner_images.””,”; As a sidenote, you are vulnerable to sql injection with your code, you might want to use prepared statements or at least mysql_real_escape_string 3 [ad_2] solved Radio Button not working [closed]

[Solved] How to get an attachment from specified path [closed]

[ad_1] This is applicable when you want to read attachment from your local, If you want to read file from remote system or some other things there are different ways. String filePAthDB =”E:/Eclipse-Leo/RD_JMS/src/test/textfile.jpg”; File f = new File(filePAthDB ); if(f.exists()) { //process file whatever you want System.out.println(“Attachment available……”); } else System.out.println(“not Attachment available……”); [ad_2] solved … Read more

[Solved] What is the answer to this list? [closed]

[ad_1] This is a really bad question. However, The last line in your code will fail with This expression was expected to have type int list list but here has type int .. because :: concatenates an element to a list. It can only do it from the front because the list is a singly … Read more

[Solved] Mysql java taking registration [closed]

[ad_1] Follow the steps: 1. Download Mysql and Install+ dwnload mysql-connector jar file. 2. in the mysql(u can connect using mysql command line client) provide ur pwd and get ready. Put below code: 3. create database TEST 4. use TEST. 5. CREATE TABLE USER_DTLS (USERNAME VARCHAR2(100), PASS VARCHAR2(100)); creating tables 6. INSERT INTO USER_DTLS(‘user1’, ‘user1234’);INSERT … Read more

[Solved] sql/php syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting [closed]

[ad_1] You lost track of all needed ‘ and additionally forgot to quote username value. So instead of $result = mysql_query(“update Users set lat=”$lat”,lon=’$lng’ where username=$_SESSION[‘username’]”); do this in more clean manner: $result = mysql_query( “update Users set lat=”$lat”,lon=’$lng’ where username=”” . $_SESSION[“username’] . “‘”); or even better: $query = sprintf(“update Users set lat=”%s”,lon=’%s’ where … Read more

[Solved] How to provide dynamic HTML in PHP?

[ad_1] You could use include and ob_get_contents to get the html as string and do some str_replace or preg_replace on that. Your HTML: <html> <body> <img src=”https://stackoverflow.com/questions/10533622/{IMAGE_SRC}” width=”512″ height=”512″ name=”image” /> </body> </html> Your PHP: ob_start(); include ‘your_file.html’; $buffer = ob_get_contents(); ob_end_clean(); $buffer = str_replace(“https://stackoverflow.com/questions/10533622/{IMAGE_SRC}”, ‘your_image.png’, $buffer); print $buffer; 1 [ad_2] solved How to provide … Read more

[Solved] I want both values before and after submitting a form

[ad_1] You could put the initial value in a hidden field as well as the visible one, e.g.: <input type=”text” name=”greeting” value=”Hello” /> <input type=”hidden” name=”greeting-original” value=”Hello” /> Then you can do what you like with greeting and greeting-original when the form is submitted. 2 [ad_2] solved I want both values before and after submitting … Read more