52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MysticalNomad

My project requires that I have several arrays defined in javascript such as: var d1 = new Array(2,17,18,19,20); var d2 = new Array(2,18,19,20); var d3 = new Array(2,18,21,19,20); var d4 = new Array(2); var d5 = new Array(2,18,19,20); var d6 = new Array(2,18,21,19,20); etc I have a `<select>` element which …

Web Development javascript
Member Avatar for Troy III
0
195
Member Avatar for kaizokupuffball

Hi! I have this problem on my website. When i move to the randomize section of my page it loads slow. It's ment to fetch alot of images, but it loads pretty slow, also the window freezes until the jQuery code in done running. I don't know how to explain …

Web Development javascript javascript-jquery
Member Avatar for LaxLoafer
0
178
Member Avatar for realworldmedia

How do i insert this into my sql database? I have tried a few things like putting the array bracks on the upload file. when i do this it saves the image location but doesnt upload the image. This is my upload snippet for ($i=0;$i<4;$i++) { if($_FILES['userfile']['name'][$i]) { $uploadfile = …

Web Development file-system image mysql php
Member Avatar for realworldmedia
0
123
Member Avatar for Violet_82

Hi there, I am running a few test and trying to practice a bit with javascript I have come up with a script which is meant to swap images but it is producing errors. I had tried to debug with firebug but it is not going well at all and …

Web Development javascript
Member Avatar for Violet_82
0
121
Member Avatar for sowh4t

Really really need help with this one! I need to convert from php to mysql so that it reads language information from mysql, i made mysql table already but I just don't know how to change from php to mysql <?php session_start(); header('Cache-control: private'); if(isSet($_GET['lang'])) { $lang = $_GET['lang']; $_SESSION['lang'] …

Web Development mysql php
Member Avatar for diafol
0
259
Member Avatar for apanimesh061

<?php include('./phplot.php'); $graph =& new PHPlot(); $example_data = array( array('a',3), array('b',5), array('c',7), array('d',8), array('e',2), array('f',6), array('g',7) ); $graph->SetDataValues($example_data); $graph->DrawGraph(); ?> When ever I run this program I get an error ! `The image "http://localhost/test.php" cannot be displayed because it contains errors.` I also have GD library enabled! What is the …

Web Development image php
Member Avatar for veedeoo
0
343
Member Avatar for broj1

Hi all I would like to display several charts on a webpage. I have designed a class that would draw each chart using GD and based on data set by a public method. Unfortunately instead of charts being drawn I get an error message: The image ... cannot be displayed …

Web Development file-stream image php
Member Avatar for broj1
0
237
Member Avatar for rawrawrs

Hi. I'm a newbie in php, and I recently bought a book called PHP and MySQL Web Development by Luke Wlling and Laura Thomson. I was able to make an order form in Chapter 1, but in Chapter 2, I have to process orders so that every time I fill …

Web Development mysql php
Member Avatar for rawrawrs
0
273
Member Avatar for serdas

hi, i found below online 00 11,16 * * * /home/ramesh/bin/incremental-backup i understand that it does 00 – 0th Minute (Top of the hour) 11,16 – 11 AM and 4 PM * – Every day * – Every month * – Every day of the week but what i need …

Web Development php
Member Avatar for cereal
0
452
Member Avatar for gilgil2

Hi I am trying to allow users to update records in a MySql database through php forms. One problem I am having is with a drop down field for dates. I want to echo the date already in the database so that the drop down menus is set to that …

Web Development html-css mysql php
Member Avatar for gilgil2
0
188
Member Avatar for bsewell

Hello all, I have an interesting bug in a calculator I have written. I've snipped the code done to something to get an idea of the calculator. So, if I clilck on Imperial, I can't seem to put input into my text boxes. However, if I press my TAB button …

Web Development html-css javascript
0
124
Member Avatar for Shuel

Hi All, I am having contsantly getting the following error: PHP Fatal error: Out of memory (allocated 4295491584) (tried to allocate 8589934593 bytes) the line its complaining about is as following hilighted in bold: [code]<?php $link = @sybase_connect('****', '***', '****') or die("Could not connect !"); echo "Connected successfully"; $sql = …

Web Development php
Member Avatar for mypaper
0
271
Member Avatar for bsewell

Hello all, I'm trying to get a calculation to appear in a DIV, in HTML. The calculation shows fine with the HTML, but my problem is that the result is showing straight away. I want it to display 5 seconds after the calculation is done (it's done in jquery). What …

Member Avatar for bsewell
0
154
Member Avatar for ak47carbon

on body load it is getting value of function tryt2(l) but iwant that on body load it get both function value and onclick i want to play animation.gif while getting data from 001.php but after getting data img will be removed plz tell me ASAP <html> <head> <script type="text/javascript"> var …

Web Development javascript
Member Avatar for ak47carbon
0
175
Member Avatar for HasNor

hi all.. i have a problem. Actually i want to view respond select by MAX(tran_id)...don't know why when i run this code, i do not get the max/ last respond.. it return to me the first respond..for the tran_id it view the max id but not for respond..here the script..hope …

Web Development php
Member Avatar for HasNor
0
126
Member Avatar for CriticalError

So I have not found a real answer to this yet. If you know asp.net you know what I mean. I need to make nested template for my website so that it remains consistant through out and certain sections change on different pages. How can I do this? Whats the …

Web Development php
Member Avatar for veedeoo
0
411
Member Avatar for Origamiswan

I am hoping this is in the right spot. We have an issue that I have not been able to track down for some time, hoping someone can give me an idea or point me in the right direction. To summarize: Occasionally, a computer in our network will cause our …

Member Avatar for ZeroZen
0
1K
Member Avatar for bilal_fazlani

#What do u think is wrong in this code???# ##no textbox is being affected :(## For Each ctrl As Control In Panel1.Controls If ctrl Is GetType(TextBox) Then CType(ctrl, TextBox).Text = "" End If Next

Web Development asp.net vb.net
Member Avatar for ZeroZen
0
144
Member Avatar for vidyade

Please give advice on itt . also want if date invalid it should same page plus .use whatever break do not excute more code inside button click event if date is not valid protected void btn_ok_Click(object sender, EventArgs e) { //DateTime dt = new DateTime(); //dt = Convert.ToDateTime(tb_age.Text);//"2011-12-30" //TimeSpan ts …

Web Development asp.net
Member Avatar for ZeroZen
0
164
Member Avatar for stereoworld

Ello, Firstly let me preface this with the fact that I'm absolutely hopeless at ASP.net. I know the basics, but that's it. Right, I'm trying to fix a property site coded in ASP.net. On the property landing page, there is a small gallery of thumbnail images below a larger one …

Web Development asp asp.net image
Member Avatar for ZeroZen
0
258
Member Avatar for ZeroZen

Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to …

0
136
Member Avatar for rogerg

I want to allow registered members to upload files to the file system I have two mysql tables members for registered users and a table files to have a trace which member uploaded which file. now, I only would like to allow the upload of PDF's to the file system. …

Web Development mysql pdf php
Member Avatar for rogerg
0
230
Member Avatar for grako84

Hi folks! I got a little problem with my assignment. The idea is to create online bookstore. As far didn't have much troubles with the project, until now. Problem occures when I'm trying to update/delete an entry to mySql. if you take a look at line 93 - there is …

Web Development html-css php sql
Member Avatar for fobos
0
241
Member Avatar for waqar3

I want to ask something. I don't understand how to get same data from table at only one time. Here are the example Like table name product_data and there are atleast six field. in data field the date look like this product Date 23-04-2012 23-04-2012 23-04-2012 23-04-2012 23-04-2012 23-04-2012 18-04-2012 …

Web Development php
Member Avatar for diafol
0
115
Member Avatar for utpal407

<?php include("include/dbc.php"); include("include/connect.php"); session_start(); $error="style='display:none;'"; $submitcheck=$_POST['submit']; if($submitcheck==1) { if($_POST){ $user_name=addslashes($_POST['user_name']); $password=addslashes($_POST['password']); $query1=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='1'"); $query2=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='2'"); $query3=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='3'"); $query4=mysql_query("SELECT * FROM …

Web Development html-css php
Member Avatar for diafol
0
251
Member Avatar for Pravinrasal

Hello everyone I created one canvas and draw one line on it I want to move this line using mouse on the canvas How to move line on canvas because using draggable function it cant move so pls help me.

Web Development html-css javascript
Member Avatar for Pravinrasal
0
780
Member Avatar for veledrom

Hi, I have an array and I want to check if the student id exists in it or not **without** looping the array. I tried `in_array` and `array_key_exists` but they didn't work. If **001122334** exist in array below then **echo exist**. Thanks in advnace Array ( [0] => Array ( …

Web Development php
Member Avatar for veledrom
0
159
Member Avatar for vizz

can anybody tell me, **how to protect website design with copyright ?**

Web Development xml
Member Avatar for vizz
0
147
Member Avatar for Miss Scarlet

I would like to find out if my code is correct. It doesn't look right to me. The code is in response to part of an assignment which asks 3 things: 1. Create Model Class file "booksmodel.php" i.e. "BooksModel". 2. Add public method called save_books() to model class. 3. Accept …

Web Development php
Member Avatar for Miss Scarlet
0
134
Member Avatar for weekendrockstar

I am looking to use mod_rewrite to remove the file extension of the files on my site. I am aware of how to make use of the mod but I was curious as to a couple of things when passing variables to a script. Such as if I have a …

Web Development php
Member Avatar for weekendrockstar
0
136
Member Avatar for DaveyMoyes

Hi everyone, I have a strange thing happening when I update my form. On the form there are a number of input fields, item cost,item name, item description. If I update the item cost, this updates without any problems, but it also updates the item description, duplicating the description. The …

Web Development php
Member Avatar for DaveyMoyes
0
96
Member Avatar for mrhankey

hi how can i have it setup where a user can only send 2 gifts a day on my website? many thanks

Web Development php
Member Avatar for diafol
0
81
Member Avatar for JohnBoy2

Hi - I'm very new here (1st post). I read the introductory docs, and looked at the categories, but I didn't see a specific place for posting code for review/critique. My apologies if this is not the appropriate place to do that... Here is some code I am hoping to …

Web Development ruby
Member Avatar for kb9agt
0
187
Member Avatar for jacob21

Hi, I have knowledge of php,javascript,html,& mysql for creating websites. I want to create a mobile website. Need suggestions.

Web Development php
Member Avatar for jacob21
0
115
Member Avatar for trektrak

As stated on the title above, I'm creating a login system using php and mysql. Ok, I'm wondering if it is possible that I can utilize it as window login system .. That means.. window Login system using web application. Which also means, When I first boot up and before …

Web Development php web-browser
Member Avatar for diafol
0
194
Member Avatar for ssreevidya.m

hai , I need to get the monthnames between 2 dates such as 01-04-2012 & 30-03-2013 . Can you help me to get it. Thanks in advance, sreevidya

Web Development asp.net
Member Avatar for hotelworld
0
78
Member Avatar for Mongz

I need to make a contact form on a website that will send comments to an email. I have designed the html file but i'm not sure where to beggin with adding the file or code that will support this function. So far i have learnt that it can be …

Web Development html-css javascript
Member Avatar for gotboots
0
152
Member Avatar for hprem991

Hi All, I am designing a web page using JSP / JDBC / JavaScript and apache tomcat 5.5. There seems to have a major issue after few page request. Initially, all pages respond was excellent but after few ( 10 - 15 ) requests, the respond time drops to minutes …

Web Development apache java-jsp
Member Avatar for harinath_2007
0
103
Member Avatar for blaaam

Hi! I have started learn about Query and PHP, and i don't know what to do next. I have made table with query help i can show in table records from my Database, so far i have well, but next what i want to do is every record in table …

Web Development mysql php sql
Member Avatar for Biiim
0
325
Member Avatar for FrodoBaggins

Hi people I have coded a data-based website in asp.net, and want to run it on a lighttpd webserver using debian as the host os I am wondering how to set up mono and allow my Databases to be read and written to I have read through this: http://www.mono-project.com/FastCGI_Lighttpd and …

Web Development asp.net debian
Member Avatar for diafol
0
217
Member Avatar for Farhad.idrees

Hi Friends... i just want to make chat in php like "Online help chat" for different website... can anyone guide me where i can get material? Regards... Farhad

Web Development php
Member Avatar for breakzzzz20
0
111
Member Avatar for Wolxhound90

Hey guys, I have a problem with searching for a string within a string. Here's the code I have at the moment: $query = mysql_query("SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = '".$db."'") or die(mysql_error()); while($table = mysql_fetch_array($query)){ $checktbl = $table['TABLE_NAME']; foreach($_POST['fields'] as $f){ $f = substr($f,strpos($f, '.')); if($checktbl == $f){ …

Web Development php
Member Avatar for diafol
0
126
Member Avatar for JGlen

Now i have every thing working, the pagination is a bit fine, only when i click next to go to page 2 or 3, nothing is being shown on the page, the browser shows that i am on the page2 but no data is beeing shown, now when i force …

Web Development php
Member Avatar for JGlen
0
252
Member Avatar for George_91

Hello, I am trying to include a Contact Form in my website. I'm using WAMPserver and Free SMTP Server to test it. The problem is, everytime I click in my button of Send Mail, this error appears in my browser: *Warning: mail() [function.mail]: failed to connect to mailserver at "localhost" …

Web Development dns email php
Member Avatar for pritaeas
0
1K
Member Avatar for Jesi523

I am trying to write an MVC application. I am rather new to MVC and I am taking the project over from someone else whom started writing it. This is what I am trying to do. I have some html documents that are located within my application. When a user …

0
99
Member Avatar for don't give up

hello this is my problem ![help11](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2hlbHAxMS5wbmc%3D/500 "help11") how can do that in php ? <html> <FORM> <TABLE BORDER="0"> <TR><TD> facbook account :</TD> <TD><INPUT TYPE="text" NAME="facbook account" MAXLENGTH="50"><TD><INPUT TYPE="SUBMIT" NAME="save1" VALUE="save"></TD></TR> </FORM> </html> thanks

Web Development php
Member Avatar for don't give up
0
113
Member Avatar for rogerg

Hello, I'm trying to set up a website where user can upload files to which should be readable by everybody. Logged users should be able to comment on the files and rate the files. I'm new to MySql and quite new to PHP so it has taken me already lots …

Web Development html-css mysql php
Member Avatar for rogerg
0
507
Member Avatar for koricha

i get an error "org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 18" i think my exception code is wrong. i don't know how to return an empty string when the user doesn't enter any number and clicks "continue". any suggestions <%@ page import="java.io.*"%><%@ page import="java.util.*"%><?xml version="1.0" encoding="UTF-8"?> …

Web Development apache java java-jsp session
Member Avatar for thines01
0
189
Member Avatar for idiotguy

Hi friend! I want to get the code which helps daniweb to show the preview of every site/link it gets. For example let me give a link [here](http://www.google.com) whenever i hover my cursor to that link,it shows me a preview of that site. Can you give me the code which …

Web Development javascript open-source seo
Member Avatar for idiotguy
0
199
Member Avatar for doctorphp

Hey everyone, Parsing RSS is not my strong point and I am making a news feed for a client and they want me to use the Yahoo News RSS feed. I am using the following code. <?php $url = "http://news.yahoo.com/rss/europe"; $xml = simplexml_load_file( $url ); ?> <h3 id="ln">Latest News</h3> <?php …

Web Development api php xml
Member Avatar for mschroeder
0
377

The End.