52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mpc123

Hi I have an issue whereby I need to replace characters in a field and also narrow the amount of characters down, but sturggling with putting them both together I have 2 seperate lines of code to do them both seperately that work, but struggling to get them together btw …

Web Development php
Member Avatar for mpc123
0
196
Member Avatar for munik.bell

I'll appreciate any assistance on this. The scenario; I have a database table with the following sample records; data1-------------dt2----data3------data4--------data5------data6 Brewing Plant-----2------10000------11/3/2012----1136-------person1@yahoo.com Brewing Plant-----2------10000------11/3/2012----1136-------person1@yahoo.com Car Plant---------1------5000-------11/3/2012----568--------person1@yahoo.com Brewing Plant-----1------5000-------11/3/2012----568--------person2@yahoo.com Car Plant---------4------20000------11/3/2012----2272-------person2@yahoo.com Brewing Plant-----3------15000------11/3/2012----1704-------person3@yahoo.com This is my requirement: I want just one notification email each sent to theses various persons with their information. …

Web Development asp email
Member Avatar for munik.bell
0
142
Member Avatar for websponge

Hi, I have a simple query here, one of my database fields is boolean, 1 or 0, when I echo out the value I want it to be yes or no, I did this, but it doesnt work, $value = .$row[booleanresult]; if ($value ="1"){ $value = "YES" } else { …

Web Development php
Member Avatar for websponge
0
763
Member Avatar for MARKAND911

I am facing a problem for running my website. I have developed the website and when i hit F5 to view the results i am presented with this error **Description:** The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission …

Web Development asp.net
Member Avatar for JorgeM
0
350
Member Avatar for arny1

Hi There, I am trying to export an image to Excel file from Asp.Net C# page. My code is working fine, and I can merge let say 6 columns in excel file and put the image on these cells. What I would like to know is how to Center this …

Web Development asp.net image
Member Avatar for gilesbradley
0
2K
Member Avatar for AndreRet

I have a function as below in javascript that gets all the values from different inputs/selects. It must then build up a string that will be passed to a textarea. This was working fine last night when I tested. I then tweaked something, not sure what I did and of …

Web Development javascript
Member Avatar for AndreRet
0
169
Member Avatar for ello

The code below simply shows and hides a div (content) when you click on the heading (heading). <script type="text/javascript"> jQuery(document).ready(function() { jQuery(".content").hide(); //toggle the componenet with class msg_body jQuery(".heading").click(function() { jQuery(this).next(".content").slideToggle(0); }); }); </script> Demo - http://www.designgala.com/demos/collapse-expand-jquery.html By default, the content is always hidden - Is there any way to …

Web Development javascript javascript-jquery
Member Avatar for ello
0
136
Member Avatar for sunnykeerthi

Hi, My below code is working only if there is a single row. could you please help me in doing it for all the rows retrieved from the database. view plaincopy to clipboardprint? <%@page import="java.util.concurrent.CountDownLatch"%> <%@include file="DBCon.jsp" %> <html> <head><script type="text/javascript"> function invoke(but) { if(but==5) { document.abc.action="Users_2.jsp"; } else if(but==6) …

Web Development java-jsp
Member Avatar for radhakrishna.p
0
168
Member Avatar for hwoarang69

echo"$u2" seem to be working right. but nothing prints for echo"$p2". i tryed raping $_POST['p'] in isset() function but didnt seem to be working. <?php if(isset($_POST['b'])) { $u2 = $_POST['u']; $p2 = $_POST['p']; echo"$u2"; echo"$p2"; } ?> <div> <form action ='login.php' method = 'POST'> <div> <p> <input type ="text" name='u' …

Web Development first-post php
Member Avatar for hwoarang69
0
90
Member Avatar for kirill226

How to add css to all jsps in java web project. Is it possible using web.xml ?

Web Development html-css java java-jsp
Member Avatar for jalpesh_007
0
77
Member Avatar for Ritesh_4

Hello, I would be grateful if someone could help me with building a simple dynamic menu breadcrumb in PHP with mysql, using the MVC concept. My pages are stored in a mysql db, and the table is formatted with the following fields: Autokey, Title, IDMenuParent. The latter takes NULL as …

Web Development php
Member Avatar for Ritesh_4
0
122
Member Avatar for solomon_13000

I have a file with the name foo.htm inside a folder abc. I am invoking the below script from another html page known as query.html in the folder abc. $.ajax({ url: '/foo.htm', method: 'GET', complete: function(a,b){ alert('complete-2'); }, success: function(a){ alert('good-2'); }, error: function(a,b){ alert('problem-2'); }, }); However, I am …

Web Development javascript javascript-jquery
Member Avatar for Airshow
0
1K
Member Avatar for wackyal

On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically …

Web Development javascript javascript-jquery php
Member Avatar for diafol
0
344
Member Avatar for GraficRegret

ok so here is my code: <html> <body> <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_DB", $con); //Get all the data from the table $result = mysql_query("SELECT * FROM Vehicles") or die(mysql_error()); echo "<table border = '1'>"; echo "<tr><th>ID</th><th>Year</th><th>Make</th><th>Model</th> <th>Milage</th><th>Description</th></tr>"; //keeps getting the …

Web Development php
Member Avatar for GraficRegret
0
455
Member Avatar for UberJoker

Hi guys. Feels great to post back on DaniWeb. Hope everyone is doing great! I am currently playing around with the google websearch api. They have a javascript example where they created a "hello world" page. https://developers.google.com/web-search/docs/ This code only returns 8 pages of each type of search. I was …

Web Development api daniweb-api google google-api xml
Member Avatar for farhanahanat010
0
178
Member Avatar for suavedesign

I am using a wordpress template, and being that it's written in php, which I'm not so familiar with, I want to know the following: Is there a way for me to add code to the index.html of my template? What I want to do is make a solid white …

Web Development php wordpress
Member Avatar for veedeoo
0
127
Member Avatar for sultankhan

hi every one i have create a table with name upload id int notnull name varchar notnull type varchar notnull size varchar notnull content varchar not null and my code is the follwing but instead of iamge it show garbage value <form method="post" enctype="multipart/form-data" action="image.php"> <table width="350" border="0" cellpadding="1" cellspacing="1" …

Web Development image php
Member Avatar for sultankhan
0
4K
Member Avatar for muralibobby2015

Hello, I have products table like below Table products { -product_id- -categories- 1 2,4,5,6 2 1,4,3 4 3,5 } Table categories { -category_id- -en_label(catname)- 1 cat1 2 cat2 3 cat3 4 cat4 5 cat5 6 cat6 } i want to display categorynames using sigle query productid en_label 1 cat2,cat4,cat5,cat6 2 …

Web Development php
Member Avatar for hira08
0
5K
Member Avatar for GlenRogers

I have some text in a mysql table, stored as text and taken from an html <textarea>. For example of some text. Hi this is Glens webpage When I display this on my web page it comes out as Hi this is Gles webpage. How do I get it to …

Web Development php
Member Avatar for GlenRogers
0
128
Member Avatar for tscina

I have a working bulk mail script which is supposed to be sent to thousands of users. I have started sending the mails but needed to abort because there was something wrong with the message body. How do I resume the mail from where it left off? Assuming it was …

Web Development email php
Member Avatar for blocblue
0
260
Member Avatar for gahhon

private void getCount() { SqlCommand cmdCountPenalty = new SqlCommand("SELECT PenaltyID FROM Penalty", conOOC); SqlCommand cmdCountBill = new SqlCommand("SELECT BillID FROM Bill", conOOC); SqlCommand cmdCountPayment = new SqlCommand("SELECT PaymentID FROM Payment", conOOC); conOOC.Open(); SqlDataReader dtrCountPenalty = cmdCountPenalty.ExecuteReader(); while (dtrCountPenalty.Read()) { ++countPenalty; } dtrCountPenalty.Close(); SqlDataReader dtrCountBill = cmdCountBill.ExecuteReader(); while (dtrCountBill.Read()) { ++countBill; …

Web Development asp.net
Member Avatar for gahhon
0
93
Member Avatar for Farhad.idrees

hi Guys...i have two jquery functions.first one is showing data in grid and we can also update data in grid.. 2nd one is filtering data like if we want to see data of 'farhad' so it will bring data according to 'farhad'; i want to merge both functions in one …

Member Avatar for Airshow
0
302
Member Avatar for AndreRet

![justmywheels1](/attachments/large/1/justmywheels1.png "justmywheels1") # Please see attached image # a User will click on an img which in return will either show - -if unchecked is visible, checked image will be visible (javascript used for this) -and vice versa. I have no idea how to achieve the following - If a …

Web Development javascript php
Member Avatar for AndreRet
0
196
Member Avatar for OsaMasw

Hello buddies, I have question about pagination am using this code $tbl_name="items"; //your table name // How many adjacent pages should be shown on each side? $adjacents = 2; /* First get total number of rows in data table. If you have a WHERE clause in your query, make sure …

Web Development php sql ui-ux
Member Avatar for OsaMasw
0
175
Member Avatar for OsaMasw

Hello there I have question about how to update multi row in MySQL database, I used while function but this do the job with more time and no indecator when to finish the work, is there any efficient way to update like 1000 row with one button and make indecator …

Web Development php sql
Member Avatar for OsaMasw
0
186
Member Avatar for mpc123

Hi I have variables set in the head of the page as they are used for other parts of the page. I have a problem where by I am trying to get the variable to echo out in the result. I have tried several ways but either ther eis an …

Web Development mysql php
Member Avatar for AndreRet
0
115
Member Avatar for joeyliew7

How to show image for the drop down list? have tried a few alternative but dont work. Thanks <tr> <td class="label"><label for="kelas">Kelas:</label></td> <td class="field"> <select id="kelas" name="kelas" > <option value="Pilih kelas" selected="selected"></option> <option value="1 Tekal" >1 Tekal</option> <option value="1 Tekad" >1 Tekad</option> <option value="1 Tekun" >1 Tekun</option> <option value="1 Tabah" …

Web Development image php
Member Avatar for joeyliew7
0
2K
Member Avatar for muhammed.anas.7583

I develop a project that consist of many tables. In admin menu table names shows dynamically in a dropdownlist from a database. Pls help me to do this

Web Development java-jsp
Member Avatar for radhakrishna.p
0
193
Member Avatar for eerlewein

Good Morning Ladies and Gents, I am having the following issue. I have implemented a captcha widget to my downloads page since there were a log of spam files that were coming through. After hours of working on this I have finally gotten the Captcha app to work and forward …

Web Development php
Member Avatar for blocblue
0
642
Member Avatar for cussel

>Hi guys,..i've two arrray data1 and data2 then i do intersect to get same value between data1 and data2, and >use count to get total same value,..how to ARSORT count result from intersect array multidimensional? <?php $data1 = array( array( '7' => 'chelsea everton', '8' => 'everton villa', '9' => …

Web Development php
Member Avatar for broj1
0
333
Member Avatar for while(!success)

Hi guys, I have created a gridview which is supposed to display 3 columns: | view | Name | Position | The gridview becomes visible based a a selection of a dropdownlist. When I load the gridview from the dropdownlist however, the grid view appears as such: | view | …

Web Development asp.net
Member Avatar for while(!success)
0
2K
Member Avatar for JoyBh

I have a project developed in PHP in the Windows platform and it is running well. I am now trying to run it on LINUX (Red Hat and CentOS). It isnot going beyond the index page. I have zeroed in on line where where it is getting stuck. It is …

Web Development html-css php
Member Avatar for JoyBh
0
208
Member Avatar for Tko_1

hello again, Im tring to stop this redirect with a button. this is the orginal script. <script language="JavaScript" type="text/javascript"> var count =16 var redirect="example.php" function countDown(){ if (count <=0){ window.location = redirect; }else{ count--; document.getElementById("timer").innerHTML = ""+count+" seconds." setTimeout("countDown()", 3000) } } </script> Browser refresh in <span id="timer"> <script> countDown(); …

Web Development javascript
Member Avatar for Tko_1
0
539
Member Avatar for eyeda

Anybody can help me with this?I would like to update the status of the user in the mysql database whether its disabled/enabled by inserting 0 or 1 through the edit page.

Web Development php
Member Avatar for eyeda
0
1K
Member Avatar for NardCake

Hello! On my registration form I ask for a username and I only want a letters,numbers and underscores(_) in the username. How would I go about checking that? Thanks for any help!

Web Development php
Member Avatar for phorce
0
169
Member Avatar for rotten69

Hey folks, I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway. it throws an error at …

Web Development javascript
Member Avatar for rotten69
0
228
Member Avatar for DEAD TERMINATOR

I am trying to write a program in which the user will type a word into a search bar, submit it, and the program will search the contents of an array of files for that word and echo the contents of the files that contain the word into a text …

Web Development html-css php
Member Avatar for coreyavis
0
261
Member Avatar for tokick4

I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; …

Web Development javascript javascript-jquery php
Member Avatar for tokick4
0
186
Member Avatar for hwoarang69

i want to create repository on github so that more than one people can work on same project. i already create a organiztion, team and repository. https://github.com/Socialwebsite/socal_website.git there is one dir on my computer, one on other peoson computer. and we are uploading on github. so "xammpp>htdocs>socal_website" but its remove …

Web Development github
Member Avatar for pritaeas
0
123
Member Avatar for GraficRegret

I am trying to get my code working so that I can store the path of an uploaded picture onto a table so that I can call upon the uploaded file whenever I need it. So what happens on the web page is, a person enters information on a vehicle …

Web Development mysql php web-server
Member Avatar for diafol
0
182
Member Avatar for phphelp123

<?php session_start(); # start up the session $host="localhost"; // Host name $db_username="root"; // Mysql username $db_password=""; // Mysql password $db_name="shop"; // Database name $tbl_name="users"; // Table name // Connect to server and select databse. mysql_connect("$host", "$db_username", "$db_password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // username and password sent from form …

Web Development php session
Member Avatar for Zagga
0
105
Member Avatar for matusekm

I am new to PHP and I'd like the following form to require all fields. I am unsure whether or not this is possible since I am so new to this language. Here is the code. Any help would be useful! <?php $name = $_POST['name']; $email = $_POST['email']; $message = …

Web Development email php
Member Avatar for GliderPilot
0
177
Member Avatar for McLaren

To register at http://www.box2d.org/forum/index.php there are difficult and annoying questions. But I solved one of them which was easiest for me, so I share in case someone else will want to register there: A ball of mass 3 kilograms begins falling with gravity of 10 meters per second squared. How …

Web Development javascript
Member Avatar for McLaren
0
125
Member Avatar for TIM_M_91

OK so I have two classes in the first class is where the database is handled, in the second class is where I want the output from my database select statment in be displayed on a label. How do I get the result to a label on Invoice.aspx? DBdatabase.cs public …

Web Development asp.net session sql
Member Avatar for TIM_M_91
0
184
Member Avatar for AndreRet

I have 3 select boxes, each one returns a different field from database i.e., in database - 2010 BMW 320i, record 2 2008 Aston Martin DB9 and so on. What I do is to first get user to select a year, then submit form so I can return all vehicles …

Web Development first-post php
Member Avatar for AndreRet
0
187
Member Avatar for GmanD

Hi. I'm looking for a way to perfrom a recaptcha verification pass on an html form then, if successful, submit the detail to salesforce via their Web2Lead feature (don't have API access unfortunately). Our salesforce integrated contact form has been subject to spam, like many others it seems, therefore I …

Web Development api php
Member Avatar for eerlewein
0
264
Member Avatar for gahhon

<The parameterized query '(@bid nvarchar(5),@rid nvarchar(4000),@total float,@duedate nvar' expects the parameter '@rid', which was not supplied. > The Error Was Occur when i doing this calling this function. private void setBill() { SqlCommand cmdBill = new SqlCommand("INSERT INTO Bill (BillID, RegistrationID, TotalFees, PaymentDueDate, Status) VALUES (@bid, @rid, @total, @duedate, @status)", …

Web Development asp.net
Member Avatar for gahhon
0
120
Member Avatar for riahc3

Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this?

Web Development javascript
Member Avatar for pritaeas
0
74
Member Avatar for anandschiru

Does PHP support parallelization,if so plz help me.

Web Development php
Member Avatar for anandschiru
0
124
Member Avatar for napztor

hey guys im working on school prroject to develop a navigation system, i was just wondering is there a way to search for a page by entering its page number in a seach box ? is there a script for that? please let me know

Web Development html-css
Member Avatar for <M/>
0
45

The End.