17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nats01282

I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code var caption=prompt("Please enter new caption"," "); if (caption!=null) { var …

Web Development html-css javascript-jquery php
Member Avatar for nats01282
0
238
Member Avatar for eburlea

Hi, all. I have a login form with a checkbox that needs to create cookies if checked. How is it possible to check after the form has been submitted if the checkbox has been checked? I have the following code in 'application/forms/Login.php': $remember = new Zend_Form_Element_Checkbox("remember", array('disableLoadDefaultDecorators' => true, 'required' …

Web Development php
Member Avatar for eburlea
0
211
Member Avatar for legendaddybok

<%@ page import = "java.util.*"%> <%@ page import = "java.lang.*"%> <%@ page import="java.sql.*" %> <%@ page language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% String ans=" "; if(request.getParameter("correctAns")!=null) { ans=request.getParameter("correctAns").toString(); } Connection conn = null; …

Web Development java-jsp
Member Avatar for legendaddybok
0
200
Member Avatar for jeffadrian

I am using phpmyadmin on my computer and while I tried to update my data, the following happens " Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 ". I tried to search " php.ini " on my computer, but I can't …

Web Development php
Member Avatar for jeffadrian
0
11K
Member Avatar for showman13

I have a strange occurence in a display and I'm wondering if it could have something to do with the formation of the query I have a table that contains shopping cart line items (called dealer_item), stored as the dealer adds them to the cart. This table currently holds 2 …

Web Development display php
Member Avatar for iamthwee
0
131
Member Avatar for code_rum

Hi, I have imported a csv file but for some reason in some values the data after . is missing for e.g. If my value in csv is 0.5 it displays 0. and 5 went missing but in my csv file i have value as 0.5 I don't what step …

Web Development mysql php
Member Avatar for code_rum
0
312
Member Avatar for knutsford-soft

$header = "From: $From_Email\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-Type: multipart/mixed; "; $header .= "boundary=$num\n"; $header .= "--$num\n"; # Define the message section $header .= "Content-Type: text/html\n"; $header .= "Content-Transfer-Encoding:8bit\n\n"; $header .= "$strMail\n"; $header .= "--$num\n"; # Define the attachment section $header .= "Content-Type: image/jpg; "; $header .= "name=\"Photo.jpg\"\n"; …

Web Development image php
Member Avatar for knutsford-soft
0
173
Member Avatar for jellybeannn

Can someone please help me with why this button is not working, I've tried putting it in <for id="" runat="server">, but then I get the error: A page can have only one server-side Form tag. When the button is clicked nothing happens. [code] <%@ Page Language="C#" MasterPageFile="~/train.master" AutoEventWireup="true" validateRequest="false" CodeFile="TrainStationTutorial.aspx.cs" …

Web Development asp.net
Member Avatar for Hamza Bukhari
0
2K
Member Avatar for chriswelborn

I'm not much of a javascript developer right now, as I just recently found the need to learn it. I'm using jQuery, and Javascript (sometimes stupidly, like when I find out jQuery already "abstracted out" something I wrote a 20 line function for). My question is about style though, with …

Member Avatar for Troy III
0
240
Member Avatar for GlenRogers

Hi I take data from a html form to inseert to mysql, sometimes that data has single and double quotes in it. How do you get the quotes to be part of the string so i can add to mysql. Hers what I have, but this still gives me a …

Web Development mysql php
Member Avatar for diafol
0
406
Member Avatar for davidjennings

Hi all I am trying to add a class selected to click area and a remove class in the hide area for the below jquery/javascript. Not really undstanding how it's added. Thanks in advaance D <script type="text/javascript"> $(document).ready(function(){ $('.partner_image').click(function() { var id =$(this).class('selected'); var id = $(this).attr('id'); id = id.replace('partner_',''); …

Web Development javascript javascript-jquery
Member Avatar for EvolutionFallen
0
230
Member Avatar for Dani

How can I split a string by word? When I do `$words = preg_split('/\b\w+\b/', $message);` then the resulting array has the correct number of keys, but the array values are all blank?

Web Development php
Member Avatar for pritaeas
0
210
Member Avatar for jLamp

Once, I've stoped Apache in XAMPP by using XAMPP Control Panel. Then, I've tried to start Apache. But it isn't starting. I've already closed Skype, TeamWeaver. :( Help me guys. I've to take so many backups in phpmyadmin :(

Web Development apache php
Member Avatar for veedeoo
0
317
Member Avatar for mpc123

Hi I have this working for the query to output the result but the if zero results echo is not working, and I cnat see why, if anyone can help please, there is no error that comes up and to test there is nothing in the database table, it works …

Web Development php
Member Avatar for mpc123
0
122
Member Avatar for imti321

<label class='colwidth' for='selectc' >Select Courses*: </label> <form action="send.php" name="course" id="states"method="post"> <Select name="States" id="State" style="width:40px;" > <option value=></option> <option value="1">HTML 5</option> <option value="2">JQuery</option> <option value="android">American Samoa</option> <option value="flash">Flash</option> <option value="flex">Flex</option> <option value="javascript">Javascript</option> </Select> <input type='submit' name='course' value='Submit' /> </form> And my php file is this <?php //Place state array at the …

Member Avatar for Webville312
0
367
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to send an email to a database? Example: So when the user sends an email to my websites email address the email will be broken up in to parts (Subject, From, Body etc...) and added to the database. FYI: I'm …

Web Development email php
Member Avatar for joshl_1995
0
553
Member Avatar for davidjennings

Hi all am am trying to reduce duplicated elements in a php page. How can I create a function that will pass the different values in the array. Thanks in advance D for ($i=$index-$x+1; $i<=$index; $i++) { echo "<div class='partner_description' id='partner_description_" .$partners_id[$i]. "'>"; echo "<p>".$description_value[$i]. "</p>"; echo "<div class='url'>"; echo …

Web Development php
Member Avatar for davidjennings
0
232
Member Avatar for Squidge

Good afternoon all. I have built the below class, and seem to have a problem where nothing is being displayed: <?php include_once '../include/tableStructure.php'; include 'crud.php'; //<- class by pritaeas class navigation { public $dsn; public function __construct() { $this->dsn = new crud($username, $passwd, $tableConfig); } public function nav($table, $live, $loc) …

Web Development php
Member Avatar for Squidge
0
260
Member Avatar for SQLpower

Hello. So, I have 2 questions. First is: I am trying to calculate the expiration date which will be calculated as adding the current date + the option that has been select i.e. 30, 60 or 90 days. $EXday = date('d', mktime(0,0,0,0, date(d) + $_POST[exdays], 0)); $EXmonth = date('m', mktime(0,0,0, …

Web Development mysql php
Member Avatar for SQLpower
0
256
Member Avatar for code_rum

Hi, I have imported .csv file and column is appearing as Col 1, Col 2... and the data I want as a column name is appearing as a first row. How do I convert my first row into column name in phpmyadmin. Thanks in advance

Web Development mysql php
Member Avatar for code_rum
0
1K
Member Avatar for raajsj

**Hai all,** I am developing web application using Asp.net frontend and MS Sql is backend, and i don't know **how can i retrieve Bit(Data Type) value from my database**, i don't know this... please anyone help...

Web Development asp.net
Member Avatar for raajsj
0
136
Member Avatar for eddiesaliba

Hi! I am testing the "session" object and I don't know why it is losing data when I change the web page. I created a simple software to show the problem: See the code: Page index.jsp: ============== <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> </head> …

Web Development java-jsp session
Member Avatar for eddiesaliba
0
873
Member Avatar for Varunkrishna

I had created a dropdownlist box as follows. The contents of default.aspx is listed below <asp:DropDownList runat="server" ID="day" CssClass="dobselect"> <asp:ListItem Value="0" Text="DAY"></asp:ListItem> </asp:DropDownList> <asp:DropDownList runat="server" ID="month" CssClass="dobselect"> <asp:ListItem Value="0" Text="MONTH"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="year" CssClass="dobselect" runat="server"> <asp:ListItem Value="0" Text="YEAR"></asp:ListItem> </asp:DropDownList> Then in the default.cs.aspx I had added the following code to …

Web Development asp asp.net c#
Member Avatar for |-|x
0
2K
Member Avatar for ytrobe

I am using WAMP server to code a form. The form contains 6 different pages. On the WAMP server when I go through the form it works perfectly, all session variables are brought from one page to the next, and so on. I call session_start() before each and every page …

Web Development php session
Member Avatar for ytrobe
0
2K
Member Avatar for davidjennings

Hi all I am request the following data from the database (image_id and description). I need to put each of them in a separate arrays and then echo out contents of both arrays I have tried array_push and implode without success. Any assistance would we appreciated. Thanks in advance D …

Web Development php sql
Member Avatar for davidjennings
0
3K
Member Avatar for NickBogi

I'm hoping the Daniweb community can help where other forums have been unable to! I am attempting to have my code count how many top level menu items there are and then determine what position each menu item is in. So, if it is the first, it will append the …

Web Development php wordpress
Member Avatar for NickBogi
0
187
Member Avatar for de Source

hi, I am working on an asp application using c# and i can import excel file to sql table i have two columns in excel and as well as in sql of same name "id" and "status" when i import data both columns are imported to sql table in the …

Web Development asp.net microsoft-office seo sql
Member Avatar for arun1123
0
321
Member Avatar for honkyno1

I have a form that I am trying to create a link to insert a new record within a dynamic table I am able to accuratly do this with a form as below using a submit button <tr> <form method="POST" action="<?php echo $editFormAction; ?>" name="submitOption" id="submitOption"> <td class="tdInvisible"><?php echo $row_allQuestionOptionUser['optionKey']; …

Web Development first-post php
Member Avatar for honkyno1
0
146
Member Avatar for Albert Pinto

Hi People, I've got a small query regarding checkboxes. I have a form, where there are input box, textarea, radio buttons and checkboxes. After form submit, Insert query gets fired and data gets inserted properly. I'm storing checkbox value as a string, I mean, the checkbox array... I'm converting it …

Web Development php
Member Avatar for Albert Pinto
0
2K
Member Avatar for KamiNuvini

Hello, I have the following RSS feed: [RSS Feed](http://rss.nuvini.com/list/feed2js/feed2js.php?src=http%3A%2F%2Frss.nuvini.com%2Fpublic.php%3Fop%3Drss%26id%3D-1027%26key%3D19a8dbb063bf0c30d5e74c5fb619f33255a027db&num=15&tz=+2&targ=y&utf=y) I load this feed like this: file: rss2.php <head> <link rel="stylesheet" type="text/css" href="rss.css" media="screen" /> </head> <body style="margin: 0px;"> <div id="RSS_Feed"> <script language="JavaScript" src="http://rss.nuvini.com/list/feed2js/feed2js.php?src=http%3A%2F%2Frss.nuvini.com%2Fpublic.php%3Fop%3Drss%26id%3D-1027%26key%3D19a8dbb063bf0c30d5e74c5fb619f33255a027db&num=15&tz=+2&targ=y&utf=y" charset="UTF-8" type="text/javascript"></script> </div> </body> Now what I want to do, is automatically refresh this page. I tried …

Member Avatar for ryantroop
0
2K
Member Avatar for davidjennings

Hi all - am trying to add a background image to the imput area for file upload for the input fields I have used the below css any solutions will be great. Thanks in adavance D #content .input-wide { width: 288px; height: 22px; margin: 0; padding: 6px 5px 6px 27px; …

Web Development html-css image
Member Avatar for davidjennings
0
223
Member Avatar for davidjennings

Hi all I am trying to resolve an issue when I select an expanding div, the first div selection pushes the second div element to the right. is there css fix or other to get this not to push div element to the right Thanks in advance D <!DOCTYPE html …

Member Avatar for davidjennings
0
362
Member Avatar for aVar++

Would anyone be able to help me set up xampp properly? Or is it secure enough as default? Thanks - Mat

Web Development
Member Avatar for Octet
0
157
Member Avatar for UK-1991

Hello All bellow is the code for time in which is not showing up when i login as admin. Php Code: <?php $query = "select * from presence where uid=".$uid." and date='".$date."'"; $recordset = mysql_query($query); while($record = mysql_fetch_array($recordset)) {$count = 1; //echo "<td>Your Time In :==: ",$record["timein"],"</td></tr><br></table>"; echo "<center><table><tr><td>Your Time …

Web Development php
Member Avatar for diafol
0
185
Member Avatar for mjsmitten

Is it possible to make a while loop for a function but in stead of just echo it's result, store it in an array??? values in database for example: one, two, three, four. In a normal way I do: While (havenumbers()) { echo havenumber(); // displays "one" etc. } In …

Web Development php
Member Avatar for paulkd
0
127
Member Avatar for idlackage

For example, after I press the button to submit this thread, a new page is created for it. How does this work/what would be the right way to describe it? I'm not sure where this should belong to so apologies if it's in the wrong forum.

Web Development javascript
Member Avatar for ryantroop
0
420
Member Avatar for Szabi Zsoldos

Hi guys, I'm working on a shopping cart and I'm having some difficulties with a concept. Basicly, I remove two articles in a certain condition and it works perfectly. My problem is that I want to redirect the user instantly if these two articles are removed from the cart. When …

Web Development javascript javascript-jquery
Member Avatar for Szabi Zsoldos
0
793
Member Avatar for phaea

I've spent a good few hours trying to find the answer to this, even though it seems simple. I know that this error is usually a result of a quote being wrong, but this is the first time I've used PDO and I've tried various combinations of quotes, using BindParam …

Web Development php
Member Avatar for phaea
0
866
Member Avatar for hirenpatel53

Hi all i am looking for some readymade skinfiles for asp.net so if there is any website providing this service Please let me help it out Thanks in advance

Web Development asp asp.net
Member Avatar for BMXDad
-1
511
Member Avatar for rubai

I have developed a theme in wordpress. When I go to home page tab it shows "page not found" at the title. But it shows all contents of home page (index.php). If I create a page named "Home" then it shows the page content instead of my index.php contents. I …

Web Development wordpress
Member Avatar for rubai
0
212
Member Avatar for arjani10

Hello!Somebody can help me please how can i autolink any word i have in my webpage autolink in php ? example array $word_list = array ( 'dogs' => 'http://dogs.com', 'dog' => 'http://dogs.com', 'cat' => 'http://cats.com', 'kitten' => 'http://cats.com', 'horse' => 'http://horses.com' ) any text dogs in my website corispond to …

Web Development php
Member Avatar for arjani10
0
887
Member Avatar for xxmp

Hello I have a site. For not i just check the size of the image and if it is bigger than a size i just do not upload it. Is there a way to reduce the size and upload it later? Thank you DiskFileUpload fu = new DiskFileUpload(); FileItem fi4=null; …

Web Development image java-jsp
Member Avatar for xxmp
0
301
Member Avatar for davidjennings

Hi All - I am trying to modify the below script. Currently on page load the page will display the click image and the message in the dialog box. What I want to do is do it the opposite and just have the click image display and on click the …

Member Avatar for davidjennings
0
336
Member Avatar for PsychicTide

Hey guys, think I've just been staring at this problem too long to find out how simple it is to fix... worked with several methods of finding and saving image dimensions to MySQL (actually used this same method several times), but the MySQL width and height is not populating this …

Web Development image mysql php
Member Avatar for PsychicTide
0
376
Member Avatar for showman13

Good evening, I have a client that wants to be able to display a list of contacts that have requested a call back from him. On this list he wants their phone number that was submitted. This is easy stuff to here... But then he wants to click on the …

Web Development php regex
Member Avatar for diafol
0
255
Member Avatar for Dani

What is the difference between: isset($foo['bar']) array_key_exists('bar', $foo) Is there a performance difference? Is one way more correct than the other?

Web Development php
Member Avatar for cereal
0
395
Member Avatar for phpDave

Hello, I trying to learn how to create a forgot password page. I used some code from another forum and having some trouble with it. I get an error for the $recs and $row variables. Any feedback on this topic would be appreciated. Thank you. <?php require_once('Connections/connadmin.php'); ?> <?php session_start(); …

Web Development php session
Member Avatar for srilatha12
0
220
Member Avatar for NitsPatel

hi, for wordpress theme which portfolio plugin is best for portfolio page thanks in advance

Web Development php wordpress
Member Avatar for NitsPatel
0
106
Member Avatar for raajsj

Hi all, i am developing web application, so if users want to use this application,first they should be register their details,at the time i have to send Userid and password to their Email address.now i'm have a code but it is not working,i got one error from this code. **the …

Web Development asp.net
Member Avatar for raajsj
0
249
Member Avatar for sonicx2218

I have a Js program where I want to hide ONLY the horizontal axis. scrolling : 'no', is the only command that seems to hide the scrollbars, but I want only the x to be hidden. Is there any x axis equivalent to this code? Thanks

Web Development html-css javascript
Member Avatar for sonicx2218
0
240

The End.