SQL Stmt fine tune

533 byte By newvisva at 2007-11-20 9:19:22
I have a SQL stmt that someone wrote... I'm trying to make it faster... anybody can share the idea?SELECT *FROM (SELECT ROW_NUMBER() OVER (ORDER BY DateModified DESC)AS Row, * FROM activities where Location LIKE '%abcd%' or Subject LIKE '%abcd%' or Location LIKE ...

PHP version

84 byte By suganyahiox at 2007-11-20 9:19:47
Hi,<br/>How to check the PHP version on my system? <br/>Regards,<br/>Sugan

changing contents of an element

1344 byte By Donotalo at 2007-11-20 9:19:52
I've a table defined like this:<table width="100%" border="4" rules="none" bordercolor="darkblue"> <tr> <td><input type="button" name="rolldicebutton" width="25%" value="Roll dice (3)" onclick="roll_dice_clicked()" /></td> <?php for ($i = 0; $i < 5; $i+...

How to make a blank text field grey out

286 byte By dummyagain at 2007-11-20 9:20:55
I would like to know how to make a blank text field grey out? I know that when there is content, i can grey out the text field using <br/>document.mainForm.data.disabled = true;<br/>but how do make the whole text field grey out when there is no data in it?<br/>Thank you.

DOM: get <td> element

278 byte By dummyagain at 2007-11-20 9:21:02
i get something like this<br/><td class=abc>test</td><br/><td><input class=cde name=box></td><br/>i would like to know how to use dom to change the class name "abc" or any other way to do it? (except assign an id to it)<br/>Thank you

C++ Class generation based on XML

586 byte By mcmancsu at 2007-11-20 9:22:12
I want to see what you guys knew about this. I have come across such programs like xmlbeansxx, which will parse out the XML and create C++ classes for a user to implement, but getting it to work is proving troublesome. I have a concern with this method which has to deal with a dynamic XML document...

TreeView IN HTML/CGI-PERL

168 byte By Raghavendra Prabhu at 2007-11-20 9:22:39
Hi,<br/>OS : W2000<br/> <br/>Anybody please tell me how to display tree view in web using HTML/CGI-Perl.<br/>Plz give me sample program if any.<br/>Thank you very much.

Fatal error: Call to a member function on a non-object

902 byte By Stingray at 2007-11-20 9:22:45
Hi, i am trying to convert a ocscommerce module to zen cart with a glitch in my processI am at a loss to see why the lines below gives me the error"Fatal error: Call to a member function on a non-object in /home/indigo/public_html/store/includes/modules/shipping/fastway.php on line 87"...86 $sql = "...

Clearscreen?

55 byte By lairusi at 2007-11-20 9:23:04
Does anyone know how to clearscreen in Assembly? (NASM)

debugging javascript code

210 byte By ahmad_n80 at 2007-11-20 9:23:23
how can i debugging java script code in visual studio.<br/>and is there any way to send parametr from asp.net to javascript function.<br/>example: i want to send parametr (i) from c# code to javascript function

JavaScript doesnt capture OCX events - problem

1209 byte By yaniv_av at 2007-11-20 9:23:44
Hi, I developed some simple OCX with one function (Func1) that fire an event (OnFunc1) through the standart ConnecionPoints.When I tested it eith VB, the client captured the event and it was OK.When I tested it eith IE7, the javascript didn't captured the event. and I don't know what is th...

Fatal error: Call to a member function add_user() on a non-object

12863 byte By raithedavion at 2007-11-20 9:23:55
I've tried working this error for 2 days now...I've look it up on google...older dev-archive posts...kirupa...etc. So here I am posting this on here. Every bit of essential code will be posted.The Script Calling the Error:<?php//check if logged inif(!isset($_COOKIE["USERNAME"]) && !is...

HTML vs. HTM

367 byte By asantavicca at 2007-11-20 9:24:04
I can't find any posts on this question, though I'm sure it's been discussed before.Other than the letter "L" is there any difference between the way HTM and HTML pages are treated by the browser? Is there ANY other difference between the two? Any convention that says I should use o...

