52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for el33t

Hi, Please consider the below code. [CODE=php]<html> <body> <?php $time1 = localtime(); echo $time1[0]; echo("<br /><br />"); /* HERE SOME CODES RELATED TO CERTAIN FUNCTIONS LIKE DISPLAYING OF SOME IMAGE ETC. IS EXECUTED. APPROXIMATELY IT TAKES 10 SECONDS FOR THE COMPLETE EXECUTION OF THESE FUNCTIONS. SINCE IT IS IRRELEVANT TO …

Web Development php
Member Avatar for el33t
0
121
Member Avatar for dfaulted

I know most undefined index notices are the result of not initializing variables. However, what causes them in arrays and such? I have a few that I cannot wrap my head around: [quote][E_NOTICE] Undefined offset: 1 On line 27[/quote] Line 27: [code]list($file,$extension) = explode('.', basename($path));[/code] [quote][E_NOTICE] Undefined offset: 1 On …

Web Development php
Member Avatar for mschroeder
0
281
Member Avatar for rohan_tahil

Can someone explain the difference between a web service and web app? and also if i am making a J2me app and want a user to get authenticated when he sends a login request to the server which 1 should i use? Do both perform all functions automatically without human …

Web Development web-server xml
Member Avatar for peter_budo
0
144
Member Avatar for davidhenry0001

I created this code in ASP.NET which asks no. of files to upload in a text box and then it dynamically createsthat no. of File upload controls. Till here its working fine. But i m unable to save files which should happen when i click on Button. Please help... Here …

Web Development asp.net
Member Avatar for davidhenry0001
0
107
Member Avatar for ruwanaru

[B]This is the code that not getting the result[/B] [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Nice select</title> <script Language="JavaScript"> function checkData() { var myTest = me.D1.value; //alert(myTest); var req = new Request.JSON({ url: 'dbselect.php', method: 'post', data: 'brand=' + encodeURIComponent(myTest) }); req.addEvent('success', function(response) { var …

Web Development javascript json
Member Avatar for hielo
0
155
Member Avatar for rajeesh_rsn

Hi I am doing a simple php file upload script. Works fine but I cant upload more than 3MB files using this script... Please help me. This is my code [CODE]$target_path = "../items/"; $target_path = $target_path . basename( $_FILES['file1']['name']); $name=$_FILES['file1']['name']; $ext=end(explode('.',$name)); if ($ext=="flv"){ move_uploaded_file($_FILES['file1']['tmp_name'], $target_path); $new_name=$itemId.".".$ext; rename ("../items/".$name, "../items/".$new_name); mysql_query("UPDATE …

Web Development php
Member Avatar for lordspace
0
227
Member Avatar for znz

Hi, could some help me . as i want to know how to delete last record. currenlty the code im using its based on two different pages, one for update/display record and second for deleting record. but sum reason this code not working for me . add.php <?php include("connect2.php"); $authorname …

Web Development php sql
Member Avatar for hielo
0
186
Member Avatar for GrahamN

Hi Everyone, Could someone please help? I'm rewriting our website at present, and am quite ok with HTML and CSS, but am not particularly au fait with Javascript. Here's the page I'm having a bit of trouble with: [URL="http://www.ambersupplies.co.uk/thomas/miscellaneous.htm"]http://www.ambersupplies.co.uk/thomas/miscellaneous.htm[/URL] If you look at the long button marked 'Diagnostics', you'll see …

Web Development html-css javascript
Member Avatar for fobos
0
137
Member Avatar for ahmedeqbal

Hello Friends, I need your help...! i want to create one function...! if string has total Character's [B]'160'[/B] or 'Less' then 160 ? I'll get just '[B]1[/B]' in result...! if string Character limit [B]'double'[/B] (160+160) = [B]320[/B]? But not [B]Less[/B] then 160? I'll get [B]'2'[/B] in result...! same triple limit …

Web Development php
Member Avatar for ahmedeqbal
0
163
Member Avatar for ahmedeqbal

Hello Friends, i want to allow '<br>' tags in my string not '<br />'...! i want to also disallow '<br />'. when i use strip_tags($string, '<br>'). in this case strip_tags also allow '<br />' tags. Please, help me...!

Web Development php
Member Avatar for ahmedeqbal
0
121
Member Avatar for Smudly

How can I call a PHP Function inside a Javascript Function? This is what I have so far, but I don't think I'm doing it the right way. Any suggestions? [code=php]<?php function phpQuery(){ $query = mysql_query("INSERT INTO mytable VALUES('','name','email')"); } ?> <script type="text/javascript"> function delayQueries() { timeoutID = window.setTimeout(doQueries, 2000); …

Web Development javascript php
Member Avatar for Smudly
0
4K
Member Avatar for ceeandcee

I would like to query a set of values from a db....say GP1011_wk1 and this would yield 11 results. I then sum them together and get a value that i can echo. No problem so far. My question is, can i now take this calculated value from the query and …

Web Development php
Member Avatar for chrishea
0
81
Member Avatar for rayda

i m doing a project using asp.net vb.. i wanna make 1 pc as the server to keep all my database and codes, another pc use to access the web page that i hv created in the server pc.. but i do not know how to or what to write …

Web Development asp asp.net web-server
Member Avatar for guru_sarkar
0
161
Member Avatar for jecris
Member Avatar for jecris
0
384
Member Avatar for prem2

Hi, I am going to implement the Oops conecpt in php .So i written the below program it did not printing the values.Can any one say why this value is not printing . [code] class simpleclass{ echo "Hai how are you i am fine"; } [/code] Thank you, With Regards, …

Web Development php
Member Avatar for diafol
0
275
Member Avatar for erum

her is the file [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Windows.Navigation; using VotingPanel2.ServiceReference3; namespace VotingPanel2 { public partial class CreateSurveyForm : Page { public CreateSurveyForm() { InitializeComponent(); VotingPanel2.ServiceReference3.Service3Client client = new VotingPanel2.ServiceReference3.Service3Client(); //VotingPanel2.ServiceReference1.Service3Client …

Web Development asp.net assembly visual-studio
Member Avatar for erum
0
143
Member Avatar for asimzeeshan

I am running CPanel and recently discovered that I can install RubyonRails there too ([url]http://docs.cpanel.net/twiki/bin/view/AllDocumentation/RubyonRails/WebHome[/url]) I have the new icon RUBY ON RAILS in my CPanel (after installation following the instruction from the link above). Now when I create a test application, it runs OK but when I click on …

Web Development cpanel ruby
Member Avatar for gacela
0
289
Member Avatar for george61

This is some PHP search code with some mistake. $run gives nothing where $run = mysql_query($construct); It gives: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\xampp\search\search2.php on line 39 No results found. [CODE]<?php //get data $button = $_GET['submit']; $search = $_GET['search']; if(!$button) echo "You didn't submit …

Web Development php seo
Member Avatar for george61
0
186
Member Avatar for atikah8890

I am working on a login page and its process and started having problem where the browser cannot detect the new changes I made to my PHP file. Here's the HTML code for the login page (ptLogin.php): [CODE] <form name="ptlogin" method="post" action="ptLogin0.php"> <div align="center" class="style2"><br> <table width="330" border="0"> <tr> <td …

Web Development php
Member Avatar for atikah8890
0
117
Member Avatar for AboJaD

Hello, i have eleven drop down lists, one of them is main, and from the ten other lists only one should be visible. What i am doing is when i choose one option from the main select box, one of the ten other boxes becomes visible depending on which i …

Member Avatar for Airshow
0
171
Member Avatar for alaa_steel

[CODE=php] if(mysql_query("update book set hometel='".$edit_hometel.",worktel='".$edit_worktel."', fax1='".$edit_fax1."',fax2='".$edit_fax2."',pobox='".$edit_pobox."',email='".$edit_email."' where name=".$row['name']." and hometel=".$row['hometel'])){ echo "<font face='arial narrow' size='3' color='#ffffff'>The Record has updated succesfully.</font><br>"; echo "<a href='index.php'><img src='images/buttons/continue_butt.gif' border='0'></a>"; }else{ echo "<font face='arial narrow' size='3' color='#ffffff'>An error has occured. Updating record failed.</font>"; } [/CODE] All Variables' names are right but it dosn't update the …

Web Development email php
Member Avatar for zimah
0
199
Member Avatar for mramkumar

hi, im doing it in jsp and my backend is my sql ... im inserting the checkbox values and some details in table but for checkbox values i have given the executequery statement(where we write query) as integer so all other string details are not inserted in table it show …

Web Development java-jsp
Member Avatar for mramkumar
0
193
Member Avatar for sallecpt

HI there Could someone PLEASE help me; I have a drop-down menu on my site and when I hover, the drop-down goes behind the content. This is the address : [url]www.beds24.co.za[/url] I dont know how to fix this, I've tried so many different settings. This is my CSS file. The …

Web Development php
Member Avatar for P0lT10n
0
152
Member Avatar for idskot

Hey, guys. I'm building a really simple member register / login, based off some other code. I added it to the server and set up the DB properly, and now I'm having an issue. Whenever I go to register a new user, it says the user field is not filled …

Web Development php
Member Avatar for theonly
0
117
Member Avatar for azegurb

hi there i have a problem with scrolling swf banner. for ex: i have 3 banners (banner1.swf, banner2.swf, banner3.swf) and i would like after one finishes let it swicthes to another one sourse. Thanks in advance for attention

Web Development flash javascript
Member Avatar for dennishall
0
69
Member Avatar for sameeya007

for($y=1;$y<=$x;$y++){ $query="insert into attendance values('$admission_no[$y]','$date','$state_id')"; $result=mysql_query($query); }

Web Development php
Member Avatar for paulrajj
0
104
Member Avatar for bowhunter-mo

I need to write code to have a search box that will search a mssql database.

Web Development mssql php
Member Avatar for Stefano Mtangoo
0
164
Member Avatar for Ghost

Hi, I'm trying to fully automate my website, and I'm trying to delete a line from a file that matches the line in a given String. For example, I have a txt file named toApprove.txt containing a list of names such as: [CODE] John Joe George Jake [/CODE] The file …

Web Development file-system php
Member Avatar for mschroeder
0
5K
Member Avatar for tiny7415

<cfoutput> #DateFormat(Now(), "mmm-dd-yyyy")#<br> </cfoutput> the result is: Jul-09-2009 What i wanted to do is....to add 1 year from todays date or I want to show a date that is a year after. Is thare a cf tag that will help me do that? is that possible? Do i need to …

Web Development coldfusion
Member Avatar for arrgh
0
1K
Member Avatar for muneer_alam

Hello all of you,,,,,,,, Currently i am facing a problem.....problem is that.i am using two table admin or customer.I have one form.....i want when i select admin button then it will insert the values into admin table and when i will select customer button then it will insert into the …

Web Development php
Member Avatar for mahmoud_wow
0
154
Member Avatar for nonshatter

Hi all, I have a fairly simple problem. I have an array which prints out the following text: [CODE]1 Full, Gen. 3 TMSWK2D 9 Poor write quality 2 Full, Gen. 1 TMSWK2C Read Only, Clean Tape[/CODE] The problem is after some of the lines of text, there are empty values, …

Web Development php
Member Avatar for mschroeder
0
138
Member Avatar for niths

hi all, i am having problem with javascript validation..My problem is i am having two radio buttons 1.Single 2.Married By default single is checked.Now when we select married i will get displayed spouse name below.Now if the person check married and didnt enter spouse name then i should get an …

Web Development javascript
Member Avatar for paulrajj
0
160
Member Avatar for nsam

Please help out as i am a beginner in PHP I have a table with the name doinfo with the fields doctor,hospital, and city. What I want is that when I select city from the dropdownlist, it should give me its details i.e the doctor and hospital. I am able …

Web Development display php
Member Avatar for nsam
0
1K
Member Avatar for trilithon

Hi All, I am having trouble in updating a table. The form consists of check boxes that are populated from the first query. I need the form to submit in itself and set the checked fields to 1 and the unchecked to 0. Any and all help will be appreciated. …

Web Development php session
Member Avatar for trilithon
0
104
Member Avatar for ladeana1

I have a Model popup form with a button which is coded to send an email. When I click on the button, it first opens another Model Form and fires off the same code on this new form. Not sure why it's opening a new form, there is no code …

Web Development asp
Member Avatar for Michel88
0
145
Member Avatar for ahmedeqbal

Hello dear friends, I’ve one problem. I hope you guys help in this…! Actually, I have two array. One array carry ‘title’ of my sms text messages. Second array carry ‘description of sms messages. Problem is that…! i want to got these two array result in my foreach loop. As …

Web Development php
Member Avatar for ahmedeqbal
0
105
Member Avatar for terrymold

Hi everyone I have a PHP Class file (salat.times.php) that accepts a few User Inputs, one of which is a Date in the format dd-mm-yyyy. The date is used for a part of the class and is fine. In another part of the class, there are a number of Time …

Web Development php
Member Avatar for terrymold
0
115
Member Avatar for arunpatyal1987

php code for uploading & storing a pdf file on server side

Web Development pdf php
Member Avatar for peter_budo
0
113
Member Avatar for dschuett

I have a mysql table full of pictures(their path) that are owned by many different users. I need to run the following query and return the results into a 5 column table. The number of rows will be however many it takes to display all the pictures. My query is …

Web Development mysql php
Member Avatar for vibhaJ
0
177
Member Avatar for aizel

hello sir..i am wondering how to calculate between two dates..here is my code: [CODE] <input type="text" name"date1" value="mm/dd/yyyy"> <input type="text" name"date2" value="mm/dd/yyyy"> <input type="submit" name"calculate" value="calculate"> <?php echo $answer;?> [/CODE] example value of date1 is 09/26/2010 example value of date2 is 09/27/2010 so the answer should be 1 by subtracting …

Web Development php
Member Avatar for fredrickprem
0
180
Member Avatar for mpc123

Im trying to get the queries and results to load quicker. I have 10 of these after each other with slightly different queries, how can i optimize this please, i have tried removing select * and entering the field names require (which is about 9 rather than the 40 with …

Web Development php
Member Avatar for pritaeas
0
140
Member Avatar for Puster

Hei! I am worcking at the moment my website for my gaming clan [url]http://www.physicgaming.com[/url]. I'm working now on making a script that display results from the database ([url]http://www.physicgaming.com/site/results.php[/url]) if you visit the site you see a big gray table, but this should be only 3 tables and not one big, …

Web Development gaming php
Member Avatar for pritaeas
0
1K
Member Avatar for luckybutlost

Hi, I am trying to get some xml data using a jquery .post request, but it's not outputting anything. The client-side code looks like this [CODE] <html> <head> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript"> function cstarter() { window.einterval = setInterval("cst()", 5000); window.big = "hi"; } </script> <script type="text/javascript"> function cst() { …

Member Avatar for Taywin
0
110
Member Avatar for taimeyj

How do i accept picture uploads unto a php webpage from a user?

Web Development php web-design
Member Avatar for P0lT10n
0
158
Member Avatar for Aamit

Hi, I want to create simple file management program. Suppose i have 10 users. and file xyz.txt When 1st user access file he has authority to read and write. but if at the same time 2nd user try to access this file. i have to give only read access or …

Web Development file-system php
Member Avatar for chrishea
0
82
Member Avatar for timpogue

Hi again, Ok heres my problem: Lets say I have a string which contains: "Hi my name is Tim"; And i have another string containing a pattern: "HI MY NAME IS *"; I wanna match the pattern to the input and replace the star with what they put. How can …

Web Development php
Member Avatar for edwinhermann
0
142
Member Avatar for new SE

Hi all, i havw make a page for user entry..now i'm uisng [CODE] <asp:RequiredFieldValidator ID="CmpCode" ErrorMessage="*" runat="server" ControlToValidate="txtCmpCode"></asp:RequiredFieldValidator> [/CODE] to make a validation but not enough space.. anybody have any suggestion to make a validation rather than diaplay the error message? i'm thinking about just red bold the textbox but …

Web Development asp.net
Member Avatar for guru_sarkar
0
96
Member Avatar for bufospro

Hi all, I use glossy.js and I am trying to apply it in an image with the path like [CODE]<img src="../Users/admin/header1.gif" class="glossy"/>[/CODE] the effect is ok. But when I am trying this in a php code like [CODE] echo '<img src="../Users/$user[username]/$photo[filename]" class="glossy"/>'; [/CODE] then it does not work. I have …

Web Development php
Member Avatar for bufospro
0
74
Member Avatar for valonesal

We would like to serve javascript from our database. We assumed it would be like serving html but its not working. What we have is a small news ticker and we would like to use a call to our database via php to serve this ticker, so we put the …

Web Development javascript php
Member Avatar for diafol
0
132
Member Avatar for marione

"Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in X on line 146" problem.. Need expert help plss... here is the code.. [CODE] <?php require_once('Connections/reservations.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue …

Web Development html-css php
Member Avatar for marione
0
179

The End.