RE: [PHP] not null

2001-08-08 Thread Slavomir Slizik
if (empty($value)) { ... } On Wed, 1 Aug 2001, Craig Vincent wrote: > > > When a field is declared as an integer, not null and is the primary, > > how would I address it's empty set? > > > > ex: if($value == ???) > > { > > bla > > bla > > bla > > } >

Re: [PHP] 2D array

2001-07-27 Thread Slavomir Slizik
or: $my2darray[] = $row; SSL On Fri, 27 Jul 2001, Wagner Tomy wrote: > $my2darray = Array(); > > while($row = mysql_fetch_row($result)) { > array_push($my2darray, $row); > } > > OR: > > for($i = 0; $i < mysql_num_rows($result); $i++) { > $row = mysql_fetch_row($result); > $my2darr

Re: [PHP] fopen - warnings

2001-07-27 Thread Slavomir Slizik
... if ($datei = @fopen($file[$i], "r+")) ... On Thu, 26 Jul 2001, Vanessa wrote: > Hello List, > > this is probably a very stupid question, but I dont know how to solve this > little problem: > I have a script with which text files (exported access db data sheets) can > be uploaded to the mys

Re: [PHP] Session problems

2001-07-19 Thread Slavomir Slizik
Hello, check out if you have cookies turned on. Or, compile php with --enable-trans-sid, where the PHPSESSID is automatically attached to all URLs and forms without using cookies. try to do session_register() before session_start() in 1.php, or do not use session_start() in 1.php (only session_re

Re: [PHP] Sessions + Variables + includes

2001-07-19 Thread Slavomir Slizik
On the title page: session_register("loggedin"); then: session_start(); on every page better to test session availability on every page: if (!session_is_registered("loggedin")) { // redirect user to title page where the session is registered } But your method of handling sessions

Re: [PHP] Prevent user to close web browser

2001-07-19 Thread Slavomir Slizik
So, try to surf some free erotic,porn sites. They're full of that window-spawing stuff :( slavko On Thu, 19 Jul 2001, kath wrote: > Not with PHP. Maybe some Javascript could. > > But why would you want this? Planning some infinite spawning pop up website? > =) > > - k > > On Thursday 19 July

Re: [PHP] file upload

2001-07-19 Thread Slavomir Slizik
Try to incerease 'max_execution_time' in your php.ini file - if your connection is too slow, script execution time expires before the file is uploaded. Increasing max_execution_time might help. Try to increase max_filesize in your upload _form_, too. Slavko On Thu, 19 Jul 2001, Marcus w

Re: [PHP] set var in PHP

2001-07-18 Thread Slavomir Slizik
Hello, it isn't regular html, it is only server-parsed stuff .. Server Side Includes. You won't need that in PHP, just do: blah blah blah .. SSL On Wed, 18 Jul 2001, jessica lee tishmack wrote: > In html, I can do > > > > How do I do this in PHP? > > Thanks, > Jessica > > > -- > PHP