cancer10 47 Posting Whiz in Training

Yes the serial number is the ID field

cancer10 47 Posting Whiz in Training

There are 2 columns in 1 database for Id and name but the serial number is random.


I want to update those serial number in serial order, how to?

Like

id Name
------------
1 Shouvik
5 Joe
6 Mathew
3 John
4 James
2 Jack


I want to update it like

id Name
------------
1 Shouvik
2 Joe
3 Mathew
4 John
5 James
6 Jack

if i code it like

for x=1 to 4
conndb.execute "update tblcontest set id=" & x 
rs2.movenext
next

This way its updating all the colum with the number 4 only, any ideas?

cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training

I have the following table in page1.asp

<table>
<tr>
<td><input type="checkbox" name=chk value=1></td>
</tr>

<tr>
<td><input type="checkbox" name=chk value=2></td>
</tr>


<tr>
<td><input type="checkbox" name=chk value=3></td>
</tr>

</table>

If I want to retrieve the value of all the checkboxes which I have selected in page1.asp and display them in another page, page2.asp then I write the code as below

for each cid in request.Form("chk")
response.Write cid 
next

Now if I select 2 checkboxes (2 and 3) then the result will show like 23


but I want them in seperate variables, how can I?


Thanx for your help

cancer10 47 Posting Whiz in Training

i have 5 checkboxes in one asp page, I am trying to get the values of all checkbox that are checked using for each loop but I dnt get any result, just a blank page. can u help me?


Herez my code where I am trying to get the values of all check boxes

for each cid in request.Form("chk")
response.Write cid & "<br>"
next
cancer10 47 Posting Whiz in Training

Well I am trying to search a database using ASP. I want to search all the names of persons in a database by their mobile number.


The mobile numbers are entered in a textarea and needs to seach them at once.

I could not figure out how can this be solved.


I am using the following code

str= request.Form("txtbulk")
splitarray = split(str,chr(13))
for i = 0 to ubound(splitarray)
'response.write splitarray(i) & "<BR>"
rs.open "select * from tblcontest where mobile='" & splitarray(i) & "'",conn,1,3
next

and display the result here

<table>
  <tr align="center">
    <td><% response.Write rs(0) %></td>
    <td><% response.Write rs(1) %></td>
</tr>
</table>

i am not sure if this is the correct way to code this, may be someone can help me?

cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training

ASP is a server side scripting language, so your asp code will not process/work unless u send a command to the server.

This is how your desktop application is differentiated from your server side programming languages.

cancer10 47 Posting Whiz in Training

The best way of finding an answer to an asp program is to copy the error code and paste it in google.com then perform a search, you will defenately come to know the solution of your problem.

cancer10 47 Posting Whiz in Training

If your UID2 field in your database has the datatype as interger then remove the single quotes from the number.
So your query should be like

rs.open "SELECT  UID2, EntryDate, EntryAgent FROM tb_LeadBox WHERE UID2 = 1258753"
cancer10 47 Posting Whiz in Training

Try to use the session.timeout method


<%
session("username") = "abc"
Session.Timeout = 50
%>


By default your session is valid for 20 mins if u r not active. But in the above code, your session will expire after 50 minutes even if u r not active

cancer10 47 Posting Whiz in Training

Chill out guys!

Hez asking for a help and you guys are redirecting him to MSDN and whatnot.

Pavin, I googled for asp.net login script and herez wot I found. May be this will be of some help to you?

http://www.hotscripts.com/Detailed/30522.html

cancer10 47 Posting Whiz in Training

My skills include:

Programming Languages:
C, and Visual Basic 6.0


Scripting Languages:
ASP, CSS, HTML, VBScript, PHP, SSI, XHTML and XML

Server Security:
SSL, OpenSSL, TLS and SSH


Database:
MYSQL, MS Access, SQL Server

Web Hosting Automation:
Plesk, cPanel, H-sphere, Hostflow, Helm, Ensim, Webmin, Zpanel, vDeck, Direct Admin, Hosting Controller, Hosting Accelerator, WHM Autopilot

cancer10 47 Posting Whiz in Training

Hello All,

Can someone help me with this problem?

