52,566 Archived Topics
Remove Filter ![]() | |
<form> Select Project:* <select name="project_id" id="project_id" > <option value="0">Select Project</option> <option value="1">a</option> <option value="2">b</option> <option value="3">c</option> </select> Select Week*: <select name="week" id="week_id"> <option value="0">Select Week</option> <option value="1">This Week</option> <option value="2">Last Week</option> <option value="3">2 Weeks back</option> </select> </form> <script type="text/javascript" src="js/jquery-latest.js"></script> <script> function showValues() { var str = $( "form" ).serialize(); … Web Development first-post javascript-jquery php | |
**Need assistance in using PHP to connect to webservice using SoapClient (I am kinda new to SOAP)** Here is the WSDL URL: https://uat.fiadmin.com/scs.webservice/ScsAutoService.asmx Here is the SOAP request from SoapUI with correct data in the fields: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scs="http://www.natinc.com/SCSAutoService/"> <soapenv:Header/> <soapenv:Body> <scs:GetRates> <scs:objGetRatesRequest> <scs:UserId>VPP</scs:UserId> <scs:Password>jBH5Mspc</scs:Password> <scs:TpaCode>DEMO</scs:TpaCode> <scs:ErrorMessage>0</scs:ErrorMessage> <scs:ErrorCode>0</scs:ErrorCode> <scs:RequestGroup>0</scs:RequestGroup> <scs:Trim>0</scs:Trim> … Web Development php | |
Hi I have one issue. I do not know how to solve and also no idea. It is my scenario. I have Product table with details,selling price, purchase price and so on. I want to invoice to clients. Clients can buy lots of item in single invoice. If I select … ![]() | |
I am running this on my local: <script> $(document).ready(function() { $("#validateButton").click(function() { var forename = $("#Name").val(); var surname = $("#Surname").val(); var dob = $("#DOB").val(); var flatNumber = $("#FlatNumber").val(); var houseName = $("#HouseName").val(); var houseNumber = $("#HouseNumber").val(); var street = $("#Street").val(); var townCity = $("#TownCity").val(); var county = $("#County").val(); var postcode … Web Development javascript json | |
![]() | Hi all. Have been racking my brains about how to go about creating a multidimensional array dynamically from an array of keys. Something like... $keys = array('key1', 'key2', 'key3'); $value = 'some value'; // $md = ...???!!!... I need the $md multidimensional array to have the keys thus... $md['key1']['key2']['key3'] = … Web Development php |
Dear all, I have been thinking of this task, but I have no idea where to start from. I am retrieving login logs from the database, which is cool. Now, the challenge is that in case a user has logged in more than once in the same day, I want … | |
Let's say my website heavily depends on JavaScript. I found this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_noscript What I understand is. If JavaScript is enabled, it displays "Hello World". If JavaScript is disabled it displays everything within `<noscript>` as normal div. The clue is. I have "NoScript" Firefox addon. That blocks JavaScripts, disables flashes and … Web Development javascript video | |
hi im a student and im doing a project for university exam my project include online payment .i there any payment gateway for only testing purpose . Web Development | |
i have a repeater in one page to which me load the data from database now i want to click a button and i get the value of a repeater specific row data and kept data in session and access that data an another page.plz help me any one have … | |
i have a contact form. html is done. php is done as well. but the submit button doesnt seem to read my php code. sorry if my coding is too long but i just had to post the whole thing incase i missed something. any help is very much appreciated. … Web Development first-post gui php | |
I tend to use XHTML due to browser compatibility. In almost all cases where I've worked with XHTML, the content has displayed in every browser the same and the times it didn't was due to certain browsers *cough*IE*cough* not supporting the CSS styles I was using. When HTML 5 was … Web Development html-css | |
Hi, I am trying to get a form to redirect to a thank you page but after several attempts I am still no closer to achieving this. Below is the php code form the sendemail script: <?php $name = trim($_POST['name']); $email = $_POST['email']; $comments = $_POST['comments']; $site_owners_email = '**************'; // … Web Development php | |
I am having a small issue with displaying text that has been converted with htmlspecialchars. In the db I have this: &lt;b&gt;Testing:&lt;/b&gt;&lt;br&gt;&lt;ol&gt;&lt;li&gt;it's a test&lt;br&gt;&lt;/li&gt;&lt;/ol&gt; When I use: echo htmlspecialchars_decode($variable); The page displays: <b>Testing:</b><br><ol><li>it's a test<br></li></ol> I am not sure why this is happening. Any help is appreciated. Thank you | |
Hello i am creating a small project. is there any tutorial that could help me . i have image gallery. it has main categories and then sub categories , i want to upload the images to respective sub category under main category after choosing categ and sub categ from list … Web Development javascript javascript-jquery mysql php | |
i using this code to display radio buttons for selection. somehow the its not working correctly, plz guide on this issue. thanks in advance. <div class="register-section" id="user-role-section"> <label for="wp_rar_user_role"><?php echo $this->wp_rar_role_label; ?></label> <?php foreach($this->wp_selected_rar_roles as $role) { ?> <input type="radio" name="wp_rar_user_role" id="wp_rar_user_role" class="input select" value="<?php echo $role; ?>" /> <label> … Web Development php programming-construct wordpress | |
Hey there. I'm building a project in PHP/MySQL and it is a sort of [FaceMash](http://en.wikipedia.org/wiki/History_of_Facebook#Facemash) project. I am able to call the images (with image name and points) from the database. I have managed to use the MySQL Update query in order to increase the points that each image gets … | |
Hi I am trying to display the server(system) status ON/OFF with php script. can anyone please help me how we can find the status. for example we are having 3 machine. SRVR01 ON SRVR02 OFF SRVR03 ON Web Development client-server php | |
Feedly app left attack window open for malicious JavaScript hackers according to one security researcher. Security consultant and blogger Jeremy S [revealed](http://breaktoprotect.blogspot.in/2014/04/feedly-android-application-zero-day.html) that the Feedly Android app, or at least the version prior to the update on March 17th 2014, had been subject to a zero-day JavaScript code injection vulnerability. … Web Development android-development cybersecurity javascript | |
Getting a little tired of my current host so I've been looking around at some other hosts. It's hard to sort through all the fake reviews out there these days so thought I'd turn to my local DaniWeb community for suggestions :) Anyone have any recomendations for a quality shared … Web Development cpanel web-server | |
Good day everyone Not sure if this is the right place to ask this but im trying to connect to my database online "Control Panel of my hosting site" from my local machine basically the webpage is running locally. but i want the data to be fetch online. my question … Web Development php web-server | |
I have prob with my code its working fine bur, i want to add url to Row Name, When i add them it show error. Exapmle and code: <strong><font size="3"> <?php mysql_connect("localhost", "rooot", "123") or die("Error connecting to database: ".mysql_error()); mysql_select_db("Search") or die(mysql_error()); $query = $_GET['query']; $min_length = 3; $max_length … Web Development | |
hey guys, so i want to disable the input button function unless checbox is checked. i found [this](http://forums.phpfreaks.com/topic/41715-solved-submit-button-remain-disabled-until-checkbox-checked/) forum and it sorta worked. the button is disabled when no checkbox is checked but it stays disabled even after checkbox is checked. this is the html: <input type="button" id="del_event" name="del_event" value="Delete … Web Development gui javascript | |
I decided to use the stored procedures in MySQL. I am able to retrieve only one row value in OUT paramater, but when the returned result contains more than one row, I get nothing! Please see the simple code below for stored procedure which I add it to phpmyadmin direct: … ![]() | |
my [previous question](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/477450/convert-str-to-var) about this dealt with global vars but unfortunatley the `window` of opportunitys doesn't work with this next example because it alerts 4 times instead of only 1 test("a","b","c"); function test(var0,var1,var2,var3) { for(var i=0; i<4; i++) { if(window["var"+i]===undefined) {alert("test");} } } this may not be very clear so … Web Development javascript | |
Hi I am using the following code to give the user a choice of options in a drop down box: [CODE] <?php $query="SELECT location,id FROM area"; $result = mysql_query ($query); echo "<select name=location_id value=''>location</option>"; while($nt=mysql_fetch_array($result)){ echo "<option value=$nt[id]>$nt[location]</option>"; } echo "</select>"; ?> [/CODE] It retrieves all of the options from … Web Development php | |
Hi I've wrote a plugin it works but on deactivation it doesn't drop the plugin tables from db this is the code $sql = "DROP TABLE IF_EXISTS 'TABLENAME'"; $wpdb->query($sql); //$e = $wpdb->query($sql); //die(var_dump($e)); and i call that function this way register_deactivation_hook(__FILE__, 'deactivate'); if i uncomment to show message error it … | |
this is my attempt var test=["a","b","c"]; var var0="a"; for(var i=0; i<1; i++) { test.splice(test.indexOf(test[window["var"+i.toString()]]),1); } alert(test); it alerts "a,b" but I want it to alert "b,c" ref:http://stackoverflow.com/questions/5613834/convert-string-to-variable-name-in-javascript Web Development javascript | |
Hello the code below will fetch all unaswered questions from the db. But when there is only one question, when next is done, it doest submit, and gives a blank page.If more than 1 questions it works fine. Please help. Thank you <?php session_start(); //uri get from index $qu=$_GET['qu']; $userid=$_SESSION['userid']; … Web Development html-css javascript javascript-jquery | |
I have problem with this code show mi error Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\blogcode\resources\func\blog.php on line 34 function category_exists($name){ $name = mysql_real_escape_string($name); $query = mysql_query("SELECT COUNT(1) FROM 'categories' WHERE 'name'= '{$name}'"); return (mysql_result($query, 0)=='0') ? false:true; } How to fix this problem? | |
I am trying to make it so that the snippet below automatically creates extra pages to show me all the followers I have on my Twitch Channel. At the moment I have it at 25, but it does cap at 100. How can I make it so that it automatically … Web Development javascript php ui-ux | |
i trying to write a script so that it does,nt allow the user to login again if already logged in...whether he tries from other browser.................. wat i m doing is setting a value in database to 1 if he logs in and 0 if he logs out .......den i check … Web Development php | |
Hi all, I need your help, I'm working on my php to get the list of contents from my get-listing.php script so I can generating the XML to output the contents into the XML. I have got a little bit of problem with output the contents. I'm still getting the … ![]() | |
Hello everyone im trying to make a website for movies so its pretty simple with movie boxes but the poblem is i dont want to do it like every single movie i add i need to write a new code in `index.html` so is there a way to skip this … Web Development html-css | |
Hello Everyone, I am trying to achieve pagination using jsp javascript and servlets. Here is my code below: SearchUserViews.java `package TestPackage; /** * * @author Sagar */ private String _userid; private String _firstName; private String _lastName; private String _emailAddress; public userProfile(){ _userid = ""; _firstName = ""; _lastName = ""; … Web Development java-jsp javascript oracle sql | |
Hi, I am using wdCalendar and it is working fine localhost . But when I have the using on server it's not work show msg'sory could not load your data, please try agan later.... (I have changed my server username and password bot not work) plz tell me how to … Web Development php | |
I have done task management software using php.now I would to like to write a php code to(restrict) set deadline date and time in users taskmanagement page by admin.Deadline date already entered by admin in the database.if the deadline date expired the user cannot access his task management page and … | |
Hi, I am trying to create a jquery slider with navigation button and arrows, but my slider is not stopping at the last image nor stopping at the first image. See my fiddle for an example: [http://jsfiddle.net/c2mKp/](http://jsfiddle.net/c2mKp/) Any help is welcomed. HTML: <!-- Jquery Slider --> <div class="jquery-slider"> <div class="wrap"> … Web Development html-css javascript javascript-jquery ![]() | |
![]() | Howdy, I am looking to download a list of malicious JS code in order to test it on my localhost website I am developing. Is there any place to download such a list ? Thank you in advance for your answer. Begueradj Web Development javascript ![]() |
I have been trying to work around a problem but am not having much luck. I have classes that include a file with my db settings. The problem is I have a functions directory that calls some of the classes. I get failed to open stream: No such file or … Web Development file-stream file-system php | |
Hello, I am having issue connecting my Access database to my PHP site via ODBC. Here is what I am doing: <?php $dbName = "F:\Data\Web\_Home\TickSys\TickSys.accdb"; if (!file_exists($dbName)) { die("Could not find database file."); } print "Found DB File."; $db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=$dbName; Uid=; Pwd=;"); ?> … Web Development apache microsoft-access php | |
Hello. I have a two problems with my Regsystem. 1st. **Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mycms\reg.php:229) in C:\xampp\htdocs\mycms\reg.php on line 266** 2nd: When i Register a user - system message "Username already exist" not "Registration succesfull".. this is the code of register.php … Web Development php | |
Here is my PHP code: $fields=array('eventID','eventTitle','te_events.venueID','te_events.catID ', 'eventStartDate','eventEndDate','eventPrice'); // initialize empty array for WHERE clauses $wheres=array(); // loop through field names, get POSTed values, // and build array of WHERE clauses, excluding false values foreach ($fields as $field) { // get existing field value from POST, mark missing or empty … | |
Hi, I have a question regarding php defined function. I want to see the logic implemented for all the php defined functions. How can I see that. For example I want to see what is the logic behing strstr or how strtolower works.Where can I see in wamp these definitions. … Web Development php | |
I used Morris chart in my application project to show some details about quantity of sales. After executing the AJAX request, the chart is showing data in disordered way.It doesn't display sales for each city.I want to display them like this example with static data http://jsfiddle.net/marsi/LaJXP/1/ var json = (function … Web Development javascript json | |
Evening All, I'm new here and new to PHP, so please take it easy on me! =] I'm working on a php login script that would allow a user to enter their last name or their username in the username field and their password. Upon submit, check for a record … Web Development php | |
hi everyone, i want to store an image in database not by inserting but by updating (by using UPDATE query) and hers my code... everything else is updated successfully but its not storing image..please help me to solve the problem.. im using medium blob data type to store image this … | |
hey guys. I have a form (very much simplified): <form method="post" action="add_contact.php"> <label>House No. :</label><input type="text" name="houseno" required /> <label>Street Name :</label><input type="text" name="street" required /> <lable>Spouse ?</lable><input type="radio" id="spouse-yes" onclick="FillSpouse(this.form)">Yes<input type="radio" id="spouse-no"> <label>House No. :</label><input type="text" name="spousehouseno" required /> <label>Street Name :</label><input type="text" name="spousestreet" required /> </form> what i … Web Development gui | |
![]() | Just wondering about breadcrumbs and how they work. Specifically in CI. Is it worth implementing? Ta. Web Development php |
Hi there, I need a help on how to pass php variable to another page when the checkbox is clicked. so far i hav this <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $('.cuttingCheckbox').change(function() { if (this.checked) { $.post('fabProcess.php', { headmark : $($row[HEADMARK]).val(), headmark_id : $($row[ID]).val() }, function(response){ this.setAttribute("disabled", true), alert(headmark,headmark_id); … Web Development assembly html-css javascript-jquery php |
The End.