Re: [PHP] Re: turn register_globals on

2002-09-08 Thread Brad Bonkoski
Does this work for the original poster? Does not work for me (of course I am going the opposite way, wanting to test scripts one-by-one to verify they work with register_globals off) running: ini_set(register_globals, 0); (and, tried both) ini_set(register_globals, Off); According to the docs

Re: [PHP] How to set the file premission by using CHMOD?

2002-09-07 Thread Brad Bonkoski
man chown (change ownership) (i.e. chown my_username:my_groupname directory) -or- man chmod (change permissions)(i.e. chmod uga+w file_name -or- chown 4777 file_name) -Brad Bryan wrote: Situation: I want to create a file to a directory, but the premission denied, how to solve this problem

Re: [PHP] How to do pass on information...

2002-09-07 Thread Brad Bonkoski
Can't you make a form? Lets say you have a lexical database for categories like: IDNAME 1 Anime 2 Action etc... then in the form so: select name='cat' ?php $query = select * from categories; $result = run_query($query); while($row = fetch_array($result) { echo option

Re: [PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Brad Bonkoski
that's: $_SEVER['HTTP_HOST'] Cirstoiu Aurel Sorin wrote: I also tried $_HTTP['HTTP_HOST']. Not working. The host has php 4.1.2 version -- Cirstoiu Aurel Sorin InterAKT Support http://www.interakt.ro Erwin [EMAIL

Re: [PHP] MySQL and Array's REALLY simple question but I'm notGETTING it .. Ugh..

2002-09-06 Thread Brad Bonkoski
Well, when you run the command: $sql2_results = mysql_fetch_array($top_level); The first time, it automatically increments the result... so you fetch the data bu do nothing with it... so when you get to your loop, you are already at the second entry in your database.. So, remove the first

Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh..

2002-09-06 Thread Brad Bonkoski
; echo td$tabledata[6]/td; echo td$tabledata[2]/td; echo td$tabledata[3]/td; echo /tr; } print /table; -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 3:34 PM To: Steve Gaas Cc: [EMAIL PROTECTED] Subject

Re: [PHP] Problem with inserting values into database through php

2002-09-05 Thread Brad Bonkoski
The best way IMHO, to debug problems like this is to echo out your insert query to the screen and not actually run the query, or run it and make sure you use: $sql = INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position'); $result = mysql_query($sql)

<    1   2   3