PostgreSQL JDBC driver acts wired (ERROR: syntax error at or near "$1")

747 byte By Mjdgard at 2007-11-20 9:24:37
I basically use JAVA statements to generate the SQL query as following.statement = con.prepareStatement("UPDATE "User" SET "Name" = ?, "Email" = ?");statement.setString(1, "'foo'");statement.setString(2, "'bar'");statement.executeUpdate();thies yields the error message:org.postgr...

Save scroll position

8422 byte By Ranthalion at 2007-11-20 9:24:39
Hello all,I'm working on an intranet app targeting IE 6.0. I have a table nested in a scrollable div and I need to save the scroll position between postbacks, so I have a hidden field and 2 javascript functions. This works fine when the div is not nested in a table, but if the div in containe...

Dynamic Top Navigation Menu

382 byte By ask4help at 2007-11-20 9:24:43
Hi there,I have been trying to look for tutorial to create a dynamic top navigation menu similar to this website: www.soccernet.com. However, I spent the whole morning searching to no avail. I will be very grateful if someone can give me a link where I can learn how to create dynamic navigation menu...

accessing with id

625 byte By Donotalo at 2007-11-20 9:25:09
In a php file, I've a form like the following:<form method="POST" action="test2.php"><p align="center"> <table border="1" frame="box" rules="none"> <caption>Sign up</caption> <tr> <td>User id<sup>*</sup></td><td><inpu...

ActiveX automatic update

767 byte By aganet at 2007-11-20 9:25:26
Hello!I append #version to codebase attribute in object tag to control version of my activex control. However it DOES NOT make browser to update activex. Browse does not download new actvex version! I tried to use both cab and not cab variants. Here is code I use:<OBJECT style='widt...

READ THIS BEFORE POSTING!

100 byte By PeejAvery at 2007-11-20 9:26:24
Since there are many server-side languages...Please specify which language you are using. Thank you.

READ THIS BEFORE POSTING!

210 byte By PeejAvery at 2007-11-20 9:26:25
Since there are many client-side languages...Please specify which language you are using. Also, if you are having cross-browser compatibility issues...Please specify which browsers have the problems. Thank you.

how to convert pdf file to html file

214 byte By kalaid at 2007-11-20 9:27:08
Hi,<br/>I have seen in some web sites, a php or html form after submitting is converted into pdf file. Like wise I want to convert a pdf file to html file. Is there any possibility to do this, If so please guide me

how to call javascript function on mouseclick

133 byte By kalaid at 2007-11-20 9:27:23
Hi<br/>I want to call 2 different javascript function at a time on mouse click event.<br/>Is there is any possibility to do this

Perl : Comparing Multidimenstional array

