Search found 12 matches

by lukilukg4
Wed May 06, 2009 4:14 pm
Forum: PHP - Code
Topic: problem with php_self in search.php for next page
Replies: 7
Views: 598

Re: problem with php_self in search.php for next page

McInfo many thnxs

it works... tnx alot man... :wink: :wink: :wink: :drunk:
by lukilukg4
Wed May 06, 2009 10:15 am
Forum: PHP - Code
Topic: problem with php_self in search.php for next page
Replies: 7
Views: 598

Re: problem with php_self in search.php for next page

with $_SERVER['REQUEST_URI'] it works but I still have problems with the results... it keeps this time the variables from .html but after first 10 results when i click next>> i see again the first 10. So there is another mistake in php code, i think... i think that $s cant change the second time... ...
by lukilukg4
Wed May 06, 2009 9:45 am
Forum: PHP - Code
Topic: problem with php_self in search.php for next page
Replies: 7
Views: 598

Re: problem with php_self in search.php for next page

Defiline wrote:

Code: Select all

<?php
 
    echo getenv('SCRIPT_NAME');
 
?>
SCRIPT_NAME - is a system constant, not your filename :)

:?: :roll: :?:

i dont understand ....
can u explain me again plz
by lukilukg4
Wed May 06, 2009 8:47 am
Forum: PHP - Code
Topic: problem with php_self in search.php for next page
Replies: 7
Views: 598

Re: problem with php_self in search.php for next page

Try echo "&nbsp;<a href=\"$_SERVER['PHP_SELF']?s=$news&q=$var\">Next 10 >></a>"; see if that helps This didnt work and aslo didnt work this echo "&nbsp;<a href=\"".$_SERVER['PHP_SELF']."?s=$news&q=$var\">Next 10 >></a>"; but tnx for ...
by lukilukg4
Wed May 06, 2009 7:02 am
Forum: PHP - Code
Topic: problem with php_self in search.php for next page
Replies: 7
Views: 598

problem with php_self in search.php for next page

hi guys... I am searching inserts from mysql database, and i am using 2 files, one is .html and the other is .php I want to display 10 results per page. the first 10 results are ok but when i try to see the next 10 results i saw again the same first 10 can u help me with this the html code is: main....
by lukilukg4
Sat Aug 09, 2008 10:31 pm
Forum: PHP - Code
Topic: i want to search all words using "and" not "or" !!!
Replies: 4
Views: 211

Re: i want to search all words using "and" not "or" !!!

well i have in mysql's table: columm1 columm2 columm3 columm4 columm1 has---> 1.Nick Brown 2. Nick Black 3. George Brown 4.John Best columm2 ----> we dont care....... when i am using this code and i am searching Nick Brown the result is... Nick Brown Nick Black George Brown this means that it search...
by lukilukg4
Sat Aug 09, 2008 9:19 pm
Forum: PHP - Code
Topic: i want to search all words using "and" not "or" !!!
Replies: 4
Views: 211

Re: i want to search all words using "and" not "or" !!!

i am using this code by shane.... when i am searching for e.g. Nick Brown it searches Nick or Brown. i want to seacrh Nick and Brown... Am i clear now? Sorry if i wasnt clear from the beginning


The link is http://www.hackosis.com/2007/11/06/howt ... and-mysql/


tnx
by lukilukg4
Sat Aug 09, 2008 2:12 pm
Forum: PHP - Code
Topic: i want to search all words using "and" not "or" !!!
Replies: 4
Views: 211

i want to search all words using "and" not "or" !!!

~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too. hi i use this code to search some inserts from mysql... but i woul...
by lukilukg4
Sat Jul 26, 2008 4:21 am
Forum: PHP - Code
Topic: in easyphp it works fine but in server....
Replies: 2
Views: 124

Re: in easyphp it works fine but in server....

tnx mate it works... i put it in php code

echo "<meta http-equiv=\"refresh\" content=\"2; url=a_name.php\">";

tnx a lot
by lukilukg4
Sat Jul 26, 2008 3:50 am
Forum: PHP - Code
Topic: in easyphp it works fine but in server....
Replies: 2
Views: 124

in easyphp it works fine but in server....

could you tell me why in easyphp this line works fine, but in internet it cant refresh the page... 8O


header("Refresh: 2; url=a_name.php");



could you help me plz

tnx for your time
by lukilukg4
Thu Jul 24, 2008 3:53 am
Forum: PHP - Code
Topic: function INT() in php???
Replies: 2
Views: 97

Re: function INT() in php???

tnx mate....
by lukilukg4
Wed Jul 23, 2008 2:59 pm
Forum: PHP - Code
Topic: function INT() in php???
Replies: 2
Views: 97

function INT() in php???

hi,

i am new in php, i have to finish a code and I have to use the int function (from excel)


The INT function returns the integer component of a number by removing (truncating) any decimal part of number

e.g. int (1,89)-----> 1

thanks for your help...