[PHP] Templates & PHP

2001-02-22 Thread Maamiin

Where can I find some help, how to make & use page templates on my
webpages??? Needs this some add-ons to my PHP3(Linux-main)/PHP4(win98+pws)?

THNX


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie algorithm help!!!!!

2001-06-23 Thread Maamiin

I use this code to do this kind stuff:
- BEGIN ---
$result=mysql_query(...);
$columns=2; //Count of columns

$table="\n";
$table.='';

$col=0; //current column

//Draw table content
while ($row=mysql_fetch_row($result)){
$table.=''.$row[0].'';
$col++;
if ($col>=$columns) { $table.="\n"; $col=0;} // Next row
}

//Correct last row, add or remove empty cells.
if ($col) {
$table.=str_repeat(' ',$columns-$col); //Add empty cells
}else{
$table=substr($table,0,strlen($table)-10); //Remove empty row
}
$table.="\n";
$table.='';

echo $table;

- END ---

X


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] require() ???

2001-02-16 Thread Maamiin

How can I use this function to load files from subfolders?
when i try this on apache (Linux+PHP3)

require('cls/mysql.cl.php3');

from log I can read then:

[error] PHP3 Fatal error: Failed opening required 'cls/mysql.cl.php3' in
'index.php3' on line 6

I already tried full-path, but nothing! Only when i copied file in to same
folder, then it works! But I dont want do this!

Any other ideas are welcome!


R.K.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] require() ???

2001-02-16 Thread Maamiin

main script:
/home/www/public_html/YL/index.php3 (rw-rw-rw-) root 
and second script:
/home/www/public_html/YL/cls/mysql.cl.php3  (rw-rw-rw-) root

First page intranet web-address is http://MyServer/www/YL/index.php3

Thnx

|| -Original Message-
|| From: Brandon Orther [mailto:[EMAIL PROTECTED]]
|| Sent: Friday, February 16, 2001 8:30 PM
|| To: PHP User Group
|| Subject: RE: [PHP] require() ???
|| 
|| 
|| Hello,
|| 
|| Can you give me the full path to where the php script is and the 
|| full path
|| to where the script is you want require('');
|| 
|| I use this all the time and should be able to figure it out.
|| 
|| Thank you,
|| 
|| 
|| Brandon Orther
|| WebIntellects Design/Development Manager
|| [EMAIL PROTECTED]
|| 800-994-6364
|| www.webintellects.com
|| 
|| 
|| -Original Message-
|| From: Maamiin [mailto:[EMAIL PROTECTED]]
|| Sent: Friday, February 16, 2001 9:38 AM
|| To: PHP General Newslist
|| Subject: [PHP] require() ???
|| 
|| 
|| How can I use this function to load files from subfolders?
|| when i try this on apache (Linux+PHP3)
|| 
|| require('cls/mysql.cl.php3');
|| 
|| from log I can read then:
|| 
|| [error] PHP3 Fatal error: Failed opening required 'cls/mysql.cl.php3' in
|| 'index.php3' on line 6
|| 
|| I already tried full-path, but nothing! Only when i copied file 
|| in to same
|| folder, then it works! But I dont want do this!
|| 
|| Any other ideas are welcome!
|| 
|| 
|| R.K.
|| 
|| 
|| --
|| PHP General Mailing List (http://www.php.net/)
|| To unsubscribe, e-mail: [EMAIL PROTECTED]
|| For additional commands, e-mail: [EMAIL PROTECTED]
|| To contact the list administrators, e-mail: [EMAIL PROTECTED]
|| 
|| 
|| -- 
|| PHP General Mailing List (http://www.php.net/)
|| To unsubscribe, e-mail: [EMAIL PROTECTED]
|| For additional commands, e-mail: [EMAIL PROTECTED]
|| To contact the list administrators, e-mail: [EMAIL PROTECTED]
|| 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]