No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
30 Posted Topics
Re: //Newline and tab space to single space $from_mysql = str_replace(array("\r\n", "\r", "\n", "\t"), ' ', $from_mysql); // Multiple spaces to single space ( using regular expression) $from_mysql = ereg_replace(" {2,}", ' ',$from_mysql); // Replaces 2 or more spaces with a single space, {2,} indicates that you are looking for 2 … | |
Re: Yup its a windows 98 entry , i had also messed up like this before , and its safe to remove that entry , but i doubt that your windows Xp copy might be running slow due to this. | |
Hey guys need your help here. I will go ahead and describe my problem and what i intend and what i am getting. Platform for SQL Queries : MS Access There are 2 identical table in terms of table structure, they contain information ( RAW Data) about month, money i … | |
I would like to know that if there is a way to include the name of the form in HttpWebRequest class so that when i fire my request to the web page it also passes the form name. | |
Is there a way to use curl with c# ?? I tried libcurl .Net but its really messy :( | |
Re: i guess this is what you are looking for :) [url]http://www.webmasterworld.com/php/3146706.htm[/url] | |
Re: Instead of directly running from the dreamweaver, which opens the php file instead of parsing it through the apache server try opening it from the location of the server. What i mean is : make a directory called "test" in your htdocs folder in WAMP installation and copy your "hello.php" … | |
Re: You can use PHP-GTK for building stand alone application. Link: [url]http://gtk.php.net/[/url] What is PHP-GTK? PHP-GTK is an extension for the PHP programming language that implements language bindings for GTK+. It provides an object-oriented interface to GTK+ classes and functions and greatly simplifies writing client-side cross-platform GUI applications. | |
Re: This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Source : PHP online manual Link : [url]http://in2.php.net/ob_start[/url] View example listed there to get a better idea | |
Re: If you can elaborate more on what is the problem rather than saying that i need help with the system, then maybe we could help you out. First of all tell, what all have you done. | |
Re: If you want to view the last updated record and you have a column which stores the last update. Then use this : (i am assuming that you have stored time in unix timestamp format, i.e you have used php's time() function) [CODE] $sql = "SELECT * FROM tblexdetails where … | |
Re: you have to define these variables before you can use them. DB_SERVER , DB_SERVER_USERNAME , DB_SERVER_PASSWORD and DB_DATABASE | |
Re: Instead of using PHPmyAdmin i would suggest you to use PHP to open the file and read the test file and write a sql query that would go around in a loop until the end of file. This is the fastest way of doing it , if the text file … | |
Re: Problem : Having 2 submit buttons submit to 2 different pages Solution : [CODE] <form name="fruits" action="" method="post"> [/CODE] [CODE] <input type="button" name="Apple" value="Give Me apples " onClick="document.veggie.action='get_me_veggie.php'; document.fruits.submit();" /> <input type=”button” name=”orange” value=”Give Me Oranges” onClick=”document.fruits.action=’get_me_fruits.php’; document.fruits.submit();” /> [/CODE] Here you go :) | |
Re: error 2 and 3 are occurring because you haven't initiated a MySQL connection. define your $conn_id ex: <?php $db_name="rps"; $db_url="localhost"; $db_username="root"; $db_password="rps"; $connection = mysql_connect($db_url,$db_username,$db_password); | |
Re: Have a look here, the author has described a number of ways for handling Pretty URLs [url]http://www.phpriot.com/articles/search-engine-urls[/url] | |
Re: or you are interested in Friendly URL's, like forums have these days ? | |
Re: You cant read a DOC file in the manner that you have used as the content is not stored as in the case or normal text file. Try opening the doc file with notepad and you will get what i mean. You are better off using iFilter for reading DOC … | |
Re: PHP does have frameworks like Cold Fusion. Check out the Zend and others ( google is your friend ;) ) | |
Re: I would go with sessions too . They are a better and neat way of doing this. To start a session [CODE] session_start(); [/CODE] To write variables into session [CODE] $_SESSION[variable_name] = variable_value; [/CODE] To end a session [CODE] session_destroy(); [/CODE] remember to use session_start() at the top of every … | |
Re: I will explain you the logic what has to be done with an example and you can implement that in your script. [CODE] $results = mysql_query("SELECT * FROM f_category ORDER BY c_order DESC", $connection); $numrows = @mysql_num_rows($results); $x = 0; while ($x < $numrows) { $cid = stripslashes(mysql_result($results, $x, "c_id")); … | |
Re: What does the function now() do exactly ?? can you post the function here ? | |
Re: try using an [U][COLOR=Orange]array[/COLOR][/U] instead of making 5 variable... if you still dont get it then read on for the code... int x[5],sum=0; // creates an array to store 5 integers for(int i=0;i<5;i++) // loop to take 5 values and evaluate them { cin>>x[i]; if(x[i]%2==0) // checks if the nubmer … | |
Hi guys, i am new to java so i started of with basics, but now im stuck at a little problem. I will paste the code and error's below, hoping that some1 could sort em out [code=java] import java.lang.*; import java.io.*; class Sphere{ float radius; int cXcord; int cYcord; int … | |
Is there a way to store multiple enteries in a same field (Like adding delim's..etc , which would be considered while we are firing queries at them) Ex: i have a field named subjects.. is is supposed to have multiple entries in the same field (English , maths ,etc) Is … | |
There is a strange thing going on with my copy of Visual Studio.. the class for ADO isnt there .. what i mean is that i cant use System.Data.ADO it simply isnt there ..what do i need to do get ADO access for my programs (based on database connectivity) | |
My friend just gave me a c++ problem.. well the problem was to make small circles on circumfrence of a big circle that is positioned in the middle of screen... well i can get that middle of screen by getmaxx()/2 ... but all i can get to find locus of … | |
i was working on an application....(chat based program (server /client)) and i needed that when a particular string is recieved i can activate picturebox for 3 seconds and then disable it ( picturebox.visible= false) i have no idea on how to use timer control at all because i never felt … | |
out of the blue i lost 20 - 30 % of icons like .doc ,.ppt all micrsosoft office and some other programs. Is there a way to like get them back or something :cry: | |
I wanted to calcualte the execution time of Bubble sort or for that matter any loop . i tried using the clock funtion in c but it gives me 0 seconds for even 10000 elemnts being in the list :sad: . |
The End.