Re: [PHP-DB] php-db@lists.php.net is currently protecting themselves from receiving junk mail using Spamcease Just this once, click the link below so I can receive your emails.
I got this for the PHP-General list. I think it's bogus but it would be nice to get a confirmation from the list admin. ck -- Cheap Domain Registration | Web Hosting | Email Packages | + more Fantastic prices -- Even better service. http://www.hosttohost.net Pablo M. Rivas [EMAIL PROTECTED] on 8/4/04 9:57 AM wrote: Hello Josh, JAM What is this? JAM I received this E-Mail, and the link goes to something other than PHP.net JAM [EMAIL PROTECTED] is currently protecting themselves from receiving junk JAM mail using Spamcease Just this once, click the link below so I can receive JAM your emails. JAM You won't have to do this again. CLICK THE LINK SO HE CAN RECEIVE YOUR MAIL, and you won't have to do this again ;) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Variables not working within Functions
Or pass the variable $username as an argument into your function: function LoginSystem($username) { // your function code } LoginSystem($username); ck -- Cheap Domain Registration | Web Hosting | Email Packages | + more Fantastic prices -- Even better service. http://www.hosttohost.net Chris Wanstrath [EMAIL PROTECTED] on 10/15/03 7:57 PM wrote: You are using a variable outside of the function's scope. In the function, do this: global $username; Visit www.php.net/man to get a better understanding of globals and scope. On Wed, 2003-10-15 at 22:10, Adam Symonds wrote: Hi, I am starting to us functions with my work but I am having troubles With the variables in the functions.. If I have the following function called from my page it will work but the variable wont ($username) but if I put this code straight on the page then it works fine.. Any reason for the variable not to work in the function but in straight coding? Thanx Sample Function Below: == function LoginSystem() { echo div align=right; if ( !isset( $_SESSION['login'] ) ) { echo form action=../Users/Login.php method=post; echo font size=1Username: /fontinput name=user type=text size=10nbsp;font size=1Password: /fontinput name=pass type=password size=10nbsp;input type=submit value=GObr; echo a href=../Register.phpfont size=1Not A Member Yet?/font/font/anbsp;; echo /form; } else { echo font size=1Welcome $username nbsp;nbsp;nbsp;a href=../Users/Logout.phpfont size=1Logout/anbsp;nbsp;nbsp;/font/fontbrbr; } echo /div; } -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] What are your DB driven/template strategies?
Thanks Daniel, Alexey and Colbey. I will look into all your suggestions. The custom 404 error page to redirect would definitely be easier to implement than my manual redirect suggestion earlier as I would still have to type out each URL in the .htaccess file. I have not worked with mod_rewrites before and have not even seen the prepend_file setting in the php.ini file so I will be researching these solutions as well. The other idea I had was to take my *very* limited cms and add the capability to automatically create the directory with the initialzation PHP file in it each time you want to create a new web page. It wouldn't be too difficult. But now I have other solutions to choose from. Thanks all you for your thoughts and insights, it is appreciated. ck -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] What are your DB driven/template strategies?
I, like many here, have created a database driven/template systems using PHP and the database engine of your choice. However, I am still stuck with having to create directories on the server for every page on the website with the same initialization PHP file that kicks off the whole process. I'm getting kind of tired of this, though not in a major way. Still I am wondering if there are other more elegant alternatives. I have tried searching this and other list archives, as well as googled around, but all I get are tutorials on how to develop basic db driven sites. The only alternative I came up with is to use .htaccess to redirect to my single initialization PHP file, but I am not sure if this is a good technique and of course it will only work on Apache. What are your thoughts? TIA, Colin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Is ****_fetch_row the fastest way to do this?
I am using odbc_fetch_row to loop through a SQL select search result row by row. Is this the fastest way to collect the data from the database search result? Is there no way to collect all the data into an array without looping through the search result row by row? Sorry for the newbie question. TIA, ck -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php