52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TechySafi

I'm a noob developer. Trying to develop a simple php-mysql based chat script. I'm stroing all of my chat message's in a table. So to retrive em, im running a mysql query. Here is no problem but im concerned that it may create some performance & speed issues when a …

Web Development php
Member Avatar for Sorcher
0
113
Member Avatar for fantasma

Hello fellow programmers, I've built an upload script that, as usual, verifies if a file extension is allowed. However, the comparison seems to not be working, as it gives me an unhauthorized file trying to be uploaded (when in fact the file has an authorized extension). If i comment the …

Web Development php
Member Avatar for fantasma
0
101
Member Avatar for barizon

I have a form with the vendor and product fields, I want that after these two items are completed the price of the product field is automatically filled in accordance with the vendor and product inserted (remembering that there is a price table where you register the product price and …

Web Development javascript
Member Avatar for barizon
0
104
Member Avatar for JBLDW

This is a (very) basic PHP form for use with a database. - Not sure of all the technical stuff I probably should be adding to this post, and I am not sure that it is safe to use either. - Spent hours (literally) looking at ways of securing the …

Web Development php
Member Avatar for JBLDW
0
115
Member Avatar for MrPixel

Hey folks, Long story short. I've been looking around all day for a script that would detect the height of one div (can't be predefined because of dynamic text content), and set a second div as that same height. I found a few forum topics about scripts I thought could …

Web Development javascript
Member Avatar for bulletcatcher
0
334
Member Avatar for ankurmawanda

i am having some connectivvity issues i am using postgres 9.0 sql db i have installed a dns localhost using the postgres sql driver also i have the jdbc jar files in the lib dir of the tomcat my code is [CODE] <%@ page language="java" import="java.sql.*" %> <% Class.forName("org.postgresql.Driver"); Connection …

Web Development java java-jsp postgresql
Member Avatar for masijade
0
298
Member Avatar for Acute

How to send [COLOR="Red"][U]ANY[/U][/COLOR] text via jquery ajax method to php script? When text entered in textarea is html entity, php $_POST[]/$_GET[] sees it as empty string. Here is the code: [CODE=html] <head> <script type="text/javascript" src="/Engine/js/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("button").click(function(){ $.ajax({ type: "GET", url: "get.php", data: "ta=" + $("#ta").val(), success: …

Member Avatar for McLaren
0
172
Member Avatar for ben.marks

Hi there, This may or may not be a dumb question, but I've never come across it before. Can you point to a javascript 'onsubmit="return validation()"' on a form, but WITHIN PHP tags? Such as the below. [CODE]function validation(){ var reply = document.getElementById('comreply'); var div = document.getElementById('errormsg'); if((reply.value == '') …

Web Development php
Member Avatar for ben.marks
0
171
Member Avatar for vboopathicse

i need a script that data's fetch from mysql and display in text scroller using javascript. i' uses it is a news update. please somebody helpp me.

Web Development javascript mysql php
Member Avatar for diafol
0
175
Member Avatar for souravsikka

Hello friends,i need your help in PHP.Currently i am doing a module named compare items,in which i have to compare different phones of different brands. Working of this module: firstly user check the associated checkbox of the phone.At a time user can Select 3 phones.A list is maintained which keep …

Web Development php
Member Avatar for diafol
0
111
Member Avatar for emma123

Hi, i am new to this and was wondering the following question 'Is PHP a good way to implement a database driven Web site? Thanks

Web Development php
Member Avatar for diafol
0
158
Member Avatar for ben.marks

Hi there, Pretty novice to JS, just wondered if anyone could give me a hand please. I have a form that is passed to itself. I was just wondering if there was a way to get this to validate before it passed to itself. I was assuming that as the …

Web Development javascript
Member Avatar for ben.marks
0
361
Member Avatar for elneco

forums, I’m developing a site for some hotels in baltimore. I want to incorporate a booking widget similar to the one on: [url]http://www.dullesairporthotelrooms.com/[/url] Where a user can select 1 of 4 property’s to check for availability. can any1 please help with this? Thank you, -neco

