[PHP] dynamic list/menu in php

2004-01-15 Thread E. Ricardo Santos
I have a php page to update records of a table.



There are two fields that are used to relate to other tables reason why they
are like list/menu.



The problem is that these select must show the list to me of elements of
the table that contains the data but the selected value must update the
table for which I am created the update form. Example:



Persons (id_person, id_country, id_city, name, last_name)



Country (id_country, country)



City (id_city, City)



Therefore in the update page they are to the fields of the Persons table:



 input type=text name = id_person  value=?php I throw $$row_ persons
[ ' id_person ' ];   

 input type=text name = name value=?php I throw $$row_ persons [ '
name ' ];   



Etc.



Now the instruction select must be declared of the following form:



select name=id_country

?php

do {

?

option value=?= $row_ country ['id_ country ']? ?php if
(!(strcmp($row_ country ['id_ country '], $row_persons['id_ country '])))
{echo SELECTED;} ??= $row_ country [' country ']?/option

?php

} while ($row_ country = mysql_fetch_assoc($country));

?

/select



this works perfectly. Where:



?php if (!(strcmp($row_ country ['id_ country '], $row_persons['id_
country ']))) {echo SELECTED;} ?



it is the sentence that verifies if the Persons  table has an equal value to
the registry of select. The same select for the case of the field would
happen to create another one id_city. Then; when I create select dynamic
for the field id_city, the servant shows an error to me where he says:
(the servant cannot use another behavior of servant. already there is a
behavior of used servant) and the page in target remains.



If exempt the sentence: ?php if (!(strcmp($row_ country ['id_ country '],
$row_persons['id_ country ']))) {echo SELECTED;} ?  From select, one
becomes to show page, but clear that then it does not show the value to me
that has the Persons  table  in those specific fields, but that are the list
simply.



Somebody knows because it does not allow me to have but of a dynamic
list/menu in a page?



I hope to me to have explained more clearly possible so that they can give
some aid me





Greetings



Sorry, my English is poor, very.

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



[PHP] php dinamic list/menu

2004-01-15 Thread E. Ricardo Santos
I have a php page to update records of a table.



There are two fields that are used to relate to other tables reason why they
are like list/menu.



The problem is that these select must show the list to me of elements of
the table that contains the data but the selected value must update the
table for which I am created the update form. Example:



Persons (id_person, id_country, id_city, name, last_name)



Country (id_country, country)



City (id_city, City)



Therefore in the update page they are to the fields of the Persons table:



 input type=text name = id_person  value=?php I throw $$row_ persons
[ ' id_person ' ];   

 input type=text name = name value=?php I throw $$row_ persons [ '
name ' ];   



Etc.



Now the instruction select must be declared of the following form:



select name=id_country

?php

do {

?

option value=?= $row_ country ['id_ country ']? ?php if
(!(strcmp($row_ country ['id_ country '], $row_persons['id_ country '])))
{echo SELECTED;} ??= $row_ country [' country ']?/option

?php

} while ($row_ country = mysql_fetch_assoc($country));

?

/select



this works perfectly. Where:



?php if (!(strcmp($row_ country ['id_ country '], $row_persons['id_
country ']))) {echo SELECTED;} ?



it is the sentence that verifies if the Persons  table has an equal value to
the registry of select. The same select for the case of the field would
happen to create another one id_city. Then; when I create select dynamic
for the field id_city, the server shows an error to me where he says: (the
server cannot use another behavior of server. already there is a behavior of
used servant) and the page in target remains.



If exempt the sentence: ?php if (!(strcmp($row_ country ['id_ country '],
$row_persons['id_ country ']))) {echo SELECTED;} ?  From select, one
becomes to show page, but clear that then it does not show the value to me
that has the Persons  table  in those specific fields, but that are the list
simply.



Somebody knows because it does not allow me to have but of a dynamic
list/menu in a page?



I hope to me to have explained more clearly possible so that they can give
some aid me





Greetings



Sorry, my English is poor, very.

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



[PHP] Re: dynamic list/menu in php

2004-01-15 Thread E. Ricardo Santos
thanks you very much

-- 


-
Are you still wasting your time with spam?...
There is a solution!

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com


Justin Patrin [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 I didn't really understand most of what you said (your English is really
 confusing), but you might want to check out DB_DataObject_FormBuilder.
 It will create forms for editing of DB records with select boxes for
 foreign keys. There are also lots of new options in the newest CVS
 version which isn't realeased yet.

 http://pear.php.net/DB_DataObject_FormBuilder
 --
 Question Everything, Reject Nothing

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



[PHP] i can't show two dinamic lit/menu

2004-01-15 Thread E. Ricardo Santos
i can't show two dinamic list/menu per page. the server say: too many server
behaviors

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



[PHP] Php Windows server

2003-12-19 Thread E. Ricardo Santos
Somebody could say to me if something special exists to form for the
treatment of the sessions in a Php Windows server?



I have   a code  that works perfectly in Apache, nevertheless, when
executing it  in a Windows server the sessions do not activate.





 I am using php 4.3.3 like ISAPI. There is something I must define in
php.ini?


Thanks

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



[PHP] server behavior menu/list in windows server

2003-12-19 Thread E. Ricardo Santos
I have a dynamic table to update registries.



In this table there are fields to relate to other tables.Therefore, I create
select to show them.



These behaviors of server, perfectly work in the servant apache but in the
one of Windows, simply n shows nothing to me in the pagina.



When exempt of the dynamic table select I can see the data correctly.



It has this something that to see with php.ini?



thanks

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



[PHP] HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
Good, I follow with Windows ISAPI PHP Server:

Now the IIS, in the card:  ISAPI FILTERS  show me php  with arrow
red and downwards. It says NOT LOADED.

Somebody knows so that this can happen?

The archives and declarations is correct, just as route a
phpîsapi.dll. I have returned to form the IIS as it were previously and
profit not to solve the dilemma

Some commentary?



Thanks

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



[PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
php.ini in system32 too?



Astron Of Bronx [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hi, here is the steps,

 1 . Copy all php_*.dll from extentions dir to c:\windows\system32
 2 . Copy phpîsapi.dll to c:\windows\system32
 3 . Copy php4ts.dll to c:\windows\system32
 4 . Copy php.ini to c:\windows\system32
 5. go ISAPI Filters and add .php (c:\windows\system32\phpisapi.dll)
 6. go Application Configuration select Mappings tab and add new extentions
 mapping .php (c:\windows\system32\phpisapi.dll)
 7. restart IIS

 I hope you will understand.


 E. Ricardo Santos [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Good, I follow with Windows ISAPI PHP Server:
 
  Now the IIS, in the card:  ISAPI FILTERS  show me php  with arrow
  red and downwards. It says NOT LOADED.
 
  Somebody knows so that this can happen?
 
  The archives and declarations is correct, just as route a
  phpîsapi.dll. I have returned to form the IIS as it were previously
and
  profit not to solve the dilemma
 
  Some commentary?
 
 
 
  Thanks

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



[PHP] html or php to pdf whith pdflib?

2003-12-19 Thread E. Ricardo Santos
Hello, somebody knows like turning a file HTML or php to pdf by means of
pdflib but without having to write  line  to  line?



that is, a file already existing php or HTML, can be turned with pdflib?



This  I ask it because to where it studies pdflib, exit pdf is due to write
line  by  line  and coordinate by coordinate. A pdf  already  created can
also be mattered and to combine it with the new exit. But what  I did not
find  he is all this is the particularitity that I raise.



I hope  has explained to me correctly

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