52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rpv_sen

Hi I am trying to display count of a row using function with get values. Please help me to fix the issue **class** class Users { private $conn; private $db_name= "DATABASE"; public function __construct($db) { $this->conn = $db; } /*Join Two Tables with where condition and order by*/ public function …

Web Development php
Member Avatar for rpv_sen
0
601
Member Avatar for phoenix254

hi i have just started learning nodejs. i wrote this simple code var http = require("http"); var fs=require('fs'); var wbsocket = ('ws'); http.createServer(function(req, res) { res.write('2working'); }).listen(8889); console.log('listing to port 8080'); and run in cmd node filename.js in cmd doesnt give me any error and when i open webbrowser its …

Web Development client-server javascript
Member Avatar for cereal
0
187
Member Avatar for NuGG

Ok so I have the following code for a table with CSS rules designed to "collapse the table horizontally" on smaller screens... <table> <thead class="thead"> <tr> <th>a</th> <th>b</th> <th>c</th> <th>d</th> <th>e</th> <th>f</th> <th>g</th> </tr> </thead> <tbody> <tr> <td data-label="a">1</td> <td data-label="b">2</td> <td data-label="c">3</td> <td data-label="d">4</td> <td data-label="e">5</td> <td data-label="f">6</td> <td …

Web Development file-system html-css php
Member Avatar for NuGG
0
540
Member Avatar for solomon_13000

The code below ensures that my entry is only numeric with 2 decimal. <input type="text" maxlength="10" name="numPrice" value="1.00"> $("input[name='numPrice']").keyup(function(){ if(!(/^\d+(\.{0,1}\d{0,2})?$/.test(this.value)) ){ this.value = this.value.substring(0, this.value.length - 1); } return this; }); However values such as 1&.0 is not rejected by the code above. Did I miss something?

Web Development javascript javascript-jquery
Member Avatar for solomon_13000
0
251
Member Avatar for stupid guy

Hi, I am newbie.I have seen projects where there are menus or links below it which are accessible as per the profile set for the logged in users.If there are A,B,C,D menus in project then some group of user will have only A and B Menu when logged in..while other …

Web Development microsoft-access
Member Avatar for stupid guy
0
272
Member Avatar for Jiby_1

$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: testing <test@gmail.com>' . "\r\n"; $subject = "testing"; $content = " //html content question How to use foreach loop inside this ? "; $sent=mail("test@gmail.com",$subject,$content,$headers);

Web Development php
Member Avatar for Jiby_1
0
273
Member Avatar for strRusty_gal

Hi, thanks for viewing this thread. How to call MVC controller action method from ASP.NET webform and pass few parameter to the MVC? I have found this solution: http://www.codeproject.com/Articles/37539/Redirect-and-POST-in-ASP-NET and would like to know whether is there any other ways to do it. Just like to explore other solutions.

Member Avatar for pritaeas
0
369
Member Avatar for javed_4

I am trying to add a functionality of uploading image while adding new data but I am not able to achieve it. I will provide my code to you. Could you please help me to achieve it? Following is my code, I have three files namely index.php, script.js, func_events.php index.php …

Web Development file-system image php
0
212
Member Avatar for AntonyRayan

Hi, In a page, By selecting values I display a table using javascript ajax. The table looks like this: S.no name S1 S2 S3 S4 S5 Total 1 A 80 90 78 76 100 424 2 B 50 50 50 50 100 350 ;; . . . it goes like …

Web Development
Member Avatar for diafol
0
252
Member Avatar for ManikandanM

Please guide me. Im begginer in Sql. Im working through task tracking system in php. I need know how to display particular username details using query? Since Im getting all userdetails by single username and password..

Web Development php sql
Member Avatar for rotten7
0
88
Member Avatar for johnywhy

Hello, I'm seeking an onmouseover event to detect when the mouse hovers the top of the webpage. I'm only able to find onmouseover events for the whole page. How to restrict to just the very top of the page? Need only support modern browsers, simplest method possible. Thx! (also asked …

Web Development javascript
Member Avatar for almostbob
0
258
Member Avatar for iharrythomas

Hello, I am using simple web application, But I want to upgrade the PHP version 5.25 to version 5.3 which is mostly recomended thank you

Web Development php
Member Avatar for jkon
0
109
Member Avatar for nitos

am stuck on some lines even after reading several tutorials and answers. // set up a row for each record echo "<tr>"; echo "<td><a href='vieworder.php?ID='>" . $row->ID . "</a></td>"; echo "<td>" . $row->Subject . "</td>"; echo "<td>" . $row->Level . "</td>"; echo "<td>" . $row->Deadline . "</td>"; echo "</tr>"; the …

Web Development display
Member Avatar for nitos
0
136
Member Avatar for basil60

Hi I'm trying to get reviewerid, firstname and last name through a drop down selection box in my html form. The code below is line 26-38 from the attachment. Currentl, it echoes to the browser much of what you see here, rather than pulling the data and displaying it in …

Web Development php
Member Avatar for diafol
0
128
Member Avatar for koneill

All, I'm trying to call in my first dyanmic JavaScript function OpenDynamicPic the BreedVideoOpen(videopath) function so that the dynakic image appears on the left and a video appear on the right - however I seem to be getting the BreedVideoOpen functions output keeps appearing in the top left of my …

Web Development apple javascript video
Member Avatar for Akash_Soni
0
272
Member Avatar for hari_10

Hi, i have form in my jsp , which when submitted ,calls javascript which will inturn submit the form , this is working fine in IE. but when i submit from chrome , i get below error. -version:2.5]] Servlet failed with IOException weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/integration/r5/wfsworklist/WFTaskUpdate' …