Web Development javascript
Member Avatar for pritaeas
0
133
Member Avatar for samsons17

Hi.. I got to query that i want to execute here..It is again like facebook wall system,where the first query is for executing all the "wall post",while the other query is for executing the comment for the post. So basically,i need two query for that,which I've written them down like …

Web Development php
Member Avatar for samsons17
0
104
Member Avatar for stevenfagan

I can't insert values into a table using a stored procedure because the fields are of data type MONEY. First, is the data type CURRENCY the same as data type MONEY? Right now, I am currently using the integer value of adCurrency for the data type parameter of the createparameter …

Web Development asp finance sql
Member Avatar for ArtistScope
0
298
Member Avatar for yamot47

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function buttonPress(str) { var str; alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" …

Web Development php
Member Avatar for yamot47
0
249
Member Avatar for raghujosh

I am developing a form(PHP) that will accept some data. The data will be displayed on a web page. However, before it is displayed, a moderator of the site has to grant permission to display the data. The way it works 1) A user logins to the site and enters …

Web Development php
Member Avatar for vaibhav1983
0
100
Member Avatar for captain.don

I have table named 'user' that has 3 fields 'name' ,'id' and 'profile'. table is filled and 'id' field is filled with 1 to 18 (that is 18 rows).when i run this script it shows the result :: 18 17 16 15 14 Pages4) [1] 2 3 4 >> Last …

Web Development php
Member Avatar for vaibhav1983
0
193
Member Avatar for yapkm01

I would appreciate any help on the above. All my process and issues is in the attachments. ps: Java 1.6 tomcat 5.0.28

Web Development java-jsp
Member Avatar for yapkm01
0
237
Member Avatar for souravsikka

Hello friends,i need your help in PHP.Currently i am doing a module named compare items,in which i have to compare different phones of different brands. Working of this module: firstly user check the associated checkbox of the phone.At a time user can Select 3 phones.A list is maintained which keep …

Web Development php
Member Avatar for jkon
0
162
Member Avatar for ekseks

Hey guys, I don't know where to post this but I hope this is the right place. I just wanted to know if anybody's using Joomla if you are, do you know how delicious works? the site where you keep your bookmarks and can be seen by your friends and …

Web Development php
Member Avatar for jkon
0
163
Member Avatar for din3sh

Hi .. I'm not so experienced with php .. I'm getting this error on the bolded line .. Can neone help me figure it out .. Regards, Dinesh Ramchandani [CODE] <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db('lasagnia_user', $con); if (!$db_selected) …

Web Development html-css php
Member Avatar for rcollins
0
254
Member Avatar for revathis

Hi, I am new to PHP. I have installed apache, PHP 5.2 and MySql. Plz tell me How I run PHP programs?? Thanks & Regards, Revathi

Web Development apache php
Member Avatar for riya...
0
203
Member Avatar for Ambislm

I made a simple application that have a combobox which is loaded with database value and a textfield which should display text related to combo box selection. Name Number number1 1234 number2 2345 number2 5678 number3 2212 So combo box will have values number1, number2, number3. when user selects number1, …

Web Development php
Member Avatar for Ambislm
0
196
Member Avatar for mrexp21

Hello , I would like to modify this script a bit . It is a video upload script for my site . The php content contains all the neccessary fields and upload via browse files only . I would like to make it another optional such as remote/url upload . …

Member Avatar for diafol
0
262
Member Avatar for -==Zero==-

[B]Hey Iam New Here And Iam Noob In Php I Made A Web Site Directory Script A Form So The User Can Post His Site And E Mail This Site Show Directly I Need To Make This Site Under Moderation First Before It Show In Main Index File I Have …

Web Development php
Member Avatar for -==Zero==-
0
103
Member Avatar for manish250

hello all i have a jsp page.there is a text box in jsp page.what i want is when i enter a key in text box it accepts it only if it is alphabet otherwise it would give an alert.I want to enable arrow and backspace and delete key.Currently i am …

