52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for legends

I need to know how to pass the data's from database to a constructor like this "Jungle Book" => new Book("Jungle Book", "R. Kipling", "A classic book."), "Moonwalker" => new Book("Moonwalker", "J. Walker", ""), "PHP for Dummies" => new Book("PHP for Dummies", "Some Smart Guy", "") my coding is [CODE]$data …

Web Development php
Member Avatar for legends
0
131
Member Avatar for uselessninja

hi everyone ...how to do this in jscript .... refreshing a page once,twice or so on every given time.. (refresh 1x/30 secs or 2x/40 secs) to make it clear: example i will input 100 on a textbox (so this is my given time) and i will set to refresh the …

Web Development javascript
Member Avatar for uselessninja
0
86
Member Avatar for Sorcher

Do anyone see what im doing wrong with the update query? i get this mysql_error message; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-xxx WHERE id = '616' AND userid = '15'' …

Web Development mysql php
Member Avatar for karthik_ppts
0
141
Member Avatar for lalaka90

good morning. i am new still new in php. I need help from you all. why i cannot delete multiple rows from mysql with checkbox in my database... this is my coding.. <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="cek"; // Database name $tbl_name="del"; …

Web Development mysql php
Member Avatar for karthik_ppts
0
213
Member Avatar for uselessninja

hi ... i is it possible in php: updating/refreshing a page once per 30seconds (1/30 secs) and it can be set for 2x,3x times and so on.... and also the seconds (the 30 seconds ) can be set also....

Web Development php
Member Avatar for uselessninja
0
123
Member Avatar for kristo5747

[B]**Disclaimer: It's been a while since I last wrote any code. The quality of my code is likely to be sub-par. You've been warned.**[/B] I have a basic form that's meant to search flat files on our server. The "search engine" I created as two select lists: one for the …

Web Development php
Member Avatar for kristo5747
0
173
Member Avatar for sibymary

hi,im using registration form for registering users to the new account.i have 2 tables in one database.database name is test and table name is student and member.in student table which contain the register no of student which is already stored in the database.in member table,it has 4 fields which is …

Web Development mysql php
Member Avatar for sibymary
0
130
Member Avatar for Sparhauoc

Hello all, first post here. I'm a newbie in php code, but declaring a simple variable I thought I could do, but apparently not. I cannot figure out which rule I broke, but I keep getting an error message in line 4 of the following code for an unexpected t …

Web Development php
Member Avatar for Sparhauoc
0
132
Member Avatar for anand01

Hi all, I need to access mysql db from multiple servlet i,e need to insert the value from one servlet and retrieve from another servlet.i passed the connection variables through web.xml file. i need to get those variables from both the servlets to connect the db again.how to achieve that …

Web Development java-jsp
Member Avatar for anand01
0
150
Member Avatar for dashawk

