PHP/MySQL help - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: PHP/MySQL help (/showthread.php?tid=52814) PHP/MySQL help by lordy on 11-10-2005 at 12:04 PM
I'm creating a MySQL database for my dad so he can catalogue his huge collection of DVD's and CD's etc. I'm doing it cause i want to learn PHP and mySQL and stuff, so i figured I may as well do something useful with it while im going. It's being accessed using PHP via our webrowser over our home network. atm i have it so the page displays all entries in the database. RE: PHP/MySQL help by Dempsey on 11-10-2005 at 12:09 PM
well to add stuff you need a form which will send the results to a php page which will then process the form data and add it into the DB. RE: PHP/MySQL help by lordy on 11-10-2005 at 12:34 PM aaah that is excellent for adding stuff thanks RE: PHP/MySQL help by Dempsey on 11-10-2005 at 12:37 PM
no problem code: Where dvdName, dvdYear (etc, etc) is the field list you want to return, TableName is the name of the table you are searching in and searchTerms is from the textbox you search in. RE: PHP/MySQL help by -dt- on 11-10-2005 at 01:00 PM
also remember when using a unknown varible (from a form or something) in a sql query you should escape it with code: RE: PHP/MySQL help by lordy on 11-11-2005 at 12:27 PM
well, so far i have this: code: when i enter the data, the page goes blank (which im pretty sure its meant to), but the data isnt entered into the MySQL database. I've asked -dt- on MSN and he couldn't find an error, so its probably someone hugely obvious, or something frustratingly small. RE: PHP/MySQL help by Dempsey on 11-11-2005 at 12:45 PM after code:add code: RE: PHP/MySQL help by lordy on 11-11-2005 at 12:54 PM
i just chucked in random characters and it came up with this: RE: PHP/MySQL help by WDZ on 11-11-2005 at 02:05 PM
http://php.net/mysql_query RE: PHP/MySQL help by lordy on 11-11-2005 at 10:03 PM
OMGZORS it works RE: PHP/MySQL help by lordy on 11-18-2005 at 03:41 AM
*sigh* can someone explain to me why this wont work? RE: PHP/MySQL help by WDZ on 11-18-2005 at 04:50 AM
quote:There are still at least 3 stupid errors... keep working... I assume you didn't type it very carefully when copying from the magazine? RE: PHP/MySQL help by lordy on 11-18-2005 at 05:07 AM
i checked it afterwards, the magazine wasa bit dodgy with thier quotation marks and stuff, can you point out what the errors are? RE: PHP/MySQL help by WDZ on 11-18-2005 at 05:14 AM
Line 23 RE: PHP/MySQL help by lordy on 11-18-2005 at 05:21 AM
quote: but that has to be there? ive fixed everthing else and still no deal RE: PHP/MySQL help by WDZ on 11-18-2005 at 05:28 AM
No, it doesn't have to be there. This is one string... RE: PHP/MySQL help by lordy on 11-18-2005 at 05:32 AM have a look at this one, it still doesnt work RE: PHP/MySQL help by WDZ on 11-18-2005 at 05:47 AM
You didn't remove the extra bracket. code:See the double brackets ]] there? Remove one. That should make the script free of all syntax errors. RE: PHP/MySQL help by lordy on 11-18-2005 at 05:50 AM its not in there in the page on my server and it still doesnt do anything, it just pops up with a blank page., i'm stumped RE: PHP/MySQL help by WDZ on 11-18-2005 at 05:53 AM Well, that's strange that it's completely blank. If you view the source of the page, is that blank? Do other PHP scripts work on your server? Do you have the MySQL configuration correct? RE: PHP/MySQL help by lordy on 11-18-2005 at 05:56 AM
other PHP pages work fine, other pages display and insert data into it fine, the source just has <html><head></head><body></body></html> in it |