[PHP-DB] why is it so?

2004-12-30 Thread Nayyar Ahmed
Hello All,
I am unable to understand when I execute etc.php, 
it give me the error
Warning: session_start(): Cannot send session cache limiter - headers
already sent .

can you solve this leral ?

TIA

-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Trigering PHP Code

2004-12-29 Thread Nayyar Ahmed
Hello All,
I have two problem in my php file i.e.

1. I want to triger some php code, soon  after when a selection 
is done from Drop Down Menu, 
For Example:
When user select country name the State,city menu fill dynamically.

2. I want to use a variable value gathered in one php file to some any
other php file

For Example:
When user enter his/her name , I will use in later processing in by
some other php file.

I hope, I have explained my problem:

TIA,

Regards,

-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] [ Re: [PHP-DB] Filling Drop-Down Box.]

2004-12-28 Thread Nayyar Ahmed
Hello Alex:

It is really helpfull, :)

thanks for your detailed reply

regards,

On Sat, 25 Dec 2004 23:57:51 +0200, Alexandru Mihai [EMAIL PROTECTED] wrote:
 SELECT name=student title=Student list
 
OPTION value=---/OPTION
 ?PHP
while ($row = mysql_fetch_array($result)) {
 ?
OPTION value=?php echo $row[3]? title=Select student ?php
 echo $row[1], , $row[2]? ?php echo $row[3]?/OPTION
 ?php
 }
 ?
/SELECT
 In this case I've assumed that you'll have in mysql the following table:
 row0: id (autoincrement)
 row1: Nick name
 row2: First name
 row3: Last name
 
 You can modify the code as you wish to get what you need.
 
 Alexandru Mihai
 
 
 Bastien Koert wrote:
 
  i suggest you google for this...there are a million examples of this
  kind of code
 
  bastien
 
  From: Nayyar Ahmed [EMAIL PROTECTED]
  Reply-To: Nayyar Ahmed [EMAIL PROTECTED]
  To: php-db@lists.php.net
  Subject: [PHP-DB] Filling Drop-Down Box.
  Date: Sat, 25 Dec 2004 20:18:05 +0500
 
  Hello All,
 
  I want to fill drop-down box from mysql table, if any body
  be kind to tell me a sample code :)
  e.g:
  In my application i want to gather subject list from current
  semester-subject table of a student.
 
  TIA
  --
  Nayyar Ahmad
 
  Lecturer
  Faculty Of Computer Science,
  Institute Of Management Sciences,
  Hayat Abad Peshawar , Pakistan.
  Office : 92-091-9217404 , 9217452
  Cell :  92-0333-9139461
 
  --
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Filling Drop-Down Box.

2004-12-25 Thread Nayyar Ahmed
Hello All,

I want to fill drop-down box from mysql table, if any body
be kind to tell me a sample code :)
e.g:
In my application i want to gather subject list from current 
semester-subject table of a student. 

TIA
-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] help newbies :)

2004-12-23 Thread Nayyar Ahmed
Hello All,

I am developing attendence mangement system, its my first application
in PHP, I want to compaire the input text box value with table records
the follwing is the code


_index.htm___
..
  form name = 'loginfrm' method = post action = index.php   

  pre /td

  /tr

  tr

td width=100% height=115html




body




div style=mso-border-alt: solid #FF .75pt; width: 675; height:
234; border: 1.0pt solid #FF; padding: 6.0pt; background:
#FF

  table border=0 cellpadding=0 cellspacing=0
style=border-collapse: collapse bordercolor=#11 width=100%
id=AutoNumber2

tr

  td width=25%font size=4User Name:/font/td

  td width=25%

  

  pinput name = uname type = text size=20/p

  /td

  td width=25%font size=4nbsp;nbsp;nbsp;nbsp; Class:/font/td

  td width=25% select name= class

 option value = BBA BBA/option

 option value = BBA-IT 
BBA-IT/option

 option value = BCS BCS/option

 option value = B.Sc B.Sc/option

 option value = MBA MBA/option

 option value = MBA-IT 
MBA-IT/option

 option value = MS-IT MS-IT/option

 option value = MS-CS MS-CS/option

 option value = Admin Admin/option

/select /td

   

  td width=25%font size=4Password:/font/td

  td width=25%input name =passwd type = password size=20 /td

etc. etc. ...
_

_index.php_

?php

$db= mysql_connect(localhost,root,masood);
mysql_select_db(attendence,$db);

 $result= mysql_query(select uname,upasswd from user,$db);
while ($myrow = mysql_fetch_array($result))
{
 if(($uname == $myrow[uname])  ($upasswd == $myrow[uname]));
{   
echo $myrow[uname];
echo $myrow[upasswd];
}
}
?
/body
/html

this give me error no 13, with uname,upasswd undefined, please help me out,
TIA




-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] help newbies :)

2004-12-23 Thread Nayyar Ahmed
On Thu, 23 Dec 2004 10:57:55 -0500, Bastien Koert [EMAIL PROTECTED] wrote:
 you have a mysql account with that particular user identification?