Web Development first-post java-jsp oracle
Member Avatar for hari_10
0
1K
Member Avatar for Ventech_IT

Hi Everyone, I need some advice...i am building a website for a client and would like to integrate a feature where when he creates a new blog post on the site a link to that post is sent to all his social media platform how would i go about doing …

Web Development php php-codeigniter social-media
Member Avatar for diafol
0
266
Member Avatar for blueguy777

How to search a string in table i.e. searchstring = "Gandhi Chowk" actual code: if(isset($_POST['companyId'])){ $companyId = $_POST['companyId']; } if(isset($_POST['RouteName'])){ $routeName = '%'.$_POST['routeName'].'%'; } if(isset($_POST['cityName'])){ $cityName = $_POST['cityName']; } // We Will prepare SQL Query $STM = $dbh->prepare("SELECT routeName FROM route WHERE routeName LIKE :route"); // bind paramenters, Named paramenters …

Web Development php seo
Member Avatar for blueguy777
0
246
Member Avatar for s.redrose

Hello All i'm new to jsp developing and i'm working on a site contain news page and allows user comments . i already do it but having 2 problems first that i have to refresh after submit comment to show comment second that every time i refresh the comment is …

Web Development first-post java-jsp
Member Avatar for stultuske
0
215
Member Avatar for Jiby_1

