Search found 53 matches

by shiranwas
Sat Aug 19, 2006 1:39 am
Forum: PHP - Code
Topic: string error
Replies: 2
Views: 252

string error

hi,, what is the problam in this code, after i put the code for onClick event this gives me a error can anyone help me $body=""; $body.= "<td height='5' ><input name='optSelected' type='radio' value='$count.$rows[1].' onclick='document.getElementById('result').innerHTML=this.value;' >...
by shiranwas
Thu Aug 17, 2006 5:52 am
Forum: PHP - Code
Topic: Warning: Cannot send session cache limiter - headers already
Replies: 7
Views: 756

this is the whole page which includes the page assing.php <?php if ($_POST['cmdOK']=="SAVE"){ include('Conn.php'); $department=$_POST['cboDept']; $departmentid=""; //echo $department; //--------------finding dept id ----------------------------------------- $sql="select dept...
by shiranwas
Thu Aug 17, 2006 5:43 am
Forum: PHP - Code
Topic: Warning: Cannot send session cache limiter - headers already
Replies: 7
Views: 756

yes i am sure, and its works when it first appears but when i click on a submit button and include(assign.php) only problam occures
by shiranwas
Thu Aug 17, 2006 5:37 am
Forum: PHP - Code
Topic: Warning: Cannot send session cache limiter - headers already
Replies: 7
Views: 756

Warning: Cannot send session cache limiter - headers already

hi, i got the above warning and i am clue less. i have page called assign.php i have put the following coding on the top of the page before anything else <?php session_start("mertek"); ?> in the same page there is a submit button when i click it after quering the database it will redirect ...
by shiranwas
Thu Aug 17, 2006 5:05 am
Forum: Databases
Topic: number of records per page
Replies: 7
Views: 1023

Oren,

i am very sorry i did not see your answer before i send earlier meaasage
what you sent is correct and working as the way i want.

thank you
by shiranwas
Thu Aug 17, 2006 4:41 am
Forum: Databases
Topic: number of records per page
Replies: 7
Views: 1023

hi,
yes i did that but the thing is when i go to the next page i put limit 10 offset 10, and how do i go to previous

first page

select * from tblComplaints limit 10;

second and 3 ......

select * from tblComplaints limit 10 offset 10;

but how to go back to from 2nd page to first page
by shiranwas
Thu Aug 17, 2006 4:26 am
Forum: Databases
Topic: number of records per page
Replies: 7
Views: 1023

number of records per page

hi,

I am having a problam with my displaying the records. i.e when i query a table it gives me all the records that matches my criterias but i want to show only 10 records in first pager and so on how to do this
please help me

shiran
by shiranwas
Thu Aug 17, 2006 1:23 am
Forum: PHP - Code
Topic: session not working
Replies: 7
Views: 496

i assign values in first page loginto.php, but not in the page director.php <?php // connecting to the database include("Conn.php"); $selected=mysql_select_db("complaints") or die("Could not connect to DB"); //____________________________________________________________...
by shiranwas
Thu Aug 17, 2006 12:40 am
Forum: PHP - Code
Topic: session not working
Replies: 7
Views: 496

hi,

i put the session start on the top and tried with your code then it returns(printed)

Array ( [userid] => [userlevel] => [deptid] => [subdept] => ) >


i think it still not carring values for the session variable.
what is the problam.


thanks

shiran
by shiranwas
Thu Aug 17, 2006 12:20 am
Forum: PHP - Code
Topic: session not working
Replies: 7
Views: 496

session not working

i have page called loginto.php start session on the top of the page before anythig as follows <?php if (!isset($_SESSION['userlevel'])){ session_start("mertek"); $_SESSION['userid'] = ''; $_SESSION['userlevel'] = ''; $_SESSION['deptid'] = ''; $_SESSION['subdept'] = ''; } ?> and when the us...
by shiranwas
Wed Aug 16, 2006 7:30 am
Forum: PHP - Code
Topic: error $_POST[]
Replies: 4
Views: 490

thank you very much for the kind help and appreciate it

thanks again
by shiranwas
Wed Aug 16, 2006 5:28 am
Forum: PHP - Code
Topic: error $_POST[]
Replies: 4
Views: 490

please tell me how to include a dynamically creating table between the form tags where submit button is in.


thanks
by shiranwas
Wed Aug 16, 2006 4:52 am
Forum: PHP - Code
Topic: error $_POST[]
Replies: 4
Views: 490

error $_POST[]

hi, i have a table which is populated with data in a table in PHP tags the first column creates ratio buttons with the value assign from the table field, my problam is when iclik the submit button all the value in the <form> tag can be retrieved but not the value of the radio button using $jobno=$_P...
by shiranwas
Wed Aug 16, 2006 12:31 am
Forum: PHP - Code
Topic: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_
Replies: 7
Views: 415

thanks alot for your help
its woked and could send me some tutorial or links about using '' ""


thanbks again
by shiranwas
Wed Aug 16, 2006 12:07 am
Forum: PHP - Code
Topic: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_
Replies: 7
Views: 415

i was able to correct the parse error , there was a ; missing but yet the value of $a won't print can u help me please. $_SESSION['userlevel'] =$row[levelid]; $a=$_SESSION['userlevel']; echo $a; //this print the value of the $a //but this part not working echo ' <input type="text" name=&qu...