2288 byte By Raghavendra Prabhu at 2007-11-20 9:27:24
Sir, LINUX,perl v5.8.0,W2000 Plz help me to compare multidimentional arraymy code is here $dbh_tt_rw = TimesTen dbconnection$select_sql = "SELECT ID,NAME,ADDRESS from ALLEmployee";$sth = $dbh_tt_rw -> prepare($select_sql);$sth -> execute();my @data1;$i=0;while ( @row = $sth->fetchrow_array...

Export Select Query Result to text file

107 byte By dummyagain at 2007-11-20 9:27:39
I would like to know the Oracle Command to export the select query result to text file.<br/>Thank you.

3D visualisation tool

151 byte By lontana at 2007-11-20 9:27:46
Dear all,<br/>Does anyone know if there is a 3D visualization tool that can be implemented with some scripting language (PHP preferably)?<br/>Thank you

XML Parser Error

691 byte By shweta1234 at 2007-11-20 9:28:03
Hi all,I am getting following error -"ERROR: Unable to initializing MSXML parser. It appears you do not have Microsoft XML parser 3.0 and/or Microsoft Internet Explorer 4.01 SP1(or greater) installed in your PC..........."Platform I am using is Win 2003 server with IIs 6.0.When I try to call Vb DLL...

window.onclick

643 byte By jasonli at 2007-11-20 9:28:11
In VS2005 asp.net project, I inserted a html page, and set it as start page. the code of html page is:<html><head><title>onclick test</title><script type="text/javascript">window.onclick = clickPage;function clickPage(){ alert("click event detected!");}</script>&l...

[RESOLVED] MySQL 5 NOW() function.. unexpected..

1012 byte By Ipsens at 2007-11-20 9:28:18
$link = new mysqli(MYSQL_NAME, MYSQL_USER, MYSQL_PASS, MYSQL_DBNAME);if ( mysqli_connect_errno() ) { echo 'Too many users connected to the database!<br />Please try again later.'; }else { $query = "UPDATE time_actions SET proc_start=NOW() WHERE pid=555"; $result = $link-&g...

Select range of rows

587 byte By bsaucer at 2007-11-20 9:28:28
I have a stored procedure with a rather complicated select query. Sometimes this query can return several thousand rows.I want to be able to select a range of rows by number, such as rows numbered 1200 to 1300. I want to pass these two numbers as parameters. Or I could pass the first row number and...

Get the datafield of check boxes that checked in datagrid(with java script)?

329 byte By ahmad_n80 at 2007-11-20 9:28:51
i have a datagrid that have some checkboxes.i introduce the check boxes in datagrid like:<ItemTemplate><asp:CheckBox ID="chk" runat="server"></asp:CheckBox></ItemTemplate>how can i get the datafield(like id) of check boxes that checked, from database(with java script)thanks....

APC user cache with fcgi processes

1200 byte By walidaly at 2007-11-20 9:28:52
I'm using lighttpd with mod_fastcgi to run PHP 5.2 and APC as an opcacher, however I'd like to use the user cache as well but I see that even though 'apc.shm_segments = 1' APC is creating more segments so that changing entries on APC cache would result having different values for...

How to echo Multidimensional Array?

714 byte By RajaCode at 2007-11-20 9:29:11
My code only prints out the Handheld consoles and not the NextGen consoles why is this? Here is my code :<?php//error_reporting(E_ALL);$consoles ['NextGen'][] = "PS3"; $consoles ['NextGen'][] = "XBOX360";$consoles ['NextGen'][] = "Wii";$consoles ['HandHeld'...

Estimating Locations

230 byte By Nibinaear at 2007-11-20 9:29:22
I was wondering how websites calculate the distance from a location/postcode etc? For example, being able to match records within 50 miles of the postcode - ca22 0ap (UK not US).<br/>I was hoping to be able to do this in PHP.

html colspan =0

234 byte By dummyagain at 2007-11-20 9:31:06
i would like to know what;s the meaning of colspan=0, i have a case that when i set colspan=0, the whole column occupies the whole row and pushing other column to the next row.<br/>What should i do to solve it?<br/>Thank you

Javascript: Matching Name questions

2739 byte By vincent85 at 2007-11-20 9:31:07
I am trying to do this :Typing a name into the suburb entry field will scroll the suburb selectfield to a matching suburb name.How it work:1. Pick a state ("ACT" OR "NT")2. Enter Suburb name into text field3. See if the Select field scroll to a matching name.Problem:If you pick state as "ACT" and en...

reading xml from the database

363 byte By dummyagain at 2007-11-20 9:31:10
The database has stored the whole xml page in one column of the table. When i print the result of it, it can only show the first several lines of the xml files but not all, i have tried to export the report using spool filename, however, it doesnt help. I would like to know if there are any ways to...

How to display a text like "<abc>" in xml

142 byte By rahulsri19 at 2007-11-20 9:31:30
Hello all,<br/> I have to display a text like "<abc>". Since <> symbol is used as tag, its not displaying. Please tell me the way.

PHP AJAX Question

1099 byte By kimoo at 2007-11-20 9:31:37
hello everyone;I am using PHP/AJAX and MYSQL,Got the following js function to display the database responsefunction displayData() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById('DIVY').innerHTML=xmlHttp.responseText } }know for an example if i wan...

Should i use $HTTP_GET_VARS