yes this connections works well when i query table user, in specified db.

 
 bastien
 
 From: Nayyar Ahmed [EMAIL PROTECTED]
 Reply-To: Nayyar Ahmed [EMAIL PROTECTED]
 To: php-db@lists.php.net
 Subject: [PHP-DB] help newbies :)
 Date: Thu, 23 Dec 2004 20:54:23 +0500
 
 Hello All,
 
 I am developing attendence mangement system, its my first application
 in PHP, I want to compaire the input text box value with table records
 the follwing is the code
 
 
 _index.htm___
 ..
form name = 'loginfrm' method = post action = index.php 
 
pre   /td
 
/tr
 
tr
 
  td width=100% height=115html
 
 
 
 
 body
 
 
 
 
 div style=mso-border-alt: solid #FF .75pt; width: 675; height:
 234; border: 1.0pt solid #FF; padding: 6.0pt; background:
 #FF
 
table border=0 cellpadding=0 cellspacing=0
 style=border-collapse: collapse bordercolor=#11 width=100%
 id=AutoNumber2
 
  tr
 
td width=25%font size=4User Name:/font/td
 
td width=25%
 
 
 
pinput name = uname type = text size=20/p
 
/td
 
td width=25%font size=4
 Class:/font/td
 
td width=25% select name= class
 
 option value = BBA 
  BBA/option
 
 option value = BBA-IT 
  BBA-IT/option
 
 option value = BCS 
  BCS/option
 
 option value = B.Sc 
  B.Sc/option
 
 option value = MBA 
  MBA/option
 
 option value = MBA-IT 
  MBA-IT/option
 
 option value = MS-IT 
  MS-IT/option
 
 option value = MS-CS 
  MS-CS/option
 
 option value = Admin 
  Admin/option
 
/select /td
 
 
 
td width=25%font size=4Password:/font/td
 
td width=25%input name =passwd type = password size=20
 /td
 
 etc. etc. ...
 _
 
 _index.php_
 
 ?php
 
 $db= mysql_connect(localhost,root,masood);
 mysql_select_db(attendence,$db);
 
 $result= mysql_query(select uname,upasswd from user,$db);
while ($myrow = mysql_fetch_array($result))
{
 if(($uname == $myrow[uname])  ($upasswd == $myrow[uname]));
{
echo $myrow[uname];
echo $myrow[upasswd];
}
}
 ?
 /body
 /html
 
 this give me error no 13, with uname,upasswd undefined, please help me out,
 TIA
 
 
 
 
 --
 Nayyar Ahmad
 
 Lecturer
 Faculty Of Computer Science,
 Institute Of Management Sciences,
 Hayat Abad Peshawar , Pakistan.
 Office : 92-091-9217404 , 9217452
 Cell :  92-0333-9139461
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Do you know about my lost php-mysql manual.

2004-12-23 Thread Nayyar Ahmed
Hello All,

when I was in university 4 years back , one of my teacher have given me
a php-mysql manual which was focused on a Jock's site development, 
unfortunatly I have lost it, but I am unable to find where I can get that
online copy. 

-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Do you know about my lost php-mysql manual.

2004-12-23 Thread Nayyar Ahmed
On Thu, 23 Dec 2004 17:30:29 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
 Nayyar Ahmed wrote:
  Hello All,
 
  when I was in university 4 years back , one of my teacher have given me
 
 a php-mysql manual from 4 years back will probably be about as relevant
 as a knife in a gun fight (i.e. not very - out of date documentation is
 garanteed to cause headaches due to changes in functionality/API etc etc)
 
  a php-mysql manual which was focused on a Jock's site development,
 
 what is a Jock?
 
  unfortunatly I have lost it, but I am unable to find where I can get that
  online copy.
 
 
 the following are the best places to start:
 
 http://www.php.net/manual/en/ref.mysql.php
 http://www.php.net/manual/en/ref.mysqli.php
 http://dev.mysql.com/doc/mysql/en/index.html
thanks jochem: 
it would really help me to find my ways in php, I appriciate your quick response

cheers
 
 following that there is always google... there are a few pages here and
 there discussing/explaining mysql/php usage ;-)
 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Re: PHP Crystal Report

2004-12-21 Thread Nayyar Ahmed
On Tue, 21 Dec 2004 16:04:12 +0200, Bogomil Shopov [EMAIL PROTECTED] wrote:
 Hello
 did you try using COM objects? I think that is fully possible.
Hello,

Is there any tool for Pro-Linux developers, So that I can develope 
reports like Crystal-Report. As my network has both Linux and Windows
machines so it is supposed to work on both?

TIA 

 
 Regards
 Bogomil Shopov
 http://purplerain.org
 
 Ng Hwee Hwee wrote:
  Hi all,
 
  can someone kindly direct me to resources on generating reports using 
  Crystal Report 10 through PHP 4.3.4 and MySQL 4.0.22 database?
 
  thank you.
 
  best regards,
  hwee
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php