- Upvotes Received
- 18
- Posts with Upvotes
- 18
- Upvoting Members
- 15
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
130 Posted Topics
Re: In your html change the place of sidebar div with woocomerce-container div, make these changes: <div class="avada-row" style=""> <div id="sidebar" style="float:left;"></div> <div class="woocommerce-container" style="position: relative; margin-left: 24%; margin-right: 0px"></div> </div> I put inline style, but you put it in css file. | |
Re: Try this: <? php include("includes/connect.php"); $select_posts = "select * from posts order by rand() LIMIT 0,2"; $run_posts = mysql_query($select_post); while($row=mysql_fetch_array($run_post)){ $title = $row ['post_title']; $date = $row ['post_date']; $author = $row ['post_author']; $image = $row ['post_image']; $content = substr($row ['post_content'],0,200); } echo "<h2>".$title."</h2>"; ?> | |
Re: Hi, First add in members table a field, lets named this field "role", and make it of type int. In this field put the level acces of the user. After that your SELECT can be changed like this: SELECT password, role FROM members WHERE username = :username AND active="Yes" Finally … | |
Re: Hi, try this in your PHP code: - first move out of the while the echo with <form> definition - second, the checkbox echo "<input type='checkbox' name='chkbox1[]' value = '".$rows['id'] ."' />"; - third - how make the delete if(isset($_POST['delete'])) { $chkbox1 = $_POST[chkbox1]; } foreach($chkbox1 as $del_id) { $sql … | |
Re: Hi, Try somthing like this: html <body> <div id="div_left"></div> <div id="div_right"></div> <div id="div_middle"> <div id="slideshow"> <div> <img src="image_1.png" width="100%"/> </div> <div> <img src="image_2.png" width="100%"/> </div> <div> <img src="image_3.png" width="100%"/> </div> </div> </div> </body> css #div_left { width:25%; height:100%; float:left; text-align:center; background-color: lightblue; } #div_middle { position: relative; height:100%; margin-left: 25%; … | |
Re: Hi, Yes, view this link for more infos: http://en.wikipedia.org/wiki/Responsive_web_design | |
Re: Hi, Maybe this link will help you http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/ | |
Re: Hi, Because in form definition you use method = "post" but, in your code you fetch $idURL using $_GET. Change `$idURL = $_GET['id'];` with `$idURL = $_POST['id'];` or the form attribute method with method = "get". | |
Re: Hi, Because you have some errors in your code: 1 `<script language="JavaScript" type="text/javascript">` replace with `<script type="text/javascript">` 2 `Function validate ()` replace with `function validate()` Function isnt a keyword for javascript. 3 `onsubmit=return "validate()" ` replace with `onsubmit="return validate()"` | |
![]() | Re: Hi, Try this please ! <?php $arrayName[0] = array('id' => '2-0', 'parent' => 'null', 'tag' => 'li', 'name' => 'home' ); $arrayName[1] = array('id' => '1-0', 'parent' => '2-0', 'tag' => 'ol', 'name' => '' ); $arrayName[2] = array('id' => '0-0', 'parent' => '1-0', 'tag' => 'li', 'name' => 'about' … |
![]() | Re: Here is a simple: <style> .tableOuter { text-align: center; } .tableInner { text-align: center; margin-left: auto; margin-right: auto; background: blue; } #mytable { margin-left: auto; margin-right: auto; background-color: yellow; } </style> <body> <div class="tableOuter"> <div class="tableInner"> <table id="mytable"> <tr> <th>Customer ID</th> <th>First Name</th> <th>Last Name</th> <th>Phone</th> <th>Address</th> </tr> <tr> <td>xxx</td> … ![]() |
Re: Here an example: http://www.cppforschool.com/project/library-management-system.html | |
Re: Here some examples: http://cppprojectcode.blogspot.com/2010/09/make-scientific-calculator.html http://www.mycplus.com/source-code/c-source-code/graphical-scientific-calculator/ www.youtube.com/watch?v=_EGGbe0yP60 | |
Re: Look here http://www.softwareandfinance.com/Visual_CPP/TextMode_Grid.html It's an example how to draw a text mode table. | |
Re: Hi, Try this simple: <?php $data = array ( array ('add1','add2','May 2014','ascascascasc',160), array ('Framework','hii','May 2014','ascascasc',161 ), array ('Framework','test framework 1','May 2014','asdasdasd',159 ), array ('Framework','test framework','May 2014','asdasdasd',149 ), array ('OS','other OS skill','May 2014','ascascASC',162 ), array ('Databases','test db skill 3','May 2014','bnmbnmbnm',158 ), array ('Databases','test db','May 2014','bnmbnmbnm',18 ), ); $count1 = count($data); $tab … | |
Re: Ok! We have a form, what can we do with it ? :) | |
Re: Hi, PHP run on server side, Javascript run on client side. They cant exchange data directly, but you can use AJAX to send data from client to server with javascript and php. By the onther way PHP can write dynamic javascript code inside html page using <script> tag using some … | |
Re: hi, Try to read this first: http://msdn.microsoft.com/en-US/library/cc793139%28v=SQL.90%29.aspx Try to use sqlsrv_query() instead mssql_query(). | |
Re: Read this link: http://www.w3resource.com/javascript/form/all-numbers.php | |
Re: Hi, This is work: if (document.images) { var myimage = new Image(); myimage.src = "images/smile.gif"; } //This get the paragraph with id = "one" var par = document.getElementById("one"); var gt =("<h1>"+document.title+"</h1>" /*"and" "<h2>"+document.URLUnencoded+"</h2>"*/); //This change the paragraph content par.innerHTML = gt; | |
Re: 1. Verify if your table named stud has field named ID. 2. Your form use method POST to transfer data but, in modif.php you get data using $_GET instead $_POST change ``$sql = "SELECT * FROM stud where id='".$_GET['id']."'"`` with `$sql = "SELECT * FROM stud where id='".$_POST['id']."'"` | |
Re: Hi, Do you want to display the file name from src in title of img tag? You can use this, dont need javascript for that: `<img src="img/test.png" title="test.png"/>` | |
Re: Hi, This `<form id="myForm" action="form.php","form1.php" method="GET">` dont work. But you can use two submit buttons in same form. HTML <form id="myForm" action="form.php" method="GET"> ..... <input type="submit" value="Action 1" name="act1" /> <input type="submit" value="Action 2" name="act2"> </form> When you submit a form, unset variables will evaluate false. PHP form.php if(isset($_GET["act1"])) { … | |
Re: Hi, Your sql is wrong INSERT INTO plan_review_comment ( id_plan_review, employee_id, code_ref, comment, date ) values ( list of value separated by comma )"; The strings must be puted between ' too. What urtrived said is correct too, would be good to keep in mind. | |
Re: read this first: http://siliconstation.com/how-fix-php-notice-undefined-index/ | |
Re: In translation: make an export of your table in a sql file. This file must contain a CREATE TABLE statment and some INSERT statment. Copy and past the content of this file here. With this sql code we can create our test table. | |
![]() | Re: Hi, Try somthing like this: <script type="text/javascript"> function add(){ var first = document.getElementById("form").value; //The values will be separated by comma var second = first.split(","); var third = second.join(" + "); var x = eval(third); document.one.answer.value = third+" = "+x; } </script> Change only the script. The values in first fields … ![]() |
Re: Hi, Try to workaround this code: <?php $json = file_get_contents("San_Francisco.json"); $array_json=json_decode($json, true); //print_r($array_json); display_jsonarray($array_json); function display_jsonarray($array, $lvl_indent = 0) { $indent = ""; $istr = " "; if($lvl_indent > 0) { $indent = str_repeat($istr,$lvl_indent); } foreach ($array as $key => $value) { if(is_array($value)) { echo $indent.$key.": \n<br/>"; $lvl_indent = $lvl_indent … | |
Re: Must install JRE on the system which run your program. All java aplication need JRE to run. | |
Re: Hi, I try this: <!DOCTYPE HTML> <html> <head> <title>Untitled 1</title> </head> <body> <div style="position:absolute; top: 0px; left: 0px; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.6); "></div> </body> </html> and i dont have any scroll bar on browser. Can you give some details of your html and css code … | |
Re: try to use this library: http://phpexcel.codeplex.com/ or this: http://code.google.com/p/php-excel-reader/ ![]() | |
Re: Hi, Do you know what pseudocode is ? Read this: http://en.wikipedia.org/wiki/Pseudocode or this link: http://users.csc.calpoly.edu/~jdalbey/SWE/pdl_std.html Lets try a simple: set cot with 0 set ans with 'Y' read option case option of 'A': add inquiry 'V': view all inquiry 'F': read inquiry_number find inquiry with inquiry_number 'E': edit inquiry 'D': … | |
Re: What is the error; ORA-XXXXX ? View this link too: http://www.php.net/manual/en/oci8.installation.php | |
Re: Talk with hosting provider. I have this error. Network Access Message: The website cannot be found. I pinging toward www.zoombangla.com, server not respond. The IP of the server is 76.73.101.77. May be a DNS problem or a web server configuration problem or web server is stoped. | |
Re: Hi, First what role have variable "count", because is allways 0. distance[count] is allways first element of the array in your code. Line 7: for (int j = i + 1; j < 10; i++) Why i++ and not j++ ? I supouse it's an error here. Try this: public … | |
Re: HEX(), UNHEX() functions. http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_hex http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_unhex | |
Re: Try to change this: trigger: function(e) { var lonlat = map.getLonLatFromPixel(e.xy).transform(crs900913, crs4326); alert("You clicked near " + lonlat.lat + " N, " + + lonlat.lon + " E"); } with this: trigger: function(e) { var lonlat = map.getLonLatFromPixel(e.xy).transform(crs900913, crs4326); document.getElementById("latbox").value = lonlat.lat; document.getElementById("lonbox").value = lonlat.lon; } | |
Re: Try this: <?php foreach ($memberTestimonials as $member=>$testimonial) { ?> $('#testimonialMessage').fadeIn(5000); $('#testimonialMessage').html("<p><?php echo $testimonial; ?></p>"); $('#testimonialMessage').fadeOut(5000); <?php } ?> | |
Re: Hi, Why dont try to sort your vector in ascending mode ? After that the first element is the smallest, the second is the next smallest. | |
Re: Hi, When you want to refresh the div content ? If you want to make a refresh(change content of the div) when the user click a button, just attach your function at onclick event of that button.(onclick = "your_function()"). | |
Re: Hi, Read the content of the file in a String String text = ""; String line = ""; while ((line = in.readLine()) != null) { text += line; } After that split the string into array, and display first 2 character of each element: for (String retval: text.split("-")) { System.out.println(retval.substring(0,1)); … | |
![]() | Re: Hi, Try to change your script with this: function addhours() { var diff_days = 0; var diff_hours = 0; var shours1=document.getElementById('start1').value; var ehours1=document.getElementById('end1').value; //start time var time1=new Date(shours1); var time1a=time1.getTime(); //end time var time2=new Date(ehours1); var time2a=time2.getTime(); //Difference in hours var diff_x = Math.floor((time2a - time1a)/3600000); alert(diff_x); //but javascript return … |
Re: Hi, Make this corrections line 21: $query = "SELECT * FROM company where Name LIKE '%$q%' limit $eu, $limit "; line 22: $count=$dbo->prepare($query); line 38: $query = "SELECT * FROM company where Name LIKE '%$q%' limit $eu, $limit "; | |
Re: Hi, You link is defined wrong: <a target="_blank" href="http:www.rimfirelive.com/seis/index.html"></a> change it with: <a href="http://www.rimfirelive.com/seis/index.html"></a> | |
Re: Hi, It's simple, but write("what") must be a function which return somthing; like this. function My_write(mystring) { return mystring; } ...... outputResults.innerHTML = My_write("what"); | |
Re: Because you dont have the file "process.php" yet. Just write this file with coresponding php code in it. |
The End.