I have 3 colums in an excel sheet (Serial No, Name, Mobile no), I want to put all the data in the excel sheet into the database which also has 3 colums (Serial No, Name, Mobile no) with a single click of a button using ASP.

Can someone code me this?


I have included both the access database and the excel file within the attachment.


Many thanx in advance :)

cancer10 47 Posting Whiz in Training

Hello,

I want to convert a 1024 x 786 wallpaper into thumbnail in PHP

Wots the code for it?


Thanx in advance

cancer10 47 Posting Whiz in Training

If I want my users to download a .zip or .exe file the command is

<a href=filename.exe>Download</a>
or
<a href=filename.zip>Download</a>

This will ask the visitors where to save the file on their hard disk.

But what if I want my users to download a doc/pdf/php/html file and I dnt want the browser to display these on the the browser itself but ask the users to save them.

<a href=filename.php>Download</a> will simple display the page on the browser.


PS: I dont wanna compress them.

Any help appreciated

cancer10 47 Posting Whiz in Training
cancer10 47 Posting Whiz in Training

Included a file that has been encoded by an encoder, just wanted to know if there is any free ones,


Thanx

cancer10 47 Posting Whiz in Training

Is there any good and free Encoder for PHP?

URL plz?

cancer10 47 Posting Whiz in Training

Thanx for the more info, but I like Easy PHP better www.easyphp.org

cancer10 47 Posting Whiz in Training

Incase you are looking for tutorial for configuring apache with PHP and Mysql, I found one


Hope, it will be useful to you too. ;)

cancer10 47 Posting Whiz in Training

Hello Everyone,

I hope everyone of you are aware of the Business Promoting Tools available in the market like:

IBP (internet business promoter)
Web CEO 5.6x
Add Web

If you dont know them then just google it


Well my question is that, are these tools really worth purchasing. Are they any good in promoting your website/business?

cancer10 47 Posting Whiz in Training

Sad news,

I was going to register a domain today from www.ipowerweb.com or www.ipower.com and found that they have increased their domain pricing to $6.5 from $2.95

So, can now someone refer me a reliable site from where I can register domains at minimum price?


Awaiting for replies

Thanx

cancer10 47 Posting Whiz in Training

How do they make tables with only CSS without using HTML Tables? is it possible to make a table as shown on the screenshot below with only CSS and NO HTML? if yes how?


[img]http://photobag.2plans.com/images/75427379.jpg[/img]


Thanx in advance

cancer10 47 Posting Whiz in Training

Thanx


Problem solved, Plz close this topic

cancer10 47 Posting Whiz in Training

hi,
yes it is possible.....

just try this script at your default.php page.. it might be work......

<?php
if (getenv ("HTTP_HOST" )==" www.lab1.com" or
getenv (" HTTP_HOST" )==" www.lab2.com" ) {
header(" Location: http://www.lablockers.com/labweb/default.htm" );
exit;
}

?>

And wot this code will do?

cancer10 47 Posting Whiz in Training

See, I am using the following PHP code to generate a PNG image file

<?php
// create a 100*30 image
$im = imagecreate(100, 30);

// white background and blue text
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);

// write the string at the top left
imagestring($im, 5, 0, 0, "Hello world!", $textcolor);

// output the image
header("Content-type: image/png");
imagepng($im);
?>

The above code works absolutely fine if I am running on the top of my webpage,

But if I try to run anywhere in between my page, then it generates the following error

The image "http://localhost" cannot be displayed, because it contains erros

I know this is due to because I am passing the header after the HTML codes, but if I try to pass the header before any HTML tag then I get the same error as above.

Any suggestions?

PS: I want to make a graphical counter at the bottom of my page, and this is the reason I need this code to work. Or is there any alternative????


Kindly Help


God Bless

cancer10 47 Posting Whiz in Training

Does any of you know how to mask a URL in php?? Like the one you see in free URL redirectional services

I mean I have a url like http://www.my-server.com/

which will redirect me to http://www.some-other-server.com/abc.php


by the following PHP command

header("location: http://www.some-other-server.com/abc.php");

But I want the URL in the address bar of my browser to show only this URL