327 byte By kimoo at 2007-11-20 9:31:47
hello;Should i use $HTTP_GET_VARS if i want to get a value into php from an html form or is it old now?php.net says$_GET Variables provided to the script via URL query string. Analogous to the old $HTTP_GET_VARS array (which is still available, but deprecated).regards,kimoo...

SQL statement

249 byte By gurupot at 2007-11-20 9:32:05
Hi,<br/>I have a table with a date column which has data in this format 2003-01-31 09:03:05.303. I would like to extract the date from this column and format it to 20030131 format. Can anyone help me how to do this. <br/>Thanks,<br/>Pushpa

Failing to Create Files -- Please Help

988 byte By 7Priest7 at 2007-11-20 9:33:57
I am wanted to create a browser based version of Dos-Bible ( http://Dos-Bible.org/) So I had to seperate the versesI tryed using C++ but It didnt work so here is a php way to seperate the verses<?php$Bible = file("OBible.txt");$count = 0;while ($Bible[$count]) { $Book = $Bible[$count]; $count++;...

no display.

564 byte By zhshqzyc at 2007-11-20 9:34:15
I am going to display a sentence in an applet.But why no display.thanks.<html><title>TEST</title><head><script type="text/javascript">function myFunction(){ return ("Hello, have a nice day!")}</script></head><body bgcolor="white"><applet code = "C...

A basic question about PHP

357 byte By wuyh at 2007-11-20 9:34:29
I just got a conference package, called OCS, run on my server. I kind of wanna do some change on redirecting when the visitors type the URL.In the location bar of the browser, i saw something likeindex.php/xxx/yyywhile the index.php is a php file. what does /xxx/yyy mean? is it a parameter passed to...

How do I close a window when leaving it.

379 byte By glenvern at 2007-11-20 9:34:31
1. How do I close the current window when <a href> linking to another website? I tried <body onUnload="window.close()"> but it didn't work.2. How do I get the new website to open in the Maximised view? Mine all currently open in 'Normal screen' (Properties are set to Maxim...

redirection and keywords

537 byte By aratmis at 2007-11-20 9:34:35
Hello,I have a redirection in my website index.php - <?phpheader("Location: http://theartmix.netfirms.com/store/nfoscomm/catalog/"); /* Redirect browser *//* Make sure that code below does not get executed when we redirect. */exit;?> Because of the redirection I am unable to write keywords fo...

3 free chapters from ebook for download

1089 byte By virgoptrex at 2007-11-20 9:34:37
Hi I found these ebook chapters on http://pratik.tambe.ebooksupport.googlepages.com/homeThey are absolutely free!!!The Chapter on 'String manipulation' has great design too. Teaches many important aspects with illustrations.A full featured ebook features:1. Assembling instructions with DOS2...

Passing Values from javascript to ASP

315 byte By mattgb1 at 2007-11-20 9:34:42
I have a JavaScript function that successfully sets the .src property of an <img> control, but when I click on an <asp:ImageButton> control, the server side reports that same control's .src property as the value it had at design time.How can I get JavaScript to set it on the server...

Insert stalls webpage

1281 byte By Culperat at 2007-11-20 9:34:44
Hello, I'm working with Oracle as my db. I'm using php to create webpages to allow people at my workplace to enter information into the database. There is already a program developed to utilized the ADOdb function to communicate with Oracle. The problem I'm having I know doesn&#...

Different Results from the same query and DB

794 byte By Culperat at 2007-11-20 9:34:45
I am currently having a problem with not just one website's query, but multiple websites' queries producing false results.OraclePHP - ADOdb When I try to do a SELECT query on some pages I'll get more or less results than actually exist in the database. When I use SSH and connect to...

javascript:this.blur() allowing the user to type an amount

1390 byte By jpipitone at 2007-11-20 9:35:02
I have a form that I'm using with authorize.net that automatically populates based on the user's selection. There are 3 options which I will show below. I want the user to be able to pick from the 3 amounts, but when they select "Just a donation," I want the form field x_amount to be edi...