RE: [PHP-DB] Brand New to PHP

2002-12-08 Thread Beau Lebens
Look at the section in the manual on how to upload files via HTTP (Under the "Features" chapter from memory) for working with the images. a couple other things to think about; 1. some sort of validation on the images to make sure they are images (extension/mim-type?) 2. confirm that you can suc

[PHP-DB] Brand New to PHP

2002-12-08 Thread John
Hi and thanks in advance, I am quite new to php and appreciate the help and patience. I am trying to have a form that allows uploading of user info and accompanying images into MySQL DB. Text enters fine into the DB but the images will not. I hope I provided enough info below (didnt want to

RE: [PHP-DB] Delete by date?

2002-12-08 Thread John W. Holmes
> How would I do that? I just did this: > > $date = date("Y-m-d"); > > and changed my date field in my MySQL DB to use the Date format, I don't > know if that's correct though? Then how would I get to delete all before > the current date? DELETE FROM table WHERE date_column < CURDATE() ---Joh

Re: [PHP-DB] Delete by date?

2002-12-08 Thread Chris Payne
Sorry, ignore the last message it's working now :-) Thanks for your help though John, got me looking in the right direction. Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Delete by date?

2002-12-08 Thread Chris Payne
Hi there, How would I do that? I just did this: $date = date("Y-m-d"); and changed my date field in my MySQL DB to use the Date format, I don't know if that's correct though? Then how would I get to delete all before the current date? Sorry to be a pain, date stuff really throws me :-( Chris

RE: [PHP-DB] Delete by date?

2002-12-08 Thread John W. Holmes
> I use the following to store the current date in my db: > > $date = date("mdY"); > > then to decrease the day by -1 I use the following: > > $date = date("Y"); > $date2 = date("m"); > $date3 = date("d")-1; > > $dateb = '$date$date2$date3'; > > Now what I need to do, is when a DB operation i

[PHP-DB] Re: Check Automaticaly

2002-12-08 Thread Adam Royle
I would imagine your game would have two frames (one hidden frame), and the hidden frame would contain scripts to check and update page. In the bottom frame i see you might have two choices: 1. have a meta refresh which checks every 5 (or so) secs if a move has been made, and if detects a move,

[PHP-DB] Delete by date?

2002-12-08 Thread Chris Payne
Hi there everyone, I use the following to store the current date in my db: $date = date("mdY"); then to decrease the day by -1 I use the following: $date = date("Y"); $date2 = date("m"); $date3 = date("d")-1; $dateb = '$date$date2$date3'; Now what I need to do, is when a DB operation is run

[PHP-DB] Check Automaticaly

2002-12-08 Thread dufronte
--www.kapsul.org-- Hi.. I want to make a webgame in PHP-Based. My Game is Almost finished, but there's something that I still try to figure out. Here's my problem. I want to make a battle engine using PHP+MySQL, and I want it to be almost real-time eventhough I make it as turn-based. I juz

Re: [PHP-DB] Apache, PHP and MySQL

2002-12-08 Thread DL Neil
Alex, > I am trying to set up a test server to test updates before changing my > uploaded pages. I have running Windows 98. I have Apache installed and > running, and thought I have PHP installed properly. (Installed it as Welling > and Thomson). However when I try to run my test.php file which sh

[PHP-DB] Apache, PHP and MySQL

2002-12-08 Thread Alex Francis
I am trying to set up a test server to test updates before changing my uploaded pages. I have running Windows 98. I have Apache installed and running, and thought I have PHP installed properly. (Installed it as Welling and Thomson). However when I try to run my test.php file which should give phpin

RE: [PHP-DB] The "noobest" of questions...

2002-12-08 Thread John W. Holmes
> How do you load a standard web page from PHP. > > I thought, from what I read, that is was with fopen() ... but its not > working for me. You can do it with fopen(). If it's not working, make sure there are no redirects, as fopen() (until PHP 4.3) will not follow them. ---John W. Holmes... P

Re: [PHP-DB] The "noobest" of questions...

2002-12-08 Thread DL Neil
Brett, Works for me! Show your code, =dn > How do you load a standard web page from PHP. > > I thought, from what I read, that is was with fopen() ... but its not > working for me. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] The "noobest" of questions...

2002-12-08 Thread Brett Lathrope
How do you load a standard web page from PHP. I thought, from what I read, that is was with fopen() ... but its not working for me. Thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Exporting database

2002-12-08 Thread John W. Holmes
> Can someone tell me where can I find a function or class > for export MySQL database (structure & data ) into text file ? >From the system prompt: path/to/mysql/bin/mysqldump -uuser -ppassword database_name > filename.sql will dump the entire database to an SQL file. mysqldump --help For mor

[PHP-DB] Exporting database

2002-12-08 Thread Rosen
Hi, Can someone tell me where can I find a function or class for export MySQL database (structure & data ) into text file ? Thanks, Rosen -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] thanks

2002-12-08 Thread Dallas
i've been looking for a good php site thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php