Search found 10 matches

by psychomantum
Thu Sep 25, 2003 9:43 pm
Forum: PHP coding => General
Topic: can't get the value of fields in a form
Replies: 7
Views: 2570

I would also suggest that you stick to this method and not register globals. I made the mistake of learning with register globals on, and I learned the hard way that it is a security risk, not to mention it can get sloppy. There is no space between $_REQUEST and the ['var'], it's all one entity, $_R...
by psychomantum
Thu Sep 25, 2003 9:36 pm
Forum: PHP coding => General
Topic: PHP code review please
Replies: 3
Views: 1504

I would think you would want to seperate your PHP from your HTML a little more, like using more functions or seperating and including the files in one. Another thing you could try is ending your PHP tags when you write a lot of HTML, like this: <?php if ($something = avalue) { $code... ...
by psychomantum
Thu Sep 25, 2003 9:29 pm
Forum: PHP coding => General
Topic: uploading db
Replies: 5
Views: 1768

I would think if you are using PHPMyAdmin you could just edit your database from there.
by psychomantum
Sun Jan 19, 2003 4:57 pm
Forum: mySQL & php coding
Topic: Connection to database not working
Replies: 5
Views: 2107

ok

ok, so how do I turn it off?
by psychomantum
Sun Jan 19, 2003 12:11 am
Forum: mySQL & php coding
Topic: Connection to database not working
Replies: 5
Views: 2107

different error

Ok, added the modules to httpd.conf, now I get this: Warning: SAFE MODE Restriction in effect. The script whose uid is -1 is not allowed to access /var/www/html/Admin/mysqltest.php owned by uid 0 in Unknown on line 0 Warning: Failed opening '/var/www/html/Admin/mysqltest.php' for inclusion (include_...
by psychomantum
Sat Jan 18, 2003 12:38 am
Forum: mySQL & php coding
Topic: Connection to database not working
Replies: 5
Views: 2107

Connection to database not working

Hi, I'm fairly new to php and mysql, but I've been reading up and am starting my own website on my own server using Apache 2.0.40 on RedHat 8.0 I decided to test mysql and php with this little php code: <?php $linkID = mysql_pconnect("localhost", "******", "******"); if($linkID != FALSE) { print "Pe...
by psychomantum
Sat Dec 14, 2002 10:09 pm
Forum: mySQL & php coding
Topic: mysql_pconnect issue
Replies: 4
Views: 2117

Set time to live in httpd.conf, or MySQL.


Gee, let's not get too specific or I might figure out what to do :(
by psychomantum
Tue Dec 10, 2002 12:07 am
Forum: mySQL & php coding
Topic: mysql_pconnect issue
Replies: 4
Views: 2117

Yeah I tried that one already

thanks though
by psychomantum
Sun Dec 08, 2002 1:27 pm
Forum: mySQL & php coding
Topic: mysql_pconnect issue
Replies: 4
Views: 2117

mysql_pconnect issue

I can't figure out why I keep running into this error. MySQL is running and PHP is running as an apache module, but I always get this: Warning: Lost connection to MySQL server during query in /var/www/html/bands/us/il/tripwire/guest.php on line 27 Unable to connect to SQL server And here is the code...
by psychomantum
Sat Dec 07, 2002 8:08 pm
Forum: PHP coding => General
Topic: quick help with "include" statement
Replies: 3
Views: 1308

quick help with "include" statement

I'm fairly new to PHP and I'm trying to include a navagation menu on a site I am doing. I coded the menu.inc file and tried to include it on all my pages with this code: <?php include("menu.inc"); ?> when I visit the page, I still see the php code and not the menu. I know that php ...