17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ALFA-FOXTROT

My code doesn't really matter, it sends and retrieves the correct info, but the question persists... How can I verify if the action after my $.ajax call is done and if not perform until done? Sometimes it performs the action sometimes it doesn't, it loops the request in this case …

Web Development javascript
Member Avatar for Airshow
0
181
Member Avatar for nyler01

Hey there php masters, Please help me in creating a script that will be able for a user to upload his/her photo and display it on the left side of the page.. like the profile photo in facebook. i dont need a photo gallery. just ask to upload a photo …

Web Development php
Member Avatar for Sorcher
0
92
Member Avatar for stephen_UK

Hi there I would be grateful if you could point me in the right direction with this issue please: Only PAGE 1 loads regardless of content of $choice. [CODE]if ($choice='yes') { ?><script>location.replace("http://~PAGE 1");</script> <?php } else { ?><script>location.replace("http://~PAGE 2");</script> <?php }[/CODE] Thanks in advance Stephen

Web Development php
Member Avatar for stephen_UK
0
80
Member Avatar for croker10

Hi All, I am trying to output an excel workbook that I created else where in the program through a Response.Write() call. The issue I am having is that when I call the Response.Write(); it shows the download dialog for the excel file which it is supposed, but when opened, …

Web Development asp.net microsoft-office
Member Avatar for croker10
0
689
Member Avatar for himanshumishra

Please help me to write a PHP code for following . i have name , address , loanno (unique) , fup as fields in my database loandata. i want a screen in which i enter a loan number and it should search the loan no. in lonono and if data …

Web Development php
Member Avatar for himanshumishra
-1
323
Member Avatar for soft_coder