Web Development java-jsp javascript web-browser
Member Avatar for peter_budo
0
124
Member Avatar for Manojo7

HI guys , i'm new to this community. plz help :'( i'm doing a project which is called Online Examination.. can i give a variable as value in radio button???? Here is my code [CODE] <% try{ int num; double d=Math.random()*10; PrintWriter oo=response.getWriter(); num=(int)d; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:mno"); Statement stmt=con.createStatement(); ResultSet …

Web Development java-jsp
Member Avatar for peter_budo
0
103
Member Avatar for Papa_Bear

Hi All. I want to allow users to select a font using a dropdown box. As every body has different fonts installed, how do I read the available fonts. I know this will be a very long list, but will not be used very often. I will store the selected …

Web Development asp
Member Avatar for ArtistScope
0
289
Member Avatar for mik117

This Error keep show up everytime i use insert query code in my php programs 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 '-student(stud-id,stud-fname,stud-mname, stud-lname,stud-gender,stud-status,stud' at line 1 example code: <?php require_once "formvalidator.php"; …

Web Development mysql php
Member Avatar for stone2191
0
132
Member Avatar for tinker

I am creating a dynamic web page where uploading images is one of its feature. I have a looping DIV where each DIV has its own images: show sample below... [CODE] <?php while($row=mysql_fetch_assoc($result)){ $id=$row['id']; $path=$row['path']; ... ?> <div class="img-container"> <img src="<?php echo $path; ?>" /> <button onclick="changeMe('<?php echo $id; ?>')">Change …

Web Development image javascript
Member Avatar for mahavir123
0
281
Member Avatar for Acute

When I insert "&lt;b&gt;dog&lt;/b&gt;" into database using php, it inserts empty string. WHY??? How to fix it? thnx in advance

Web Development html-css php
Member Avatar for Acute
0
88
Member Avatar for gymie1980

how can i refresh php page by click button (onclick funtion) in another php file i have 2 file : a.php & b.php so how to refresh page in b.php by click button in a.php hope anyone can help me. Thanks

Web Development php
Member Avatar for P0lT10n
0
119
Member Avatar for anawan

Hi, I am new in PHP world and know some basics. I have a database where date wise entries to be made by users. I would like to get results in month wise total. e.g. I have these columns in the database: fleet_no, fueling_date, quantity, price. Now I want to …

Web Development mysql php
Member Avatar for Stefano Mtangoo
0
72
Member Avatar for tcollins412

how do you change the timeout of a session? can you do something in the php.ini?

Web Development php session
Member Avatar for Stefano Mtangoo
0
88
Member Avatar for NitendraTRIC

[code] cmd=new sqlcommand("insert_student",con) cmd.commandtype=commandType.StoredProcedure Add.Parameters.AddwithValue("@stuid",txtstuid.text) Add.Parameters.AddwithValue("@name",txtname.text) Add.Parameters.AddwithValue("@course",txtcourse.text) con.open() cmd.ExecuteNonQuery() [/code] i want to create method for executing procedure but how it possible... [code] Function ExecuteStoredProc(Proc as String) cmd=new sqlcommand(Proc,con) cmd.commandtype=commandType.StoredProcedure Add.Parameters.AddwithValue(????,?????) con.open() cmd.ExecuteNonQuery() end function [/code] how to call this function can anybody help me.........

Web Development asp.net
Member Avatar for prateekpk5
0
118
Member Avatar for khlouk rada

hello! I'm new to the forum. I really need help from all of you. I have a form in an html page "index.html" like below: [CODE]<form action="login.php" method="post">...[/CODE] How can I prevent users from viewing the login.php in the action attribute of the form tag above by just typing its …

Web Development php
Member Avatar for khlouk rada
0
100
Member Avatar for gyannitin

Hi, I have a section, suppose A and it has 3 sub sections B,C and D. I want only A to be displayed in the left panel and on clicking it, B , C and D should appear.B,C and D will have hyperlinks. Any pointers will be very usefull. Thanks

Web Development javascript
Member Avatar for gyannitin
0
144
Member Avatar for fuston05

I set my cookie on a previouse page, this page here i call it and set it to a var, then when i echo it it says undefined var. Just curious.. im missing something simple here.. not sure what it is. Cookie is set, i verified that. and if i …

Web Development php
Member Avatar for fuston05
0
115
Member Avatar for joban.ali

Hi I just wanted some advice regarding my login script. Example: I have 2 types of user "Student" and "staff" I would like both types of users which are in different tables to log into one login form, at the moment I have 2 separate scripts. The general assumptions apply …

Web Development php
Member Avatar for Zagga
0
116
Member Avatar for cj333

[CODE] page = $("<div id="content"><p>aaa</p><p>bbb</p><p>ccc</p></div>").find('p').eq(0); [/CODE] This can echo `<p>aaa</p>` but How to select multi `eq()` in jqeury? if I need `<p>aaa</p><p>bbb</p>`

Web Development javascript javascript-jquery
Member Avatar for bvelez352
0
100
Member Avatar for itisnot_me

ok so what i am trying to do is loop through the POST data to create an array of the data to be used later. this is what i have but when i use is_array it returns not an array. i swear it was working at one point but now …

Web Development php
Member Avatar for itisnot_me
0
112
Member Avatar for maxbalboa

Hi Everyone, I got a strange problem with session. Session variables that I define in a page with "www" prefix in the domain name for example http://www.foo.com/page1.php for some reason can't be recognized in page2.php if I remove the "www". But if I use "www" like http://www.foo.com/page2.php, it works just …

Web Development php session
Member Avatar for mayureshgoyal
0
572
Member Avatar for rajeesh_rsn

Hi friends, I need a simple help or query for my search option in my website. I had a table which storing movie information. The rough form of table structure as follows. Movie name | Director | Genre | Producer | Story line | Cast ------------------------------------------------------------------- | | | | …

Web Development mysql php
Member Avatar for jkon
0
107
Member Avatar for mith_cool

I got a jsp page which forwards request of two textfields txtname and txtpass to a servlet and the servlet then inserts the data into sql db and the name of the db is online_store. The db has two columns. When i checked the values are passing to the servlet …

Web Development java-jsp
Member Avatar for mith_cool
0
196
Member Avatar for erioch

Hi all, I have a three fields, Age, Adults, and Children, I have been able to calculate the age from the Date of Birth input, however, what I seem not to succeed on is to have the text value "[COLOR="Red"]Adult[/COLOR]" automatically entered in to the [Adults] field if the Age …

Web Development asp
Member Avatar for erioch
0
479
Member Avatar for kuink

Hi guys, I'm new in php and i'm having a problem. My problem is, how to print and save to database. here is the schema, [CODE] 1 / \ 2 3 /\ /\ 4 5 6 7[/CODE] what is php algorthym for that case?. 1 is sponsor for 2 and …

Web Development php
Member Avatar for manibcaa78
0
127
Member Avatar for JamesWoodward

Hey guys, I have been asked to write a program in php which is to play hangman but used in messenger chat. We are using imified to create our "bot". The game to me sounds backwards to normal but here is the deign brief. . In your game of hang-man, …

Web Development algorithm php
Member Avatar for Alan.Smith
0
170
Member Avatar for hj7

Hello, Does anyone know any code or control used to allow clients to manage their own articles/news (text + images) on their asp.net websites? I mean only text and images with exact structure, not modifying the whole layout. Thank you

Web Development asp asp.net
Member Avatar for hj7
0
163
Member Avatar for Arjun_Sarankulu

I have search on google about the polling application and i have not yet got the proper solution so that i can understand. Can anyone help me where can i find this which can help me to develop this web app for my company. Thanks

Web Development asp asp.net
Member Avatar for Ketsuekiame
0
64

The End.