Search found 18 matches

by thamizh
Thu May 13, 2010 7:49 am
Forum: PHP - Code
Topic: Assigning data using PHP
Replies: 2
Views: 90

Re: Assigning data using PHP

<?php if(isset($_POST['submit'])) { $txtvalue = $_POST['txt1']; } ?> <form method="post" action="copy.php"> <input type='text' name='txt1' value='<?php echo $txtvalue;?>'/> <input type='text' name='txt2' value='<?php echo $txtvalue;?>'/> <input type='submit' name='submit' value=...
by thamizh
Mon May 03, 2010 2:28 am
Forum: PHP - Code
Topic: while check a checkbox call a file using ajax
Replies: 4
Views: 318

Re: while check a checkbox call a file using ajax

Thank you very much

i applied ajax post
yet another doubt i have ..
how to split the response.text data using php as array of elements (properly using foreach loop) code
i googled it but no use
can any one help out in this issue
by thamizh
Fri Apr 30, 2010 12:49 am
Forum: PHP - Code
Topic: while check a checkbox call a file using ajax
Replies: 4
Views: 318

Re: while check a checkbox call a file using ajax

yeah i implement the design with jquery but i need to implement the technical part u can see in the link when the user checks the checkbox he can find the results with pagination same thing i need to implement using php i just stored all the checked checkboxes values in the array (using javascript) ...
by thamizh
Thu Apr 29, 2010 5:13 am
Forum: PHP - Code
Topic: while check a checkbox call a file using ajax
Replies: 4
Views: 318

while check a checkbox call a file using ajax

i want to replicate the same concept as in this link pls have a look at this link http://www.offersforshoppers.com/NewOFS/offersList.php/Mobiles-discount-coupons i asked to replicate left side menu's with checkbox when the user checks the particular mobile category it gives the search result to my k...
by thamizh
Mon Apr 26, 2010 7:05 am
Forum: PHP - Code
Topic: assign javascript value to php
Replies: 4
Views: 81

assign javascript value to php

alert (namelist);
am having a js function which returns the a value
i want to assign this value to a php value
for eg $test = namelist;
i tried this code
<?php $test = ?> namelist;
it shows an syntax error
how can i achieve the desired result
any body help pls :(
by thamizh
Thu Apr 22, 2010 6:17 am
Forum: PHP - Code
Topic: Using a table's ID to pull up a page
Replies: 4
Views: 656

Re: Using a table's ID to pull up a page

1: @localhost error - for this u should connect to the database
the db should be connected with proper user name and pwd

2. T_STring error comes because u were missing semicolon in the line
if possible pls post the code

for more help :)
by thamizh
Thu Apr 22, 2010 5:05 am
Forum: PHP - Code
Topic: Using a table's ID to pull up a page
Replies: 4
Views: 656

Re: Using a table's ID to pull up a page

you can get the id using get method $id = $_GET['id]; and the query should be like this $sql = "select * my table_name where id='$id'"; $result = mysql_query($sql) or die ("Error in selection"); $result1 = $result['field1]; $result2 = $result['field2]; print the fields like this ...
by thamizh
Thu Apr 22, 2010 4:49 am
Forum: PHP - Code
Topic: Plaincart Order Status
Replies: 0
Views: 304

Plaincart Order Status

Am Customizing the plaincart source code all works fine :) but when am checking out for paypal transaction and completing the payment part the order status remains in the initial stage itself ie the status of the order is "new" and not updated as "Paid" , i checked the code too b...
by thamizh
Thu Apr 22, 2010 12:21 am
Forum: PHP - Code
Topic: PHP Searching Multiple Fields
Replies: 2
Views: 226

Re: PHP Searching Multiple Fields

for more than one field search result you can go for full text search in mysql
for further details
u can refer this webiste
http://dev.mysql.com/doc/refman/5.1/en/ ... earch.html
hope this helps u :)
by thamizh
Wed Apr 21, 2010 2:28 am
Forum: PHP - Code
Topic: Cannot send session cookie - headers alread
Replies: 7
Views: 1480

Re: Cannot send session cookie - headers alread

got the result :)
There is a whitespace before the <?php
so the warning comes
sortted out :)
thanks for your help tasairis :)
by thamizh
Wed Apr 21, 2010 12:52 am
Forum: PHP - Code
Topic: Cannot send session cookie - headers alread
Replies: 7
Views: 1480

Re: Cannot send session cookie - headers alread

<?php
session_start();
$dbHost = 'localhost';

this is first two lines of the code
by thamizh
Wed Apr 21, 2010 12:23 am
Forum: PHP - Code
Topic: Cannot send session cookie - headers alread
Replies: 7
Views: 1480

Cannot send session cookie - headers alread

warning : session_start() [function.session-start]: Cannot send session cookie - headers already sent by

After googling i found that i should remove any white spaces before the session_start()
i did that too
but am getting above mentioned warning
y i dont know :(
anyone pls help me
by thamizh
Tue Apr 20, 2010 8:41 am
Forum: Javascript
Topic: Control over Multiple Group Checkbox in a form
Replies: 2
Views: 774

Re: Control over Multiple Group Checkbox in a form

yes changed all the checkboxes to radio buttons
now i got the desired result thanks a lot :)
by thamizh
Mon Apr 19, 2010 5:41 am
Forum: Javascript
Topic: Control over Multiple Group Checkbox in a form
Replies: 2
Views: 774

Control over Multiple Group Checkbox in a form

<script language="javascript"> function boxchk1(obj,max) { var box = obj.name.substr(0,obj.name.lastIndexOf('_')+1); var cnt=0,i=1; while(obj.form[box+i]) { cnt += obj.form[box+i].checked;i++; } if (cnt > max) { obj.checked = false; alert('Only choose ' + max + ' '+box.substr(0,box.length-...
by thamizh
Thu Apr 15, 2010 1:11 am
Forum: PHP - Code
Topic: Gridview in PHP
Replies: 4
Views: 514

Re: Gridview in PHP

i want to display the users and their question from a table(mysql sql db) to the grid view
so the admin can edit the question, delete the question from the front view (UI) using the php code