52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Stefano Mtangoo

Can someone clarify me the difference between CHAR and VCHAR and which one is best to be default type in my all SQL queries? Is it VCHAR or CHAR? :D

Web Development php
Member Avatar for nav33n
0
99
Member Avatar for bhavna_816
Member Avatar for bhavna_816
0
80
Member Avatar for shadiadiph

can you include arrays[] in header urls? I have the following but it doesn't work so I am thinking it might not be possible. [code] $name = strtolower($_POST["name"]); $name = stripslashes(ucwords($name)); $email = strtolower($_POST["email"]); $emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/"; $alphaspace ="/^[a-zA-Z]+((['\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/"; if ($name=="") { $error[] ="Name is a required field please …

Web Development php
Member Avatar for shadiadiph
0
131
Member Avatar for bvaz

I have downloaded CF successfully and have been successful in connecting to my own database. However, I am following the Developer Center Tutorial for creating a record set and table to display the query in DreamWeaver. It all works as advertised however I am only getting the first entry in …

Web Development coldfusion
Member Avatar for bvaz
0
133
Member Avatar for julseypart

hi, i have set a condition on the upload function [code]if (FileUploadControl1.PostedFile == null) { lblResult.Text = "Please select a file first"; } else { //upload a file }[/code] but if i press upload button when no file is selected it still uploads a blank file regardless of the "if' …

Web Development asp.net file-system
Member Avatar for julseypart
0
132
Member Avatar for serkan sendur

hi guys, today i found out that there is a free javascript multithreading library at : [url]http://www.infoq.com/articles/js_multithread[/url] it is under GNU license and free to use. It is a great and very easy to use tool.

Web Development javascript multithreading
0
67
Member Avatar for men

hi how to solve this eroor ____________________________________________ Class.forName("com.mysql.jdbc.Driver").newInstance(); ___________________________________________________ this is my code ------------------------------------------------------------------------------------ [code=jsp]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > <HTML> <HEAD> </HEAD> <BODY bgcolor="#ffffcc"> <FORM action="p.jsp" method="get" name="f1"> <TABLE style="background-color: #ECE5B6;" WIDTH="30%" > <TR> <TH width="50%">Name</TH> <TD width="50%"><INPUT …

Web Development java-jsp mysql
Member Avatar for peter_budo
0
1K
Member Avatar for shadiadiph

does anyone know of any good resources for php regex for form validation. I am looking for good regex for name: (including -.' and no spaces in the first space no doubles of ..''-- phone: again no spaces at the start allowing + and - alpha: only lowercase letters no …

Web Development php regex
Member Avatar for shadiadiph
0
112
Member Avatar for TheNational22

Hello all, first time working with PHP, had a question. Working on a friend's website, we thought we'd be wicked cool and add a dynamic photo gallery. I stunbles across this neat pile of code: [code=php] <?php $columns = 2; $thmb_width = 120; $thmb_height = 80; function resizeImage($originalImage,$toWidth,$toHeight){ // Get …

Web Development php
Member Avatar for TheNational22
0
190
Member Avatar for Stefano Mtangoo

I'm beginner in PHP, and for long have been doing my site in XHTML. Now I want to make a News box and have made PHP code for that function as shown below: [CODE=php] <?php function pop_boxes($words, $class) { $string = "<div $class> $words </div>"; print($string); } ?> [/CODE] And …

Web Development php
Member Avatar for Stefano Mtangoo
0
82
Member Avatar for changeco

I have a small elearning app and I want to check against the DB for the start and end dates (from mysql) and if they meet the criteria, good, else location.redirect to expired.php?? It doesn't redirect, any suggestions? Here's an example below... [code] function Timebomb() { var StartDate = <?php …

Web Development javascript
Member Avatar for nav33n
0
102
Member Avatar for ryy705

Hello, I call the imagettfbbox function like so `imagettfbbox($font_size, 0, 'monofont.ttf', $code)` but its generating the following error: 'imagettfbbox() [function.imagettfbbox]: Could not find/open font' monofont.ttf is in the same folder. And the code executes fine on the server. It just won't work on my computer. This leads me to believe …

Member Avatar for mcscreech
0
1K
Member Avatar for marjan_m

Hi, I need to discuss some problems regarding handling of text boxes using php which are as follows: [LIST=1] [*]Can we set focus of a text box when an if condition is true in php? [*]Can we disable a text box when an if condition is true in php? I …

Web Development php
Member Avatar for marjan_m
0
98
Member Avatar for anusumesh

Hi, I have created two web pages say [B]first.asp[/B] and [B]second.asp[/B]. first.asp has a link of second.asp and [B]username is embedded in url [/B]of second.asp.([B]second.asp?username=dvhsdghsdg[/B]) [B]Second.asp [/B]has a link for some [B]https site say securelogin.asp [/B]and i want to access the [B]server variable "referer Url"[/B] to retrieve username in https …

Web Development asp web-server
Member Avatar for anusumesh
0
344
Member Avatar for lonestar23

I am trying to parse the the following xml code below, I need to retrieve only totalhits="376719" in the "resultset_web" child. I also need to use code similar to the following: [CODE]<?php $doc = DOMDocument::loadXML($information); $result_node = $doc->getElementsByTagName('resultset_web'); $tHits = $result_node->item(0)->getAttribute('totalhits); ?>[/CODE] /* XML TO BE PARSED */ [CODE]$information = …

Web Development php xml
Member Avatar for lonestar23
0
203
Member Avatar for Stefano Mtangoo

Hi All, Here is my Index code. How can I make footer be at the bottom of other div. In css I floated to left the leftbar and to right the main contents. The header is fine but footer comes just below main content instead of being at bottom of …

Web Development html-css php
Member Avatar for Stefano Mtangoo
0
120
Member Avatar for brightline

I want to check if the user had selected a node from a treeview or not using javascript. I'm using VS.NET 2.0. Thanks In Advance.

Web Development asp.net javascript
Member Avatar for jaiswarvipin
0
1K
Member Avatar for anusumesh

Hi I am using <asp:Gridview> to display my data. I am adding columns and rows dynamically. I am facing following issues: 1. I want [B]scrollbars around the gridview [/B]and for this purpose i used [B]<div style="overflow:auto">[/B] and its working fine. But issue is that the header row also scroll down …

Web Development asp asp.net client-server
Member Avatar for jaiswarvipin
0
196
Member Avatar for ranjinibiliya

Let me explain the u in detail. First , In sql server i created a New database and then i created a new table. as UserId, User Name, and Passward. Secondly, i created a new Text document with .udl extension , and Got even the message Test Connection Succeeded. Created …

Member Avatar for jaiswarvipin
0
93
Member Avatar for ahmksssv

Hi frnds.... I have a page with different topics and explanations.... the total description in a single page..and all headlines at one place... now iam clicking on nth headline, than the page shows that nth topic description location... plz tell me how can i do that?

Web Development php
Member Avatar for nav33n
0
84
Member Avatar for theighost

hi, I am trying to complete a script that sends an email along with html, the html changes the colors and the font, positions ...etc. I am in need of help. thnx in advance

Web Development email html-css php
Member Avatar for theighost
0
108
Member Avatar for nzaman
Member Avatar for cwarn23
0
93
Member Avatar for millsy007

Hi I have a form on which I run some validation, if any of the conditions fail I show an alert. For example for the name field [CODE]<input type="text" name="name" id="name">[/CODE] [CODE] if(trim(cname.value) == '') { alert('Enter a Name'); cname.focus(); return false; }[/CODE] This is called when a user clicks …

Web Development javascript
Member Avatar for millsy007
0
89
Member Avatar for queenc

hi If the user changes his photo i want the [B]else[/B] to work.if u the does not change his old photo i want the [B]if[/B] to work.but my below code is not working like that....only the if part is working[CODE] if(isset($_REQUEST["update"])) { $uploadedfile=$_REQUEST['uploadingfile']; $upload="comphoto"."/". $_FILES['uploadingfile']['name']; $filename=$_FILES['uploadingfile']['name']; echo $filename; move_uploaded_file($_FILES['uploadingfile']['tmp_name'],$upload); if($filename!="NULL" …

Web Development php
Member Avatar for nav33n
0
127
Member Avatar for Trogan

I will be needing to use PHP and MySQL to create a small application. But I need some help setting this up. I need to create a database for my application. I went to mysql.com, but couldn't determine what application I needed for creating my database. What do I need …

Web Development mysql php
Member Avatar for FlashCreations
0
225
Member Avatar for chicago1985

I have a PHP (version 5) site on a Windows server that allows uploading of files into our Windows server. I currently allow the user to upload up to 10 files at once. If users upload files as big as 20 mb or more slows the upload process down. Should …

Web Development php windows-server
Member Avatar for shadiadiph
0
116
Member Avatar for comanighttrain

Problem: I have an enumerated type which has description tags in the following style: [URL="http://xml.indelv.com/data-binding-enum.html"]description tag tutorial[/URL] . I have a Windows SQL Server Database from which I am pulling the data (as integers then castine to Enums) which is then being bound to a datagrid. Instead of pulling and …

Web Development apple asp.net windows-server xml
Member Avatar for sknake
0
596
Member Avatar for danovics

Hi, i'm totally newby here and with php/mysql too. I have a form with some textboxes and checkboxes. The form action is: $_SERVER['PHP_SELF'] . '?changes=1' I want to give a possibility for the user, to change the values in them. So submit button when the submit button is clicked the …

Web Development php
Member Avatar for danovics
0
72
Member Avatar for theimben

Im using vBulletin and Im making a little script which needs to integrate with it. But due to vBulletins lack of PHP plugin support I have to use a client side language to make it work. So I have this script, its queries a database and has pagination. I want …

Web Development javascript vbulletin
Member Avatar for theimben
0
66
Member Avatar for logarcia

Hi everyone, im new to this site and also abit new to programming with asp. I have this form which is working fine, except for this little thing that I want and is not doing it. I want that when the user hit the Enviar btn (Submit) the info gets …

Web Development asp html-css vbscript
Member Avatar for Baradaran
0
125
Member Avatar for arvindikchari

Hello, I have a script which uses a colorpicker in which the user can select a color, and in the preview section the color of one div is changed to this color value. This is done by a javascript function of the color picker. called setcolor. The code for this …

Web Development javascript php
Member Avatar for essential
0
248
Member Avatar for steve345

hello! i recently downloaded [U]dirLIST[/U] php script and uploaded it to my webserver.. script works well, but there is one problem - script doesn't count the folder size.. Please help me to solve this problem script is located here: [URL="http://dir-list.sourceforge.net/"]http://dir-list.sourceforge.net/[/URL]

Web Development php
Member Avatar for steve345
0
91
Member Avatar for mem81

Hello, I am trying to get the currently selected values from dropdown lists and textboxes from a web page and write them to an access database. I am using MS Web Developer 2005 Express. To do that I have created data Source , for the InsertQuery Property of the DataSource …

Web Development asp.net
Member Avatar for mem81
0
140
Member Avatar for emiola

I keep on getting this message: Parse error: syntax error, unexpected T_ECHO in /home/lsschnln/public_html/Registration Form/quiz_regedit_2.php on line 32 after running the script [code=php]<html> <body><?php if (isset($_POST['submit'])) { $to = "quizentry@lagosschoolsonline.net" ; $subject = "Quiz Entry" ; $SchoolName = $_POST['SchoolName'] ; $SchoolAddress = $_POST['SchoolAddress'] ; $Locality = $_POST['Locality'] ; $MobileNumber = …

Web Development php
Member Avatar for nav33n
0
143
Member Avatar for eawade

I allow a member to create new styles for a program. They can save each style to a table called style_custom. A person can have more than one style in that table and the name of each can be found in the column called name. All I want to do …

Web Development mysql php
Member Avatar for nav33n
0
106
Member Avatar for luckyads

Hi! Error - Conversion from string "DataItem.partOne" to type 'Double' is not valid. I have written the following databinding code in the datagrid and the am getting the above error - [Code=asp.net] <Columns> <asp:TemplateColumn HeaderText="Part B" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:checkbox runat="server" ID="partTwo_Edit" checked= '<%# DataBinder.Eval(Container, "DataItem.partTwo") %>' Enabled = '<%# IIf(DataBinder.Eval(Container, …

Web Development asp.net
Member Avatar for luckyads
0
102
Member Avatar for arshadalishaikh

I am using php 5.1 version and in dom module domxml is enabled. I am generating xml with php and i checked it generates correct xml. But when I use if( !$dom = domxml_open_mem() ) { // } then i got the following error: Fatal error Call to undefined function …

Web Development php xml
Member Avatar for pritaeas
0
177
Member Avatar for ahmksssv

Hi frnds.... i have a colmn in database like [B]CONTENT[/B] ..it contains 20 lines of of data....but i need to select only 5 lines of data to a single variable...... plz tell me how can i do?

Web Development php
Member Avatar for nav33n
0
119
Member Avatar for pancgom29p

Hi, I rather my dev team has a PDF file that needs to be compressed before it goes to download by users. Is there a way the compression can happen programatically without human intervention. step a) PDF file upload b) A script compress the file to a preset or acceptable …

Web Development asp.net file-system pdf
Member Avatar for peter_budo
0
109
Member Avatar for sacarias40

i am new to RSS and for that i have no idea where to start to get it on my webpages. i know i need a reader? and i need a feed, how can i get these? regards.

Web Development xml
Member Avatar for bryansmith123
0
122
Member Avatar for Seedy

Hi folks I'm looking for a way to take an RSS feed, filter it according to some predefined rules and then email the results. Ideally this would work on a linux based webserver. I'm not a developer - so it would be great if there were some tools out there …

Web Development developer-tools email xml
Member Avatar for bryansmith123
0
108
Member Avatar for hinasaeedali

Respected, There is problem in making the shopping cart.But only by using the jsp not other languages. And database is designed by using M.S.Access

Web Development java-jsp
Member Avatar for nishantdaniweb
0
118
Member Avatar for ranjinibiliya

I have developed a login window using asp, in .aspx format. This i need to link to an another program where it is windows application in the sense, homepage.vb form. I need a code to link login.aspx with the home page.vb form please help me as early as possible. Thanks …

Web Development asp.net
Member Avatar for ranjinibiliya
0
107
Member Avatar for netviper

Guys, I need some help. I installed a mod on oscmax for updated product attributes. It works fine, BUT now the products in my site won't pull up. Everything looks fine on the site until you actually click on a product, then you get. Warning:mysql_fetch_array(): supplied argument is not a …

Web Development php
Member Avatar for cwarn23
0
167
Member Avatar for ahmksssv

Hi frnds.... i am inserting bulk data into database...here i phase small problem...when the data having (') single quotes it shows error...because php takes ' as many ways..... i think htmlentites() tag is there in php...i dont know how it uses perfectlyy... plz resolve this problem asap..

Web Development php
Member Avatar for ahmksssv
0
82
Member Avatar for HB25

Hi Could anyone help me with this problem, I am trying to use php to insert user record into table (tblusers) using mysql command but I do get this error (Parse error: parse error, unexpected ';' in register.php on line 30 ) I don’t know what is wrong with it …

Web Development php
Member Avatar for Lizapotter
0
75
Member Avatar for laxminarayanaou

There is a text box in html page in that we type any id (i.e string) then automatically it show a drop down list bellow the text box. And that list having ids those r retrieving from Mysql database table. (Totally it is like igoogle search box and button) please …

Web Development html-css javascript
Member Avatar for laxminarayanaou
0
86
Member Avatar for changeco

OK, basically I want to check the DB against the elearningid... if the elearningid startdate and enddate are valid, continue, else redirect to expired.php... EXAMPLE: [code] <?php function TimeBomb() { rs = sql.Execute(" SELECT * FROM elearning WHERE elearningid=@elearningid AND GetDate() BETWEEN startdate AND enddate "); if (rs.RowCount > 0) …

Web Development php
Member Avatar for mschroeder
0
95
Member Avatar for chriscross86

hi, there... im doing a page that shows report of a delivery boy in a courier company. But, I can't get any results and i don't know where i've gone wrong...please help [code=asp.net]<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 …

Web Development asp.net
Member Avatar for chriscross86
0
218
Member Avatar for gangsta gama

Hello again I have a problem. I was following tutorials and I came up with some code to register for the game witch I have no problem doing, but it is sending email conformation. Here is my code. The problem is I dont get the email and when I submit …

Web Development email php
Member Avatar for FlashCreations
0
251

The End.