Hi guys, I am new here in the community. I need help on how to pass a javascript variable value to a php variable.. I am using jquery to hide form1 when the page loads. My first javascript is working fine. my code is like this: [CODE] <script type="text/javascript"> $(document).ready(function(){ …

Web Development javascript javascript-jquery php
Member Avatar for dashawk
0
444
Member Avatar for fantasma

Greetings! Recently I've been updating an image resize class I found on the internet. What I needed to have was a script that would crop an image in order to fit in a defined with a fixed width an height. However, after the image is redimensioned, (keeping the aspect ratio), …

Web Development image php
Member Avatar for fantasma
0
135
Member Avatar for Stefano Mtangoo

I'm making personal MVC framework skeleton I plan to build all sites on it (reserve your question pls on why not CI or CakePHP et al). Now Thinking of session security, one option is database. I was wondering whether storing session data in root_app/tmp/sessions/ would be better as/more than database! …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for musicmaker001

I created a Javascript application that creates a moving quote.([url]http://economymoving.net/get_an_online_moving_quote.php[/url]) The quote page should insert a record in the db, display the record on a new page called viewquote.php and send an alert email to the company. Currently, the phpmyadmin database receives the record but viewquote.php doesn't display the correct …

Web Development adobe ide mysql php
Member Avatar for paulrajj
0
987
Member Avatar for ziaul1234

I am final year student and developing a web application using ASP.NET for my computing project. The web application will have three user group to do the follows: Admin: 1. Add User 2. Incidident Allocate 3. Report Incident 4. View Incident 5. Report Engineer: 1. Pick Incident 2. Report Incident …

Web Development asp.net
Member Avatar for markymark180
0
184
Member Avatar for fatihpiristine

here is my stored procedure [code=sql] begin select indexes.IndexID, languages.LanguageID, languages.LanguageName, indexes.OrderID, indexes.IndexName FROM indexes, languages where indexes.LanguageID = languages.LanguageID and languages.LanguageID = Language order by indexes.OrderID asc; end [/code] here is my php code [code=php] <?php $Server = "127.0.0.1"; $Port = ":"."3306"; $DataBase = "abc"; $UserName = "def"; $PassWord …

Web Development mysql php
Member Avatar for klusik
0
1K
Member Avatar for mwenyenia07

i am using mail() function to send email with php. the following is the sending script. <?php $to = "bonjourcava@gmail.com"; $subject = "Contact Us"; $email = "bonjour" ; $message = "jee tres bien" ; $headers = "Billing information"; $sent = mail($to, $subject, $message, $headers) ; ?> it displays a success …

Web Development email php ubuntu
Member Avatar for manojcbit
0
94
Member Avatar for ditty

Hi I am doing an API application now. I sent the request using soap. I received the response back in xml format. For simple example i sent the request as <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fram="http://framework.zend.com"> <soapenv:Header/> <soapenv:Body> <fram:getVersion/> </soapenv:Body> </soapenv:Envelope> Received Response as <SOAP-ENV:Envelope xmlns:SOAPENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://framework.zend.com"> <SOAP-ENV:Body> <ns1:getVersionResponse> <return>0.1</return> </ns1:getVersionResponse> </SOAP-ENV:Body> …

Web Development api php
Member Avatar for ditty
0
379
Member Avatar for tapuwa2002

Hey guys I was hoping you help, I have a ms access database on my webserver. I want to select all the records with a certain date. But it seems not to work. [CODE] <CFQUERY NAME="qStuff" DATASOURCE="MyDb" maxrows="20"> SELECT * FROM Stuff; WHERE (((Stuff.RegDate)=#5/1/2004#)); </CFQUERY> [/CODE] When I do this …

Web Development coldfusion
Member Avatar for tapuwa2002
0
221
Member Avatar for Mahesh59

i'm able to upload files using jsp into my server.Now i want to download those files with a popup window showing open save or cancel options.can anyone tell me the code for it.

Web Development java-jsp
Member Avatar for cuddlefish
0
2K
Member Avatar for Hani1991

Hello everyone, I've read, in the manual of PHP, about this function, i.e. quotemeta(string $str). This function [QUOTE]Returns a version of str with a backslash character (\) before every character that is among these: . \ + * ? [ ^ ] ( $ )[/QUOTE] Now, I understand what it …

Web Development php
Member Avatar for Hani1991
0
129
Member Avatar for jonsan32

I'm only adding this code to a few pages. I have the background changing over each linked hover, but is there anyway for me to allow one item remain that background color to indicate which page my visitors are currently on. If you can show me how to do one, …

Web Development javascript linked-list
Member Avatar for jonsan32
0
369
Member Avatar for staticwave

Hi, I am very new to working with php and I need a little help getting the fields from my form divided into two rows and properly aligned when output to the user. [B]Function:[/B] This is a Client Profile type of program. A form is displayed to the user and …

Member Avatar for staticwave
0
413
Member Avatar for erik216

I want to write a script if database no this record. It will insert If database have tis reord. It will update [CODE]for ($a=0; $a<count($arr_event_id); $a++) { $query1 = "SELECT evnt_id FROM sales_roadshow WHERE evnt_id = '".$arr_event_id[$a]."' "; $result1 = mysql_query($query1) or die(mysql_error()); $row_s1 = mysql_fetch_row($result1); $P_numrows1 = mysql_num_rows($result1); if …

Web Development php
Member Avatar for urtrivedi
0
142
Member Avatar for Hani1991

Hello everyone, I've visited a lot of websites, like Daniweb, and found effects on the sites pages that are really of a considerable design. I know it's becoming common, but I really get impressed at seeing such things. When you put the mouse cursor on some button it becomes highlighted …

Web Development gui image javascript
Member Avatar for Hani1991
0
157
Member Avatar for SolidSora

I want to update a table based on what a user enters. I know I got the username and password correct. But I keep getting an error based on my debugging code. I'm connecting to the database successfully, but it's just not updating. The variables print into the page, so …

Web Development mysql php
Member Avatar for dashawk
0
111
Member Avatar for Happiness143

hi Danny, I have an issue where i need to get to a particular element when i click on a menu button.It is working fine in IE but in firefox it doenst work.There is a literal to which i am binding data dynamically and i have assigned id's.When i click …

Web Development javascript
Member Avatar for Airshow
0
126
Member Avatar for Adjoa

THIS IS THE FUNCTIONS FILE [CODE]<?php function pf_script_with_get($script) { $page = $script; $page = $page . "?"; foreach($_GET as $key => $val) { $page = $page . $key . "=" . $val . "&"; } return substr($page, 0, strlen($page)-1); } ?> <?php session_start(); require("Config.php"); require("Functions.php"); //Determine if the user is …

Web Development php
Member Avatar for chrishea
0
183
Member Avatar for barriegrant1

so im trying to load the first 2 imageIDs from 5 galleries, so here how it works, im using a stored procedure to get the top 5 galleries (galleryID). a second stored procedure is used to load the first 2 imageIDs based on the galleryID, here is the c# code …

Web Development asp.net listview
Member Avatar for Mark76
0
146
Member Avatar for garymae14

hi! can u help me regarding on how to create statistical graph using php?

Web Development php
Member Avatar for Ezzaral
0
129
Member Avatar for s0bigg

I have a MySQL database that has a list of items which gets updated everyday. The database is truncated everyday and filled back with the recent posts. After it is filled out, I need an automatic system that will send out the emails to users who have provided certain keyword. …

Web Development email php
Member Avatar for s0bigg
0
106
Member Avatar for PixelatedKarma

Hey guys and gals, In my ongoing php experiments I'm trying to build a script and what I would like to do is make a group of links(they will be static) ie.... <a href="index.php">Index</a> <a href="about.php">About</a> <a href="etc.php">Etc</a> But the twist to this is I want it so that they …

Web Development php
Member Avatar for PixelatedKarma
0
132
Member Avatar for topsege2007

I have a php script that i use to send mails to lists of emails in my database, but the mail appears in text form only. Now i want my subscribers to get their mails in HTML format. Please help me out.

Web Development php
Member Avatar for cereal
0
110
Member Avatar for Waynef

Hi, I want to fade in each element in my array with a slight delay from the preceding element so they dont all fade in at the same time. Here is my code: [CODE]$(document).ready(function() { var arr = ['<img src="images/1.jpg" />', '<img src="images/2.jpg" />', '<img src="images/3.jpg" />', '<img src="images/4.jpg" />', …

Web Development javascript javascript-jquery
Member Avatar for Waynef
0
79
Member Avatar for Cranial Fool

Hi all, A developer has provided me with some scripts that display clusters of markers and info windows on a Google Map (v3 API). The markers side of things works well but there is a problem with the info windows. Unfortunately I didn't notice until after I paid him and …

Member Avatar for Airshow
0
216
Member Avatar for 54uydf

I have 3 tables in DB, m..m relation table1: [U]id1[/U], a,b,c... table2: [U]id2[/U], x, y .. table3: [U]id1[/U], [U]id2[/U] I'm inserting new rows to table1 using a form, and the P. key field is set to AUTO_INCR, because there's no other property that can be meaningful enough to distinguish between …

Web Development php
Member Avatar for 54uydf
0
146
Member Avatar for baig772

i am new to JIRA i did not find JIRA category dats y asking question here how can i deploy JIRA on my server????

Web Development php
Member Avatar for sl_bart
0
77
Member Avatar for mwenyenia07

i have created an application which is supposed to check database after every 20 minutes to get some new data and respond accordingly. how do i implement this regular checks ?

Web Development php
Member Avatar for paulrajj
0
114
Member Avatar for anupama385

I have two textboxes and when I enter values in them, I want them to be displayed on the screen(not in a pop up window)...plz help me out!!!!

Web Development display php
Member Avatar for digwnews
0
103
Member Avatar for gilgil2

Hi I am trying to include the code xta into this below url, it works with other parts on the page, but there is something to do with this URL that appears to stop it working. Would anyone be able to tell me why xta does not get inserted where …

Web Development finance php
Member Avatar for almostbob
0
254
Member Avatar for spawn2004

Hi everybody, i want to ask for help. I have a website and i will write a php soure code for uploadding files. Let's say i or user upload powerpoint presentations and need to be open in a window in the site when somebody choose the link.Can anyone tell me …

Web Development php
Member Avatar for digwnews
0
92
Member Avatar for braj1999

I am working on RHEL 5. I have to build a web automation framwork using Ruby. when I am trying to read a XML file using Chilkat ruby I am getting following error. Ruby code where I am getting the error. require 'rubygems' require 'Chilkat' ... ... xml = Chilkat::CkXml.new() …

Web Development ruby xml
Member Avatar for braj1999
0
216
Member Avatar for uselessninja

hi ...i have a problem connecting MSSQL 2005 express and php.. i've tried configuring the php.ini by removing the ; in extension=php_mssql.dll but not working i also place the php_mssql.dll on ext folder but not working again; and also i tried downloading an old ntwdblib.dll and placing it in system32 …

Web Development microsoft mssql php sql
Member Avatar for uselessninja
0
183
Member Avatar for titosd

Hello, I want to write a program. in the program i need to generate a password that contain 8 - 10 charachters. i did it, but without regex, Can any one help me, how to do this with the regular exp ? the criterias for the pass are: 1- the …

Web Development javascript regex
Member Avatar for pritaeas
0
89
Member Avatar for maroin22
Member Avatar for vijayjazz
0
222
Member Avatar for spivey

I need to update database table fields that contain URLs based on evaluation of the those URLs. Specifically, I need to eliminate the empty the fields of any URL that contains the directory "img_ours", and I need to take any URL that contain UPCs and change the URL formula, but …

Web Development mysql php
Member Avatar for rpv_sen
0
146
Member Avatar for youvi
Member Avatar for decade
0
77
Member Avatar for nigelsponge

Hi, I am using a $get function to get a variable from the URL as my page subtitle. It works fine except if the variable has an apostrophe in it. Then the title has a backslash in front of the apostrophe (probably to escape that apostrophe). Not sure how to …

Web Development php
Member Avatar for coolest_987
0
197
Member Avatar for PinoyDev

I am having problem regarding fixing my php content page with some css. I have a page which is 980px with..I want to put an image with 70 in height and 141 in width. But i want this image to be right align...I currently have the following css but when …

Web Development html-css php
Member Avatar for PinoyDev
0
113
Member Avatar for DILO3D

[CODE] function func1(str) { document.getElementById("txtHint").innerHTML='<Br>Graph type: <select id="sel" name="sel" onchange="func2(str)"><option value="1">1</option><option value="2"> 2</option></select>'; } function func2(x) { some codes.... } [/CODE] In Above coding, i want to pass the "str" variable to "func2" in onchange . but above code is not working. Can anyone Please help me..?

Web Development html-css javascript
Member Avatar for DILO3D
0
260
Member Avatar for PinoyDev

Good day! I am having a little problem regarding clearing sessions. I have a link named LOGOUT in php.. when this link is click, I want to clear and detroy all sessions and redirect the user to index.php page. thank you for helping!

Web Development php session
Member Avatar for PinoyDev
0
109

The End.