Search found 133 matches

by phazorRise
Thu Sep 15, 2011 7:06 am
Forum: PHP - Code
Topic: displayin forms and undisplayin forms
Replies: 10
Views: 1779

Re: displayin forms and undisplayin forms

ohkay, here's code that do the job. Put this code inside <HEAD> section. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script type="text/javascript"> $(function(){ $("#order_form").submit(functi...
by phazorRise
Wed Sep 14, 2011 12:57 pm
Forum: PHP - Code
Topic: displayin forms and undisplayin forms
Replies: 10
Views: 1779

Re: displayin forms and undisplayin forms

simply follow jQuery Ajax Tut link. and see demo how it works.
by phazorRise
Wed Sep 14, 2011 12:52 pm
Forum: PHP - Code
Topic: displayin forms and undisplayin forms
Replies: 10
Views: 1779

Re: displayin forms and undisplayin forms

have you included jQuery library before the javascript i mentioned? Write following line in your file - <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> to check if jQuery is successfully running put - [text]alert(&quo...
by phazorRise
Wed Sep 14, 2011 12:12 pm
Forum: PHP - Code
Topic: displayin forms and undisplayin forms
Replies: 10
Views: 1779

Re: displayin forms and undisplayin forms

Ohkay, here's something you can try out- ( i used jQuery library for Ajax purpose.) process.php <?php $date = strftime("%Y-%m-%d %H:%M:%S", time()); $fullname = trim(strip_tags($_POST['fullname'])); $organization = trim(strip_tags($_POST['organization'])); $phone = trim(strip_tags($_POST['...
by phazorRise
Wed Sep 14, 2011 11:45 am
Forum: PHP - Code
Topic: displayin forms and undisplayin forms
Replies: 10
Views: 1779

Re: displayin forms and undisplayin forms

i guess you don't want to leave the page. so you need Ajax to do this stuff. You can either use javascript or other javascript libraries like jQuery (my fav) or mootools. With Ajax you can request another php page/script to perform some operations, catch it's response and report it to user. In your ...
by phazorRise
Tue Sep 13, 2011 12:18 pm
Forum: PHP - Code
Topic: htaccess rewriterule
Replies: 1
Views: 438

Re: htaccess rewriterule

As per thread title, i consider you want to do it with htaccess. So here little example - [text]RewriteRule ^_/([A-Za-z0-9-]+)/_/([A-Za-z0-9-]+)/?$ page.php?per1=$1&per2=$2[/text] put this in htaccess file. and write urls something like - [text]<a href="_/software/_/hardware">Your_link...
by phazorRise
Tue Sep 13, 2011 12:18 pm
Forum: PHP - Code
Topic: Plug n Play ready made CRM and MIS module
Replies: 1
Views: 629

Re: Plug n Play ready made CRM and MIS module

Google your query. You'll get what you're asking. but as an answer i suggest use sugarcrm
by phazorRise
Thu Sep 08, 2011 11:34 am
Forum: PHP - Code
Topic: php encription
Replies: 3
Views: 485

Re: php encription

encription solution for my code source
give further details.
by phazorRise
Thu Sep 08, 2011 8:27 am
Forum: Databases
Topic: Fetching 3 rows from table
Replies: 7
Views: 2641

Re: Fetching 3 rows from table

well after previous post i did wrote a small code that gives me desired output. here's it - $id=15; // i have this in hand $link=array(); //to store desired 3 row's id for further process. //$res holds all ids in table from previous 'select id .... ' query while($row=mysql_fetch_array($res)){ if($ro...
by phazorRise
Wed Sep 07, 2011 1:02 pm
Forum: Databases
Topic: Fetching 3 rows from table
Replies: 7
Views: 2641

Re: Fetching 3 rows from table

thanks califdon for the push. Instead of asking for the code/query it's better to try own. I'll write some code and ask again for it's efficency.
by phazorRise
Tue Sep 06, 2011 12:09 pm
Forum: Databases
Topic: Fetching 3 rows from table
Replies: 7
Views: 2641

Re: Fetching 3 rows from table

nope.
i'll be having only 5. and from it i want to find previous and next record.
records are not necessarily be sequential like 4,5,6 or 1,2,3 etc. they can be like 3,5,9 and i've have 5 with me.
by phazorRise
Tue Sep 06, 2011 1:08 am
Forum: Databases
Topic: Fetching 3 rows from table
Replies: 7
Views: 2641

Fetching 3 rows from table

Hi there,
how can i fetch 3 records from table ? let me clear, suppose I've id=5 then i would like to fetch records whose id would be 4,5,6.
that means, i want to fetch previous and next records of current record.
what would be the query ?
by phazorRise
Wed Aug 31, 2011 1:55 am
Forum: PHP - Code
Topic: Question regarding to sendmail.php
Replies: 3
Views: 671

Re: Question regarding to sendmail.php

your code and some questions added- <?php $to = "stevesujk32@msn.com"; $subject = "Client Contact"; $name = $_REQUEST['name'] ; $number = $_REQUEST['number'] ; $email = $_REQUEST['email'] ; $select = $_REQUEST['select'] ; //what is this ? $from = $email; $headers = "From:&qu...
by phazorRise
Wed Aug 31, 2011 1:41 am
Forum: PHP - Code
Topic: Single PHP page for full website
Replies: 3
Views: 646

Re: Single PHP page for full website

You can drive all site with single page. Here's sample code. <?php error_reporting(E_ALL); if(isset($_GET['pageName'])){ $p=$_GET['pageName']; } if(!empty($p)){ switch($p){ case "page1":{ echo 'You are on page 1<br/>'; } break; case "page2":{ echo 'You are on page 2<br/>'; } brea...
by phazorRise
Wed Aug 31, 2011 12:56 am
Forum: PHP - Code
Topic: htaccess file to restrict files being opened
Replies: 7
Views: 770

Re: htaccess file to restrict files being opened

This can either be removed (by browser, or by Anti-virus settings, Norton AV used to block it by default, or ALTERED by plugins.
Why they do it anyway ?

then what is your answer to this thread ?