Search found 25 matches

by nmreddy
Fri May 14, 2010 5:01 am
Forum: PHP - Code
Topic: How to read pdf document & display its content in browser??
Replies: 8
Views: 781

Re: How to read pdf document & display its content in browse

@cpetercarter -- thanks for the valuable suggestions , presently i am getting the text but it was like a one string

ex:this would be giving as thiswouldbe
by nmreddy
Mon May 10, 2010 10:41 pm
Forum: PHP - Code
Topic: How to read pdf document & display its content in browser??
Replies: 8
Views: 781

Re: How to read pdf document & display its content in browse

First Thanks for the suggestions,
but what i want is , when a user upload the pdf file i have to read the contents of pdf and display its contents in the webpage like we read text files and display its contents..
by nmreddy
Mon May 10, 2010 2:23 am
Forum: PHP - Code
Topic: How to read pdf document & display its content in browser??
Replies: 8
Views: 781

How to read pdf document & display its content in browser??

Hi ,

In my application a user will upload pdf documents , i have to read that pdf file and display the content in the pdf to the browser .
how can i do that
can any one suggest me the solution ??

Thanks,
Maheedhar
by nmreddy
Tue May 19, 2009 6:54 am
Forum: PHP - Code
Topic: how to get this result?????????please help
Replies: 8
Views: 529

Re: how to get this result?????????please help

SELECT DISTINCT ( pn_weight),pn_flavor FROM products where pn_name='creatine monohidrat'

use this query ..
by nmreddy
Tue May 19, 2009 5:36 am
Forum: PHP - Code
Topic: How to remember submitted value after page reload
Replies: 2
Views: 296

Re: How to remember submitted value after page reload

At page starting give like this

if($_POST['radio_buttonvalue']!='')
radio_buttonvalue = $_POST['radio_buttonvalue'];
else
radio_buttonvalue = $_GET['radio_buttonvalue'];

Next Give the pagination like this

<a href='test.php?radio_buttonvalue=$radio_buttonvalue>next</a>
by nmreddy
Tue May 19, 2009 12:51 am
Forum: PHP - Code
Topic: HTML Purifier newlines to <br/> elements
Replies: 5
Views: 983

Re: HTML Purifier newlines to <br/> elements

May be this will help

nl2br (php function) -- converts \n to <br> ..

<p> i don't have an idea ..
by nmreddy
Tue May 12, 2009 12:59 am
Forum: PHP - Code
Topic: php change ' to &#39;
Replies: 4
Views: 426

Re: php change ' to &#39;

u can use addslashes function before inserting into database and stripslashes function before displaying the content in a page...
by nmreddy
Mon Apr 20, 2009 4:44 am
Forum: PHP - Code
Topic: url shortening api in php??
Replies: 2
Views: 117

Re: url shortening api in php??

The below code ,i found on google search

function shortenurl($url){
if(strlen($url) > 45){
return substr($url, 0, 30)."[...]".substr($url, -15);
}else{
return $url;
}
}

may be useful ,if not leave it ..
by nmreddy
Mon Apr 20, 2009 1:01 am
Forum: PHP - Code
Topic: Creating a register Form Help !
Replies: 2
Views: 101

Re: Creating a register Form Help !

try this query

$query = "INSERT INTO user VALUES ('".$cemail_address."','".$cpassword."','".$ctitle."','".$cfirst_name."','".$clast_name."','".$cphone_number."')";
by nmreddy
Fri Apr 17, 2009 1:03 am
Forum: Databases
Topic: select data from a table and it satisfy two conditions
Replies: 4
Views: 513

Re: select data from a table and it satisfy two conditions

here i have to get id2 value and it satisfy both conditions ((keyname ='a' and keyvalue='2') AND (keyname='b' and keyvalue='3'))
by nmreddy
Wed Apr 15, 2009 3:22 am
Forum: Databases
Topic: select data from a table and it satisfy two conditions
Replies: 4
Views: 513

Re: select data from a table and it satisfy two conditions

yes, i have other rows with id2 as 111 like id1 id2 keyname keyvalue 1 -- 111 -- a -- 2 2 -- 111 -- b -- 3 3 -- 222 -- a -- 2 4 -- 222 -- b -- 4 5 -- 111-- d -- 6 Here i have to get id2 value which is 111 ,with the given conditions of (a=2) and (b=3) how can i write the query ? Thanks, NMreddy
by nmreddy
Mon Apr 13, 2009 1:47 am
Forum: Databases
Topic: select data from a table and it satisfy two conditions
Replies: 4
Views: 513

select data from a table and it satisfy two conditions

i have a table of data like this with four columns(id1,id2,keyname,keyvalue) id1 id2 keyname keyvalue 1 -- 111 -- a -- 2 2 -- 111 -- b -- 3 3 -- 222 -- a -- 2 4 -- 222 -- b -- 4 how can i get the id2 value = 111 i written this query select id2 from table where (a=2) and (b=3) but it giving empty res...
by nmreddy
Mon Mar 02, 2009 5:02 am
Forum: PHP - Code
Topic: send an email script
Replies: 6
Views: 122

Re: send an email script

try with these headers

$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";
by nmreddy
Thu Feb 26, 2009 4:54 am
Forum: PHP - Code
Topic: Mailing problem
Replies: 2
Views: 85

Re: Mailing problem

try with these headers

$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";