Re: [PHP] alter table name with php and mysql

2001-04-26 Thread Kevin A Williams
Hi, check you've got a D/B connection, then use this, with the appropriate names in the variables, or use the explicit table names if you wish. If an error spews up, most likely the table name your trying to rename it to already exists. $sql = "RENAME TABLE $present_table_name TO $new_table_name

Re: [PHP] NEWBIE Mail()

2001-04-26 Thread Kevin A Williams
Hi, PHP has handling of MIME types and good support for handling any type of file. First off, check the syntax at http://www.php.net/manual/en/function.mail.php Then you need to set your mail_headers, and the MIME-version must come before other MIME headers. Hope this helps - Original Mes

Re: [PHP] Can Variables be in functions?

2001-04-21 Thread Kevin A Williams
Classic Global function definition problem inside the function, insert the line global $footercontent; Also technically, the exit command can be quite messy, a 'cleaner' method would be to use something like function generate_footer() { ?> Hope this helps Kevin Williams - Original

Re: [PHP] Drag and drop

2001-04-21 Thread Kevin A Williams
Hi, Whilst you cant use PHP to implement Drag and Drop (PHP is server side, hence once compiled, its done its job), you can implement DHTML (Javascript, CSS & DOM) to attain this effect. So called DHTML handles all client-side (browser) manipulation, and through DOM allows you to manipulate prett

[PHP] Site Searchable function

2001-04-19 Thread Kevin A Williams
Hi, I was wondering whether anyone could direct me in the direction of creating a search function like the one on php.net? I have tried looking rather fruitlessly to implement a system, would one possible implementation be to use reference files for the information and then use string matchin