http://www.my-server.com/

Is this possible??

`

cancer10 47 Posting Whiz in Training

OK I attached an WYSIWYG-Editor, however I am unable to get the data on the rich text box to another page using PHP, can anyone solve it plz?


Thanx a ton in advance :)

cancer10 47 Posting Whiz in Training

http://www.webreference.com/programming/javascript/gr/column11/


is vry very slow, does not even show up :rolleyes:

cancer10 47 Posting Whiz in Training

One of our valued members, Troy, actually wrote a website editor in PHP called SnippetEdit

Thankx but its not free :(

cancer10 47 Posting Whiz in Training

I am very sory if I posted in the wrong section, I didnt knew where to post this so I thought this would be the best section to post my question.

Well, I am in need of a code for RICH TEXT BOX, just same as where I am typing this.....

If you are not getting wot I want, herez a screenshot


[img]http://photobag.2plans.com/images/81889120.jpg[/img]

cancer10 47 Posting Whiz in Training

This error comes when u r starting a session after any HTML tags, plz start the session at the veery top of the page

cancer10 47 Posting Whiz in Training

Dude you forgot to register the session, follow this code

$_SESSION = $email
session_register("email");

cancer10 47 Posting Whiz in Training

Pass the header before any HTML tags or else it would show errors

cancer10 47 Posting Whiz in Training

Try

header("location: http://server-to-redirect.com");

pass this above any HTML tags or else it would show errors

cancer10 47 Posting Whiz in Training

Hello,

Is there any way I can prevent simultaneously multiple downloads from my site with PHP? I mean I want a user can download only 1 file at a time, the second file can be downloaded only after the first one is finished.


Thanx in advance for the help.

cancer10 47 Posting Whiz in Training

The following code is used to set a cookie that will expire after one hour

<?php
setcookie('cookieName', 'cookieValue', time()+3600, '/');
?>

if I want to set a cookie that should never expire, what I have to do?

thanx

cancer10 47 Posting Whiz in Training

Actually this is my code

<?
session_start();

echo "Logging out ".$_SESSION['userid'];

header("location: tussu.php");

?>

I get the error

Logging out admin
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\logout.php:3) in c:\program files\easyphp1-8\www\logout.php on line 6
cancer10 47 Posting Whiz in Training

Is there any other function in PHP that can be used for redirecting a page

I use the following

header ("location: index.php");

But it generates the following error:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\easyphp1-8\www\admin-right-nav.php:5) in c:\program files\easyphp1-8\www\admin-right-nav.php on line 6

Is there any alternative in php?

cancer10 47 Posting Whiz in Training

Hello Friends,


I am willing to learn python, so can someone please guide me how do I get started?

I mean wot compiler would I need and which editor etc

Also tell me wot is the scope of python in web programming?


Thanx

cancer10 47 Posting Whiz in Training

Thanx mate, that helped

cancer10 47 Posting Whiz in Training

ok here it goes:


I ahve 2 textbox within a form on my HTML page


I want to display the text "SHOUVIK" (without quotes) on the second textbox as soon as I click on the first textbox


Is this possible?

Kindy help

cancer10 47 Posting Whiz in Training

there are no trial versions of any Windows version.

You might want to reconsider on what you just said

This is a trial version of windows xp 64 bit and no its not a beta

http://www.microsoft.com/windowsxp/64bit/facts/trial.mspx

cancer10 47 Posting Whiz in Training

Hello,


I was wondering is there any Windows XP 2004 version? if yes then can u plz give me the download link for the trial version of "Windows XP 2004"? I searched for Microsoft.com and google.com both but did not get any results :(


Also, I downloaded the trial version of x64 bit Edition but it says that my processor is not compatable and that the setup cannot continue with the installation. Is windows xp 2004 and x64 bit edition both the same?

Plz guide me


Thanx

cancer10 47 Posting Whiz in Training

Can someone please suggest me which is the best archiving tool I can use, which will support almost all type of compressed file?

I used winrar from rarlab.com but Its quite buggy. It generates a CRC error after a couple of months when I try to unzip the same compressed file.


please suggest me one....


Thanx