*) when we click addmore and add content for the below code 2 textboxes will appear extra?? how to avoid that??please help <?php include_once 'config.php'; if (isset($_POST['submit'])) { $text1 = $_POST['boxes']; $text2 = $_POST['boxes1']; foreach($text1 as $a => $b){ if (!isset($text1[$a])) { $text1[$a] = null; } echo "<input type='text' name='boxes12' …

Web Development javascript-jquery php
Member Avatar for diafol
0
136
Member Avatar for Evil_genius82

Dear all, I have a very strange problem I cant seem to make sense of. Here is the story... I created a product page which when visited performs an ajax request to a json file to obtain product data, I then have a js script while dynamically appends html to …

Web Development json
Member Avatar for diafol
0
282
Member Avatar for Dinesh_14

I need to know if its possible to show a window.open pop-up while navigating away from the current page; currently based on event.returnvalue for any change in data we IE shows a confirm popup "Are you sure you want to navigate away?". On clicking 'OK' to the above question, i …

Web Development javascript
Member Avatar for pritaeas
0
181
Member Avatar for babir

I want to create a page that contains all searches from my Database. And want to create link for individual searches like- index.php?db=my_db&token=f019813a84dedee74a047b66f489d508 please help me....

Web Development php
Member Avatar for diafol
0
130
Member Avatar for Subrata_1

Hi all, I am trying to develop client server web service using soap wsdl but my code giving proper out put where input given is correct.If any body can fix this? My code attached herewith...and I got the code from the link https://tommorrisblog.wordpress.com/2015/02/07/soap-wsdl-examples-with-php-and-python-scripting/ client.php <?php require_once "lib/nusoap.php"; //$client = new …

Member Avatar for Subrata_1
0
296
Member Avatar for Akansha_1

Hi, I just prepared a basic html code for a login page and another webpage linked to the login page.I need to connnect it with a mysql database. But I am unable to do so. Whathave I done is made a html code with a javascript function which is further …

Web Development html-css
Member Avatar for Akansha_1
0
21K
Member Avatar for gtel

Ok, i need your expertise on this. Would you still consider a procedural type of a php project that uses the obsolete mysql connect, as long as it works great and the ui is awesome? *someone used it.so i'm wondering

Web Development php
Member Avatar for diafol
0
146
Member Avatar for Jirkish

Hey guys can you give some ideas for a web-based thesis? I really do need it at most..

Web Development
Member Avatar for Jirkish
0
152
Member Avatar for davy_yg

Hello, I am trying to style google map: like: http://www.akronyms.net/demo/arvin-html/v_1.5/ How? Here is a references: https://developers.google.com/maps/documentation/javascript/styling What I do not understand is to create a grey map I should include the following array variable: var styleArray = [ { featureType: "all", stylers: [ { saturation: -80 } ] },{ featureType: …

Web Development google php seo
Member Avatar for cereal
0
620
Member Avatar for SeekAnswers

Hi, I'm a web developer for a small company, I had programmed using ASP about six years ago, thus my skills are very rusty at the moment...recently, my boss had asked me to export the database information from the ASP pages to an Microsoft Excel file, allowing the users to …

Web Development asp microsoft-office
Member Avatar for tughralkhan
0
11K
Member Avatar for anmol.raghuvanshi1

I am trying to populate dropdown with database what i am actually trying to do i have 3 drop downs country ,state and city and i want if user select any country crossponding states are shown in dropdown and crossponding cities releated to state are shown in city dropdown.I don't …

Web Development html-css php php-codeigniter
Member Avatar for anmol.raghuvanshi1
0
376
Member Avatar for Olalekan J

Hello all, I have a problem with geting the div content which was populated from a php/mysql script. please i need help. in the modal. the only echo i get is the last variable passed, regardless of the which ever dif i click. <?php require_once 'connect.php'; if(isset($_GET['userID'])){ require_once 'dbconfig.php'; $query …

Member Avatar for jkon
0
249
Member Avatar for chaitu11

Hi please go through this issue and suggest me http://stackoverflow.com/questions/32294820/where-to-locate-facebook-sdk-v4-vendor-directory-in-codeigniter-3-0

Web Development file-system php social-media
Member Avatar for cereal
0
253
Member Avatar for SimonIoa

Hello i am trying to user Autocomplete jqueryUI but i having trouble showing data from my database. I pretty sure that the problem lies there. Here is the code <?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_DATABASE', 'project'); $db = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD,DB_DATABASE) or die(mysqli_connect_error()); mysqli_query ($db,"set character_set_results='utf8'"); // if …

Web Development javascript-jquery json
Member Avatar for SimonIoa
0
155
Member Avatar for praba_web

Ajax form submission not happening. **view:** <form method="post" name="addwishlists" id="addwishlists" enctype="multipart/form-data" > <input type="hidden" name="deal_id" value="<?php echo $deal_id; ?>" > <input type="hidden" name="cust_id" value="<?php echo $cust_id; ?>"> <input type="submit" value="Add Wishlist" id="addwishlist" class="btn btn-primary" /> </form> **My code is:** <script> //no need to specify the language $(document).ready(function(){ $("#addwishlist").click(function(e){ // passing …

Web Development php
Member Avatar for gabrielcastillo
0
584
Member Avatar for babir

Please help me.... I want to upload up to 5 photos and save in database. I want by selecting photo it will upload automatically and then the selected photo will appear in the page. It will occure with one by one photo, up to 5 photos and the photos can …

Member Avatar for gabrielcastillo
0
547
Member Avatar for chibex

I have web based inventory system written in PHP and going to attach barcode reader to the web interface. Any idea how to use webbased interface to extracting information from barcode data? Does anybody have expirience with barcode and webforms ? Thanks.

Web Development php
Member Avatar for saskico
0
2K
Member Avatar for babir

my code cannot send all image data. it sends odd or even no of data.please help <?php session_start(); include("dbcon.php"); if (isset($_POST['submit'])) { $j = 0; //Variable for indexing uploaded image $a=0; $target_path = "uploads/"; //Declaring Path for uploaded images if (count($_FILES['file']['name'])<6) { $k=count($_FILES['file']['name']); } else { $k=6; } for ($i …

Web Development file-system php
Member Avatar for Dilovan
0
178
Member Avatar for vampz

i have an array of usernames and if a specific name is entered then code should say i know you concatenated with input name...this part is working fine...the problem is in `if(!$knowyou)` this line of code is giving the error of **undefined variable** i'm not getting it i tried to …

Web Development php
Member Avatar for vampz
0
351
Member Avatar for gahhon

String contentType = request.getContentType(); if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) { DataInputStream in = new DataInputStream(request.getInputStream()); int formDataLength = request.getContentLength(); byte dataBytes[] = new byte[formDataLength]; int byteRead = 0; int totalBytesRead = 0; while (totalBytesRead < formDataLength) { byteRead = in.read(dataBytes, totalBytesRead, formDataLength); totalBytesRead += byteRead; } String …

Web Development file-system java java-jsp
Member Avatar for gahhon
0
502
Member Avatar for vampz

<body> <?php if(trim($_GET["submit"])){ if($_GET["uname"]){ echo "your name is".$_GET['uname']; } else { echo"please enter your name"; } } ?> <form> <label for="uname">Name</label> <input type="text" name="uname" /> <input type="submit" name="submit" value="Submit" /> </form> </body> hello, i'm new to php watching some tuts and trying to learn...my proble is when i load this …

Web Development php
Member Avatar for vampz
0
195
Member Avatar for SimonIoa

Hello i did a research about a import contacts script. The best script i find this is https://www.design19.org/blog/import-google-contacts-with-php-or-javascript-using-google-contacts-api-and-oauth-2-0/ On the last comment as Simon you ll see where i stuck with. Although i think its the best import gmail contacts script

Web Development api google-api php
0
101
Member Avatar for paul-lucas

Hello, I have a file (01.php) <?php abstract class Sender { const E_NEW_APPOINTMENT = 1; /** * Send instant confirmation/notification emails. * * @param int $type (E_NEW_APPOINTMENT) * @param CustomerAppointment $ca */ public static function sendEmails( $type, CustomerAppointment $ca ) { list ( $codes, $staff, $appointment, $customer ) = self::_prepareData( …

Web Development php
Member Avatar for pritaeas
0
402
Member Avatar for pooran.c

What is the use of tiny mce javascript library ? I m working on jsp project were it uses tinymce.js . i actullay dont know what it does .

Web Development javascript
Member Avatar for cereal
0
251
Member Avatar for devianleong

Hi guys, currently I have 3 groups of user which is A, B and C. A will handle tasks for first week, B will handle tasks for second week, C will handle tasks for third week, C will handle tasks for 4th week, A will handle tasks for 5th week, …

Web Development algorithm php
Member Avatar for cereal
0
143
Member Avatar for anmol.raghuvanshi1

I have been struggling from last few days in this problem and also my css knowledge is some what got expired! I want full page bootstrap carousel slider and i want some images over this slider[4 * 4] as shown this my attempt if any one can help ?? **JS …

0
143
Member Avatar for Max_12

Appologies for posting this help thread here, but I think, DANIWEB communitty can help me out. We have developed an awesome website builder, at present we want some help to customize the back end with WHMCS [web hosting control panel software]. The requirement]: On registration page the user can select …

Web Development web-server
0
250
Member Avatar for Amaina

I'm at my wits end, perhaps after working non stop for 7 hrs. I'm trying to develop a simple search engine using Php and Mysql. I have borrowed my idea of doing this from a wonderful [youtube tutorial](https://www.youtube.com/watch?v=OPmBJhhuwSM) by nick frosty. Unlike Nick, i'm not doing this the procedural way …

Web Development mysql php seo
Member Avatar for rpv_sen
0
915
Member Avatar for Anish_3

I am doing a project on greeting card designing interface(html). I have written code to make text draggable and resizeable but it it not resizing. please help html: <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/canvas2image/0.1/base64.js"></script> <script src="https://cdn.jsdelivr.net/canvas2image/0.1/canvas2image.js"></script> <script src="https://github.com/niklasvh/html2canvas/releases/download/0.4.1/html2canvas.js"></script> <link href="https://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css" rel="stylesheet"/> <link href="style.css" rel="stylesheet" /> <script src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js"></script> <head> <body> <div …

Web Development cdn github
Member Avatar for Anish_3
0
250
Member Avatar for James_43

Hi all, I'm quite a new developer, and I've spent a long time trying to figure out what is causing this error: "SQLSTATE[HY093]: Invalid parameter number: parameter was not defined" As far as I can tell, all my parameters are defined? My code is below: $mySQL_query = "INSERT INTO vd_users …

Web Development mysql php
Member Avatar for James_43
0
171
Member Avatar for babir

Hello all, There is my table in database. want to delete multiple rows from MYSQL database. I have created this selectcon.php file to select various links and delete them using checkboxes. but it doesn't here is my code <!DOCTYPE html> <?php include("emty.php"); ?> <center> <?php include("dbcon.php"); $result = mysql_query("SELECT * …

Web Development php seo
Member Avatar for rpv_sen
0
329

The End.