Hi All, I am a PHP developer with more than 2 years of experience and now I want to start with ASP.NET. For this I need very basic tutorials and your valuable guidance so that I may proceed. I could not find these on net. Like I could not find how I shud connect asp.net with MsSql. So please help. Thanks
rgoyal
Posts
-
want to start with asp.net -
MySql RegexpFollowing is the requirement for search component: Input: Only 1 search box in which I will put 1 or more words(separated by space) Output: I need to search space separated parts of this string in multiple fields of multiple tables. What I have done?
$keywordList = explode( ' ', trim($_REQUEST['txtSearch']) );
$i = 0;
while($i < count($keywordList)){
$strKeyword.= " r.userId like '%$keywordList\[$i\]%' or r.maritalStatus like '%$keywordList\[$i\]%' or r.nativeLang like '%$keywordList\[$i\]%' or ro.personalStatement like '%$keywordList\[$i\]%' or ro.empReq like '%$keywordList\[$i\]%' or ro.hobbies like '%$keywordList\[$i\]%' "; $i++; if($i < count($keywordList)){ $strKeyword.= " or "; }
}
This is working according to my requirements I need to do it in MySql and PHP with regexp. Any Help? Thanks
-
WebservicesCan you put me on the track for understanding and creating web services? I have gone through w3schools tutorials about SOAP but with that I could not write any web services. When I google for web services there are lot of tutorials. There are SOAP,REST etc don't know what they are. I want to use PHP for web services. Please help Ranjan
-
Why this does not work?Thanks a lot for your very clear response. Ranjan
-
Why this does not work?You said: What happens here is that the write() function is called through the onload event. Browser does not know where to place the new content since the parsing has allready ended. Then why it does not happen with div and form element. As I am new to javascript I require more clear explanation. Thanks Ranjan
-
Why this does not work?Hi, Can u plz tell me that why this script doesn't work if I uncomment the commented line. JavaScript Test <!-- function clock() { var today=new Date(); var hr=today.getHours(); var min=today.getMinutes(); var sec=today.getSeconds(); if(hr < 10) hr=" "+hr; if(min < 10) min="0"+min; if(sec < 10) sec="0"+sec; var el=document.getElementById(1); el.innerHTML=hr+" : "+min+" : "+sec; document.clock.digits.value = hr + " : " + min + " : " + sec ; //document.write(hr+" : "+min+" : "+sec); setTimeout("clock()",1000); } //-->
-
Vertical AlignmentDo you want something like this.
Ranjan
Goyal
I got it from some place(I don't remember from where) on the net. Ranjan
-
Why different results?Thanks raoul Ranjan Goyal
-
Cancel scrollbar events -
Why different results?<!-- function test(grade) { if(grade > 70) document.write(" Passed"); else document.write(" Failed"); } document.write("C1 "+ test(65) + "<br>"); document.write("C1 ")+ test(65)+document.write("<br>"); //--> I am getting following results: FailedC1 undefined C1 Failed
-
ftp+phpHi Raoul, First very sorry for this delayed response. Today, I tried the following code and I got the following error: Fatal error: Call to undefined function: ftp_connect() in /home/small_projects/ranjan/ALLFILES/ftp.php on line 12 192.168.0.112 is IP of a folder on NT server Code is this: // set up basic connection $ftp_server="http://192.168.0.112/Ranjan"; $conn_id = ftp_connect($ftp_server); // login with username and password $ftp_user_name="********"; $ftp_user_pass="********"; $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // check connection if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!"; echo "Attempted to connect to $ftp_server for user $ftp_user_name"; exit; } else { echo "Connected to $ftp_server, for user $ftp_user_name"; } Ranjan
-
What are meta pointers and meta classes?Thanks in advance. Ranjan
-
After logging out if I login again,can I get the same session?Thanks in advance. Ranjan
-
What is the difference between the two?Thanks Jim. Ranjan Goyal
-
ftp+phpI want a very basic working example. e.g Reading a file from remote machine, displaying it on my textbox and then on a button click to save that file in the same place. At present I am not able to read file. My machine no is 192.168.0.6 Below is the code that I am using "; $fp=fopen("ftp://\*\*\*\*\*\*:\*\*\*\*\*@192.168.0.60/ranjan/downDb.php",r); $contents = fread ($fd, 100);//100 is file size here echo"$contents"; echo""; ?> Below is the error generated Warning: fopen(ftp://...@192.168.0.60/ranjan/downDb.php): failed to open stream: FTP server reports 550 Could not get file size. in /home/small_projects/ranjan/ftp.php on line 3 Warning: fread(): supplied argument is not a valid stream resource in /home/small_projects/ranjan/ftp.php on line 4
-
javascript typing effectI tried following and it is not working. But I can write on the status bar as shown below in commented portion. Moreover I don't want to write in the textbox but on the document. <!-- var str="good evening"; var i=0; function show() { var typeLength= str.length document.typewriterScreen.typepage.value= document.typewriterScreen.typepage.value + str.charAt(i) i++ var timeID= setTimeout("show()",50) /* //For printing on status bar if(ctr<=str.length) { window.status = str.substring(0, ctr++) + "_"; setTimeout("show()",200); if(ctr == str.length) { window.status = str.substring(0, ctr) + "_"; ctr=0; } } */ } -->
Please Help. Ranjan
-
Project Management Softwareproject 2000 central
-
javascript typing effectI am trying a javascript typing effect. I am facing problem in giving delay between printing of two characters. I tried setTimeout but is not working as shown below: <!-- var str="good evening"; var ctr=0; function show() { while(ctr<str.length) { document.write(str.charAt(ctr)); <br>/* This is not working: setTimeout(document.write(str.charAt(ctr),50) */</b> ctr++; } } --> show(); Please help Ranjan Goyal
-
ftp+phpCan anyone give me a simplest possible example for using ftp with php technology? I will be very much thankful. Ranjan Goyal
-
What is the difference between the two?What is the difference between the two? I know they produce the same result but why different way of doing the things and whch one is better. Test [Test](javascript : void(0)) Ranjan Goyal