Hi! I am a developer. I am using jquery to create a modal dialog. I am using the following code snippets. Please tell what is going wrong: [CODE]<link rel="stylesheet" type="text/css" href="jquery-ui-1.8.7.custom.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.min.1.4.js"></script> <script type="text/javascript" src="jquery-ui.min.1.8.js"></script> <script type="text/javascript" src="jquery.min.1.3.2.js"></script> <script type="text/javascript" src="jquery-ui.min.1.7.2.js"></script> [/CODE] [CODE]$(document).ready(function () …

Member Avatar for soft_coder
0
152
Member Avatar for zlloyd1

I have been trying to get this directory to add data into an associative array for an assignment I am working on but I keep getting useless results no matter what i try and so I thought I would check here for advice. This is the HTML form that is …

Web Development php
Member Avatar for zlloyd1
0
138
Member Avatar for Saikumar Adep

how to connect to The sql server 2005 express edition give me webconfig file with connection string to connect send me the complete file so that i'll try to understand the whole connection to the database thanking u

Web Development asp asp.net
Member Avatar for Saikumar Adep
0
93
Member Avatar for jamesw

Hi, I'm fairly new to ASP.NET with C# and I have created a GridView with a Checkbox template field which displays files in a directory on the server. I am wanting to use DotNetZip to allow the user to download selected files as a single zip file. Below is the …

Web Development asp.net file-system
Member Avatar for kvprajapati
0
1K
Member Avatar for readbanana

I am filling a dataset from a database. When there are no rows to return it still tells me that the count is 1. I can't figure out what is going wrong. if I look at a visual of the dataset, the row is blank, but the count is 1. …

Web Development asp.net dataset
Member Avatar for kvprajapati
0
130
Member Avatar for MysticalNomad

[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". …

Web Development mysql php
Member Avatar for pritaeas
0
110
Member Avatar for public-image

Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above?

Web Development php
Member Avatar for public-image
0
76
Member Avatar for whiteyoh

Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set …

Web Development php
Member Avatar for vivekdizzal
0
219
Member Avatar for Sorcher

[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve …

Web Development mysql php
Member Avatar for Sorcher
0
154
Member Avatar for soft_coder

Hi! I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is: [CODE]$(document).ready(function () { $("#addaccount").dialog({ height: 'auto', width: 'auto', modal: true, autoOpen: false }); $("#addaccountlink").click(function (e) { $('#addaccount').dialog('open'); });[/CODE] Here …

Web Development javascript javascript-jquery
Member Avatar for soft_coder
0
7K
Member Avatar for TheIdiot

I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only …

Web Development mysql php
Member Avatar for TheIdiot
0
80
Member Avatar for Mars1936

Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give …

Web Development javascript mysql php
Member Avatar for Mars1936
0
150
Member Avatar for cavpollo

Hi there, I got this annoying problem... I have to create dynamically an image control that has got to be accesses later through javascript. In other words, I got an image that was created in the page code, and using javascript I got to be able to work with it …

Member Avatar for cavpollo
0
673
Member Avatar for sleign

I'm not really sure what's going on. I've looked all over the internet and have been stuck on this issue for days. It seems as though few have run into this problem and those that have - have no suggestions or even any replies. CKEditor's help forum has nothing on …

Web Development php
Member Avatar for sleign
0
335
Member Avatar for cossay

I started learning AJAX recently and I must say that it is very interesting. But I have a little problem understanding why [B]nodeValue[/B] is not returning any value. But when I change the [B]nodeValu[/B]e to [B]nodeName[/B] I get the right result. I am currently accessing the individual elements manually because …

Web Development javascript xml
Member Avatar for cossay
0
191
Member Avatar for danny5514

I have cretaed a login page in php got the database and connection how ever when i register i get an error Error: User not added to database. this code is in my register.php file can anyone help thanks [CODE] // Make sure query inserted user successfully if ( !mysql_insert_id() …

Web Development php
Member Avatar for danny5514
0
156
Member Avatar for Sorcher

Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas …

Web Development apache php storage
Member Avatar for Sorcher
0
89
Member Avatar for azegurb

hi All I hace created job site i writed to my own CSS. but it displays in IE fine like i want. but in Mozilla it displays all borders. how can i do that in displays table like in IE. Thank you very much. this is my site [URL="http://www.karyeram.com"]http://www.karyeram.com[/URL] my …

Web Development javascript
Member Avatar for azegurb
0
136
Member Avatar for fredrickme

Good day all please ADO, I need help.After developing my jsp,the code work fine except that it displays image link from the database instead of the image itself.I tried manipulating the blob datatype by setting (Blob bl=resultset.getBlob(n)) but it returns an error.Secondly,assuming i want the size of that image to …

Web Development image java-jsp
Member Avatar for Shanti C
0
6K
Member Avatar for soft_coder

Hi! I am a developer. I am using jquery to implement various functionalities. I am using jquery.js with jquery-1.2.6.min.js. It shows an error in the following code snippet: (!q&&!n&&c.data(this,k,new c[l][k](this,p))._init()) as object expected when I debug the web application. I am a novice in this field. Any kind of help …

Web Development javascript javascript-jquery
Member Avatar for soft_coder
0
285
Member Avatar for kkjay

Hi Guys, I really don't not know where I'm going wrong with this. I am learning PHP. I have been able to input a user birthday on registration on my website using a list menu such as is on facebook. I however just cant be able to extract the date, …

Web Development mysql php
Member Avatar for kkjay
0
114
Member Avatar for azegurb

I have taken little CMS script. but there some lines in script it confises me. who can help me to understand this lines this is [B]index.php[/B] [CODE]<? //É™ session_start(); $sid = md5('atlasmed.az'); define('_INCLUDED_', true); include_once('config.php'); include_once('class.php'); $class = new functions(); $id = $class->is_num($_GET['id']); $menu = $_GET['menu']; $menus = array ( …

Web Development cms html-css javascript-jquery php
Member Avatar for azegurb
0
382
Member Avatar for benjaminFowl87

Hi I have my initialise constructor, why won't my function to_hash work ? [CODE]def initialize(msg) @original_msg = msg.strip.delete(' ') s = ["|","^"] @chunked_msg = @original_msg.split(s[0]) @msg_hash.self.to_hash end def to_hash @chunked_msg.each do |x| s = x.split("=") @msg_hash[s[0]] = s[1] end return @msg_hash end[/CODE]

Web Development ruby
Member Avatar for benjaminFowl87
0
98
Member Avatar for kkjay

Hi everyone, I am new to PHP and need help in making my script be able upload multiple images simultaneously. I need a large image and a thumb for each. I got this script from the web and made a few changes. I would really appreciate any help. The forms …

Web Development image mysql php session
Member Avatar for kkjay
0
1K
Member Avatar for morteza_ipo

Hello. I want to create this address with php! [CODE] <?php $a = new dbclass(); $a->tablename->fieldname1('fieldvalue1')->fieldname2('fieldvalue2'); $a->delete(); //<<-- example! $a->insert(); //<<-- example! $a->update(); //<<-- example! ?>[/CODE] Please help me how to create class with this feature. thanks a lot.

Web Development php
Member Avatar for morteza_ipo
0
121
Member Avatar for Acute

Hi everyone, can anyone explain me why following code [U]alerts[/U] me nothing: [CODE=javascript] var text = $.ajax({ type: "POST", url: "registration.php", data: "email=" + elementValue }).responseText; alert(text); [/CODE] but when I add option "async: false": [CODE=javascript] var text = $.ajax({ type: "POST", async: false, url: "registration.php", data: "email=" + elementValue …

Web Development javascript javascript-jquery
Member Avatar for Acute
0
261
Member Avatar for daviddoria

I have a drop down box like this: [code] <select name="DateDropDown"> <option value="2010 selected">2010</option> <option value="2009">2009</option> <option value="2008">2008</option> </select> [/code] I use the value that the user selects to refresh the page and perform a query on a database. Is there a better way than the following to keep the …

Web Development php
Member Avatar for daviddoria
0
7K
Member Avatar for jingo1126

[I]Not sure if this is the right place to post this.[/I] I'm currently working on my personal site, and was wondering how would I connect a desktop application to my site without entering my site on a browser. I'm not here to get any codes worked by someone but I …

Web Development apache php
Member Avatar for bakir
0
146
Member Avatar for ivanwafoo

i used this code for email [CODE]$to = "somebody@example.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: webmaster@example.com" . "\r\n" . "CC: somebodyelse@example.com"; mail($to,$subject,$txt,$headers);[/CODE] however this error shows up Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or …

Web Development advertising email php
Member Avatar for bakir
0
2K
Member Avatar for ivanwafoo

Hi Guys, I am having trouble with my links, i am currently trying to use my $_SESSION['SESS_MEMBER_ID']; to automatically link it directly to the specific user page. However I always have this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\ThesisDB\DisplayThisUser.php on line 21 [CODE] …

Web Development mysql php session
Member Avatar for sudeepjd
0
318
Member Avatar for public-image

Hey Guys! :) Sorry to bother you all I can't seem to get my code to work and I would be much obliged if you could help me out. So what I was trying to do was get a column from a table of my database and show only the …

Web Development mysql php
Member Avatar for Shanti C
0
101
Member Avatar for bwallace

Trying to use [URL="http://mythreads.sourceforge.net/demo/"]MyThreads links manager[/URL] to update links on our front page without having to directly edit the code. Here is the page we're trying to include on the home page: [URL="http://www.ealantamagazine.com/links/index.php3?category=1"]http://www.ealantamagazine.com/links/index.php3?category=1[/URL] and here is the home page: [URL="http://www.ealantamagazine.com/"]http://www.ealantamagazine.com/[/URL]. Notice that the original page shows up but the area …

Web Development file-stream php
Member Avatar for bwallace
0
368
Member Avatar for jj.amonit

I have one table that I need to pull data from to display. there are two fields that a user's id can be attached to. Field1 and Field2, but they are always either or. In addition, I have a couple of extra where clauses in my query. My experience in …

Web Development mysql php
Member Avatar for jj.amonit
0
176
Member Avatar for iqra123

hiii ALL!! I have to match/compare fields of one table with the fields of another table. basically m i have to search a record from another tables using some fields of a different table. for exmple I have two tables. Table 1: newjobs table 2: employer form Table 1 newjobs …

Web Development php
Member Avatar for public-image
0
122
Member Avatar for kokfui

hi all, have some question on displaying a countdown system i have the following code <?php date_default_timezone_set('Singapore'); // Define your target date here $targetYear = 2011; $targetMonth = 9; $targetDay = 10; $targetHour = 12; $targetMinute = 00; $targetSecond = 00; // End target date definition $targetDate = mktime($targetHour,$targetMinute,$targetSecond,$targetMonth,$targetDay,$targetYear); $actualDate …

Web Development display php
Member Avatar for diafol
0
112
Member Avatar for bwallace

When we test our currency converter it shows a weird number before the numbers we enter. "25 pounds to U.S. dollars" returns "$1.5406, 25 British Pound = $38.52 U.S. Dollar". (For the record, Google says "25 British pounds sterling = 38.5375 US dollars".) What's wrong? [CODE=PHP] <?php /** * Jojo …

Member Avatar for bwallace
0
344
Member Avatar for kalleanka

Hi! I am looking for a function that will add spaces in a string in a certain manner: tmpStr: 123456789123 (always 12 digits) the desired outcome is: 123 456 78 91 23 Do anyone of you have a neat fuction for that? :) I found one question in this forum …

Web Development javascript
Member Avatar for kalleanka
0
100
Member Avatar for dalip_007

When we are on facebook page and someone sends us a message,(not chat message), or any notification does occurs, Then a red number is appeared at the top to notify us (user) about the message. even if we don't refresh the page. This happens without the page refresh, Same thing …

Web Development javascript
Member Avatar for Moderns
0
115
Member Avatar for soomro_moon

plz find the error it give this error Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\soomrof\a_task_2_1.php:3) in D:\xampp\htdocs\soomrof\a_task_2_1.php on line 24 [CODE]<? include("connection.php"); $check=false; $sql=mysql_query("select * from doctor_schedule_information where doctor_ID='".$_POST[doctor_id]."'") or die(mysql_error()); if(mysql_num_rows($sql)==1) { $row=mysql_fetch_array($sql); $check=true; } else { $check=false; } if($check==true) { header("location:a_task_2_3.php"); …

Web Development php
Member Avatar for kvprajapati
0
123
Member Avatar for soomro_moon

plz find the error it give this error Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\soomrof\a_task_2_1.php:3) in D:\xampp\htdocs\soomrof\a_task_2_1.php on line 24 [CODE]<? include("connection.php"); $check=false; $sql=mysql_query("select * from doctor_schedule_information where doctor_ID='".$_POST[doctor_id]."'") or die(mysql_error()); if(mysql_num_rows($sql)==1) { $row=mysql_fetch_array($sql); $check=true; } else { $check=false; } if($check==true) { header("location:a_task_2_3.php"); …

Web Development php
Member Avatar for kvprajapati
0
268
Member Avatar for Shanti C

Hello All, I am new to JSP. Currently i am working on jsp project with mysql. I got stucked with jsp date and time which supports mysql datetime format. [I need to do more time calculations in my project.] Please come up with your suggestions. Thanks in Advance. SHANTI.

Web Development java-jsp
Member Avatar for Shanti C
0
188
Member Avatar for xuexue

hi guys, just want to ask some question. i have two textboxes txt1 and txt2. these two possess jquery autocompletes within.. now, what i want to do is that this two are interconnected. Meaning, the values in autocomplete in txt2 will depend upon the values inputted in txt1. consider this …

Web Development javascript-jquery php
Member Avatar for xuexue
0
197
Member Avatar for epicrevolt

Hello, I am working on a website where the user can fill out a long form. For simplicity reasons, a part asks them to list features they would like to see. For that I plugged in some javascript to make a "[more]" link to add more form fields. Each form …

Web Development php
Member Avatar for epicrevolt
0
151
Member Avatar for mbarandao

Hello: I'm trying to insert my form two table in mysql. I have the following but only insert to one table (ajax table query) is successfull. Any ideas what I'm doing wrong. [CODE]<?php //error_reporting(0); //error_reporting(E_ERROR | E_WARNING | E_PARSE); error_reporting(E_ALL); $host = "localhost"; $login_name = "dsdsdt"; $password = "........."; $link=mysql_connect("$host","$login_name","$password"); …

Web Development php
Member Avatar for mbarandao
0
90
Member Avatar for bjeffries

I have about 230 photos in a database, all along I have been putting [url]http://domain.com/path/to/image.jpg[/url]. I am trying to enable a thumbnail script and it will not work with the [url]http://domain.com[/url] on the front of the url. Is there a way I can run a script to go through and …

Web Development php
Member Avatar for bjeffries
0
127

The End.