52,566 Archived Topics
Remove Filter ![]() | |
I have this code which loads 10 divs from an external file into the main file. There's also a next / previous function to skip back and fourth between the divs. Demo: http://goo.gl/RFBN2E (Click load content to load the content via ajax, then the next / previous buttons will skip … Web Development javascript | |
Hello Guys, I have a form that i used array name. ei. name[] this is my code for input form {{ Form::open(array('url' => 'create')) }} <TR> <TD><INPUT type="checkbox" name="chk[]"/></TD> <TD class="rating"> {{ Form::text('core_values[]', Input::old('core_values[]'), array('placeholder' => 'Criteria Here')) }}</TD> <TD> {{ Form::textarea('behavioral[]', Input::old('behavioral[]'), array('placeholder' => 'Description Here', 'cols' => '75', … | |
Hiy guys alot of you have been brilliant over the past few days. I'm creating my own website and I want to let users register and log in, into the site I'm now getting this error message Warning: mysqli_query(): Couldn't fetch mysqli in C:\xampp\htdocs\submit-form.php on line 19 The following SQL … ![]() | |
excuse me, do you know how to put a calendar in the form? I try to put this code in my form but it has an error on line 2. Anybody know? Please help me. Thank you This is the calendar code :- <?php $myCalendar = new tc_calendar("date5", true, false); … Web Development php ![]() | |
Dear all, I have exists excel file on server. Now, I want output the file by php. I have this code: $file = "test.xls"; $file=basename($file); if (file_exists($file)) { header('Content-Type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$file); ob_clean(); flush(); readfile($file); exit; } When I click download button, I can open file, but appear "missing … Web Development file-system microsoft-office php ![]() | |
In PHP, I've tried using simple_html_dom in order to extract URLs from web pages. And it works a lot of the time, but not all of the time. For example, it doesn't work on the website ArsTechnica.com, because it has a different use of HTML URLs. So... one thing I … Web Development open-source web-browser | |
Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks … | |
As part of my web app, users need to be able to move multiple images from one album to another. I'm writing an UPDATE function, as the current album is stored with the image (helpfully, the albumid is the only value that needs changing). Here is the function: function imageUpdate($image_key_array, … ![]() | |
Hi All First post. PHP/PostgreSQL newbie... I'm trying to create a simple web page with a dropdown menu. The values for the dropdown menu are retrieved from a database table. The code I've got is... <html> <body> <select> <?php $db = pg_connect("host=hostname port=5432 dbname=dbname user=user password=password") or die ("Could not … Web Development html-css php postgresql | |
Hi All, I'm trying to call data from a php script using getJSON. my php script, php/Validate.php: echo "Hello, World!"; die(); My getJSON bit: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("#ValidateButton").click(function(){ $.getJSON("php/Validate.php",function(result){ alert(result); }); }); }) </script> <input type="button" value="Validate" id="ValidateButton"/> I'm not having any luck getting anything output though. Could someone … Web Development javascript json php | |
Hi, I have an drop downlist whic contains the products and a textbox for quantity. when i am selecting the dropdownlist and write the quantity value in the textboxes and click the Button1 textboxes are dynamically generating in the placeholder with labels according to quantity but when again i am … Web Development asp.net | |
Sorry to ask this one , but i am helpless to get it out. I am doing a site for my client and created a responsive menu. The font style for the menu is not working even though I marked it as important. My site url is. http://sparrowhair.softcorp.ca/ The style … | |
i have four columns in a gridview .Every field is a template field with checkboxes.I have a button. when i check the check boxes and store it in database the checkbox value is storing. but after clicking the button the checkboxes unchecked. how to make the checkboxes checked . public … Web Development asp.net dataset first-post session | |
This is the project I need to finish. I am fairly new to php and this project has got me confused. Any help would be greatly appreciated I am trying to do a Web form that is taking an online order form! This is What I have so far: This … Web Development php programming-construct | |
hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> … Web Development gui javascript | |
hello, I have some problem with this code. Jacasript used in AJAX: var xmlHttp; function showUser(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="getuser.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById("txtHint").innerHTML=xmlHttp.responseText; } } function … Web Development php | |
Its image gallery website . I have 5 main categories and each main category has 3 sub category. how can i implement this in a form by selecting the the main category 1st and then sub-category from mysql database and also input today date ? and then update/create the record. … ![]() | |
I'm learning knockout.js and i trying to get data from a rest API. The rest API has two end points 1) '/posts 2) '/posts/<id> When i use the first endpoint, nothing happens and there is no error in my script. As a matter of fact, looking at the firebug console, … Web Development api css-bootstrap html-css javascript javascript-jquery | |
I am trying to do a Page to PHPExcel to user fill an Html Page and send to PHP and it will: Open my default Excel Page and after fills the Excel Page with information send by Html What i dont know is how to do it read if is … Web Development microsoft-office php | |
Hi Guys as I have mentioned before I'm having problems with connecting my website to a sql database, config.php <?php ini_set('display_errors', true); // change to false when you go live error_reporting(E_ALL); //Mysql Connect | mysql_connect("host= 3306","username",""); //Below example to connect in localhost //$a=mysql_connect("localhost","root",""); if($a == false) { die("Connect failed: ".mysql_error()); … | |
sir i am doing my project and i am using session array to save some variables that can be accessed at any page but i am unable to access the values saved in session array <html> <head><title>student home page</title></head> <body bgcolor="lightblue"><h1>well come to student login page</h1> <form name="f1" action="" method="post"> … | |
I'm trying to show data from mysql database in JSF, but getting error: javax.servlet.ServletException: /index.xhtml @16,70 value="#{userBean.getUserList()}": The class 'com.dev.UserBean' does not have the property 'getUserList'. javax.faces.webapp.FacesServlet.service(FacesServlet.java:325) I'm using http://www.devmanuals.com/tutorials/java/jsf/database/viewdata.html tutorial UserBean.java package com.dev; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; … | |
i am trying to Upload and Store an Image inside a MySQL, for some reason i got a broken image when photo is submitted . i know its a bad idea ti store images in using database i am doing this for testing purposes. please help <!DOCTYPE html> <html> <head> … | |
Wordpress plugin permalinks not working If we add ? at the beginning of wordpress permalinks then its working. Give the solution. | |
Hi All, I have managed to get a few bits and pieces of code together, that I would like to try and combine to get the desired result for my form. The top section of the code is code that I had originally created myself and had some assistance in … | |
Hi All, Similar problem to my previous post. I've made some progress and managed to get it working on my localhost but on the host server it still flops. I have been told to save the wsdl to file and access it from the file. However, I am not familiar … Web Development api file-system php | |
Hello I am learn JS cookie my requirement is as under "There is One **Button** submit when i clicked button then **Cookie value store 1** and some **Msg display** in box. Every Time box **check cookie value** if there is **any value** then Msg display continue otherwise Not." Suggest me. … Web Development javascript | |
Hello, Am new here but I will appreciate if I can get an answer. I am to build a miniature automatic feedback for programming assignment system in PHP as a final year project. This system will take a programming assignment in C either through a web form or a text … Web Development daniweb-feedback objective-c php | |
HI neel I want to convert integer value of variable to float ie. i am adding two variables and the addition is integer and i want convert it to float eg: $var1=30; $var2=40; $var3=$var1+$var2; i want to display var3 as 70.00 please tell me how to do this Thank you Web Development php | |
I am trying to make authenticate and authorization through windows 2008 active directory . i am able to authenticate and retrive users under direct member but unable to list or link users through member of member. suppose user joe is direct member of Dl-Engineering NS group and user sam is … Web Development engineering php session | |
Hi all, I'm hoping someone can help me out with this one as it's driving me nuts. What I'm trying to do is create a page of 'items' which are displayed as icons, and when the user hovers over one of the icons, the items information is displayed. Here's is … Web Development javascript-jquery php | |
Hi, In one of my services in the webservice I have to return an array of objects. I am using Axis1.1 and Tomact6.0 and developing code using eclipse 3.4.1 and JDK5. Here is my sample code This is what my web service has [code=java]public class WebLibSvcs { public List<DocumentInfo> getAllDocuments(BigDecimal … | |
I have a placeholder control where i have added the files from my folder. I have also binded a check box with each file How i can download the files if checkbox is clicked. string strDir = Request.QueryString["d"] == null ? FileBrowerProperty.IntialPath : Request.QueryString["d"]; //read the directory DirectoryInfo DirInfo = … | |
I've got a file that includes various php files with a rewrite framework. I'm importing a class and registering it, and it functions for all code on that page. However when I try to require() a file, it does not seem to have access to the class. require __DIR__.'/lib/UserApp/Autoloader.php'; // … | |
Ok I researched EVERYWHERE on the Internet and I just can't get this to work. In my php.ini under my WAMP php folder, I have this (enabling the extensions): [CODE];extension=php_mssql.dll extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll ;extension=php_openssl.dll[/CODE] Error: [CODE]Fatal error: Class 'mysqli' not found in C:\wamp\www\Elvonica\class\Database.php on line 11[/CODE] I have both … | |
I am using this code to pull out data from database. But the $bathc_no variable is not fetching more than 1 row. Suppose, I have 3 rows in my mysql, Where the $batch_no for the 1st row is "13", 2nd row is "12" and for the 3rd is "15". I … ![]() | |
How to create a HTTP Authentication dialog box by using PHP and HTML. Web Development php | |
I have a button which make it add data to accees database,but i want to another button which will make export data from access to excel. here is my button : try { string cmdText = "Insert INTO data(Name,Mail) Values(?,?)"; db_conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\Alpozkanm\\Documents\\Visual Studio 2012\\WebSites\\IntegratedSubscribeSystem\\veri.accdb;Persist Security Info=False;"); OleDbCommand … Web Development asp.net microsoft-access microsoft-office | |
function house (windows,doors,attic) { this.windows = windows; this.doors = wood; this.attic = stuff; } var parts = house_two ("glass","wood","spiders"); var house_parts = house_two.windows; document.write("I want" +house_parts+ "doors"); I want to understand objects in javascript, so far it hasn't been that exciting as learning other parts of the language. I want … Web Development javascript | |
I have problems cleaning up a couple of input field. I've been pecking away at this issue since I wrote the application about 18 months ago. When I think I have it cleaned up; it pops up again, when users violate rules (as they often will do) and the extra … ![]() | |
Good Afternoon. I submitted a question a couple of days ago under the article name: Change asp:menuitem properties from other programs. I'm working with the following web pages - Site.Master/Site.Master.vb, Login.aspx/Login.aspx.vb JorgeM answered my question and showed me the code to use. It worked great. Dim navMenu As Menu navMenu … | |
I am working on PHP to get logitude and laltitude values from pop-up google map. I am successful in poping up the google map and getting values into the main window. I am stuck with how to escape or close the poped up google map. | |
**i have finaly completed the javascript coding, but there seems to be an error "syntax tax, char:1, line:1", i cant figure out wat the problem is.... i have edited it so many times, but it still comes up with errors when excuting it.. HELP!!!!!!! **the following coding: @_@** <!DOCTYPE html> … Web Development api javascript | |
Hello, I am new to PHP and I would like to do the following: In my website, the user can add a blog but I would like the blog to go to admin first before it gets published ( The admin has the authority to publish or un-publish a blog). … Web Development php | |
I want to null or remove array at the end of each loop. I already tried unset() or $array=array(); but its not working foreach($array as $key=>$value){ $dates[$value][]= $key; unset($dates) } Just tell me php function to null all array Web Development php ![]() | |
["dfml"]=> array(32) { [0]=> string(10) "2014-02-27" [1]=> string(10) "2013-10-30" [2]=> string(10) "2013-09-30" [3]=> string(10) "2013-04-30" [4]=> string(10) "2013-02-27" [5]=> string(10) "2012-10-31" [6]=> string(10) "2012-09-28" [7]=> string(10) "2012-05-02" [8]=> string(10) "2012-02-28" [9]=> string(10) "2012-02-27" [10]=> string(10) "2011-10-31" [11]=> string(10) "2011-10-03" [12]=> string(10) "2011-04-27" [13]=> string(10) "2011-02-25" [14]=> string(10) "2010-10-30" [15]=> string(10) … Web Development php | |
Hello, I have little knowledge with PHP and I was assigned to try to fix some of the things that don't work in a website. The website basically deals with two different users, a trader who can post articles and a blogger who can post blogs. When a user registers … Web Development http-protocol php session | |
Hey all, I am trying to update submissions from my SQL database from an edit page via an edit link in line with the submission which captures the ID of the database entry. When I click the edit link a new page opens and it has a form to update … | |
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at index.php:3) index.php on line 3 I have tried this a number of ways but I am unable to fix this <?php ob_start(); session_start(); And this <?php session_start(); ob_start(); And like this <? ob_start(); ?> <?php … Web Development session | |
I am trying to make images coming from links within my mySQL database appear next to each other. Here is my code: <div class="container-outer"> <div class="container-inner"> <?php if ( $imagePath = $article->getImagePath( IMG_TYPE_THUMB ) ) { ?> <a href=".?action=viewArticle&articleId=<?php echo $article->id?>"><img class="articleImageThumb" src="<?php echo $imagePath?>" alt="Article Thumbnail" /></a> <?php } … |
The End.