[PHP] Security Issue

2007-09-04 Thread Karl-Heinz Schulz
It was able to call up external includes using the below code which resulted that the server was used to send out spam. How can I protect the code? TIA ?php session_start(); //-- - // index.php

[PHP] Query Question

2004-08-11 Thread Karl-Heinz Schulz
Why does this query not work? It should only show the eventdetails for the shown event. - ?php $event = mysql_query(select id, information from event where id=.$id); ? ?php

RE: [PHP] Query Question

2004-08-11 Thread Karl-Heinz Schulz
I found my problem. $eventdetail_query = mysql_query(select DISTINCT titles, informations, file_name from eventdetail, event where eventdetail.event = .$id); -Original Message- From: Karl-Heinz Schulz [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:13 PM To: 'Jason

[PHP] Order by

2004-08-03 Thread Karl-Heinz Schulz
How can I use the Order statement for this query? $specs_query = mysql_query(select title, information from spec where product=.$id); I tried to use $specs_query = mysql_query(select title, information from spec where product=.$id order by id asc); But it will create the error. Parse error:

RE: [PHP] Order by

2004-08-03 Thread Karl-Heinz Schulz
Thank you - stupid me -Original Message- From: Wesley Furgiuele [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 10:27 PM To: Karl-Heinz Schulz Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Order by Looks like you just forgot some quotes: $specs_query = mysql_query( select title

RE: [PHP] Order by

2004-08-03 Thread Karl-Heinz Schulz
Thank you for your help! -Original Message- From: Jim Grill [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 10:33 PM To: Karl-Heinz Schulz; [EMAIL PROTECTED] Subject: Re: [PHP] Order by - Original Message - From: Karl-Heinz Schulz [EMAIL PROTECTED] To: [EMAIL PROTECTED

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
;font-size:12px;\.html_decode($eventdetails[2])./spanp); } ? /code But it generates now for the second query the is not a valid MySql result error. TIA -Original Message- From: zareef ahmed [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 11:57 PM To: Karl-Heinz Schulz; [EMAIL

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] How to nest information from different tables. Karl-Heinz Schulz wrote: snip $eventdetails_query = mysql_query(select details, information, file_name from eventdetails where event.id = eventdetails.event_id); /snip What is 'eventdetails.event_id

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
different tables. You have forgotten one table in your second query, try this : $eventdetails_query = mysql_query(select details, information, file_name from event, eventdetails where event.id = eventdetails.event_id); Karl-Heinz Schulz wrote: Thank you for the information but I still have some

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
, July 30, 2004 9:52 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] How to nest information from different tables. Karl-Heinz Schulz wrote: Thank you, I made one error - I forgot the second table (Thank you Jeremy) It didn't like the field information in the eventdetails table - it worked

[PHP] How to nest information from different tables.

2004-07-29 Thread Karl-Heinz Schulz
I have two tables with relevant information's; Table1 - event Table 2 - eventdetails I'm trying to list all events in table one plus to show for each event whatever documents are available (file_name, information) My code to list all events from the event table is: code ?php

[PHP] Java Script or PHP

2004-07-28 Thread Karl-Heinz Schulz
I have a database generated page and I want to show a Print Version in a new window when somebody selects the print option. http://www.test.com/docs/view_record.php?id=1 http://www.test.com/docs/print_record.php?id=1 What is the correct way to open the page from the print link to a new page?

RE: [PHP] Java Script or PHP

2004-07-28 Thread Karl-Heinz Schulz
PM To: Karl-Heinz Schulz; [EMAIL PROTECTED] Subject: Re: [PHP] Java Script or PHP --- Karl-Heinz Schulz [EMAIL PROTECTED] wrote: I have a database generated page and I want to show a Print Version in a new window when somebody selects the print option. http://www.test.com/docs

RE: [PHP] Java Script or PHP

2004-07-28 Thread Karl-Heinz Schulz
Thank you for your help. -Original Message- From: zareef ahmed [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 11:25 PM To: Karl-Heinz Schulz Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Java Script or PHP --- Karl-Heinz Schulz [EMAIL PROTECTED] wrote: Zareef, Thank you

[PHP] PHP - mySQL query question

2004-07-25 Thread Karl-Heinz Schulz
I have a simple question (not for me). Why does this query does not work? $links_query = mysql_query(select id, inserted, title, information, international from links WHERE international = y; order by inserted desc LIMIT 0 , 30); The information for the international fields are: Field:

[PHP] echo and html_decode

2004-07-21 Thread Karl-Heinz Schulz
I'm trying to use html_decode with the echo function but failed so far. ? echo mysql_result($product, 0,1) ? What would be the correct syntax? TIA Tracking #: 2F5B92054B5DBF4C990F63F9BA3F99A0558671EB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Firefox - IE differences

2004-07-21 Thread Karl-Heinz Schulz
The following codes open the links perfect. print($press[1]. a target=_blank href=..\PDF/$press[3] class=\press_links\.strip_tags(html_decode($press[2]))./abr); When I open it in Firefox it will try to open the following link instead. When I will remove ..\ it will try to open the following link