Search found 14 matches
- Thu Jun 19, 2008 9:07 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Thanks for your continued help you guys, but its still not working... Okay so when I replaced the $worddef with $row['worddef'] and the same with wordsent I got just a blank page. However when I just had $worddef with the table replacing code, it gave me "You searched for ----- Results:" w...
- Wed Jun 18, 2008 11:14 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Thank you sooooo much for all the help so far but Ive had a change of plans which I think will be far more effective. I realized that that program really didn't suit my needs and that I should use a program that was actually made to search. Anyways I found one online, and it seems to be working a he...
- Wed Jun 18, 2008 6:27 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Thanks for the help, I really hope so. Anyways its still saying "Couldn't execute query" Here's the code now: <html> <head><title>Definition</title></head> <body> <?php $user="-------"; $host="localhost"; $password="--------"; $database = "diction...
- Wed Jun 18, 2008 5:57 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Ok so now I get a Couldn't Execute Query, which I spose is positive because its better than nothing. But of course it still refuses to work Heres the code now... <html> <head><title>Definition</title></head> <body> <?php $user="-------"; $host="localhost"; $password="-...
- Wed Jun 18, 2008 10:20 am
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Okay so I changed the code again to get rid of the extract $row thing, and made colspan = '2'. Still does not work. What could be wrong?!?
- Wed Jun 18, 2008 12:08 am
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Okay so Ive changed some stuff, but it stillll isnt working; it just produces a blank screen as it always has. <?php /* Program: wordDisplay.php */ ?> <html> <head><title>Definition</title></head> <body> <?php $user="------"; $host="localhost"; $password="--------&q...
- Tue Jun 17, 2008 11:22 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Sorry, I was trying to say that I changed all the stuff you said...ive tried both gets and posts, and neither is working. Everything else is the same as it was with the last time I posted code.
- Tue Jun 17, 2008 10:37 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
okay... so what should I change now? Thanks for your help so far...
- Tue Jun 17, 2008 6:29 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
When I did that, and changed 'name' to $wordname, the resulting url, instead of being just "http://....worddisplay.php" it changed to "http://...wordDisplay.php?name=(the word I searched for)". This is a step in the right direction right?
- Tue Jun 17, 2008 6:24 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
$query = "SELECT * FROM word WHERE wordname='name'"; What the? You definitely need to stare at that line for a little while :) should it be WHERE wordname='$wordname'"; ? Sorry I'm new at this... I changed all the posts to gets... shouldn't that work the same, as long as they are all...
- Tue Jun 17, 2008 4:25 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Its not really a school project, I'm just helping a teacher out... Okay I tried changing the post to get to keep it consistent but its still not working... here's the code as it is now: <html> <head><title>Definition</title></head> <body> <?php $user="-------"; $host="localhost&...
- Tue Jun 17, 2008 3:31 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
I tried this and it didn't work... Ugh it seems so simple but there has to be like one little mistake.
- Tue Jun 17, 2008 3:10 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Re: Trouble with a really simple project
Great thanks. So that should just replace all of line 11?
- Tue Jun 17, 2008 12:49 pm
- Forum: PHP - Code
- Topic: Trouble with a really simple project
- Replies: 30
- Views: 1554
Trouble with a really simple project
Hi I'm a real newbie to php and have to make a sort of dictionary for a school project. Basically what I'm trying to do is have a database of words, their definitions, and sentences, and make it searchable. So I created the database, which is called "dictionary", with the table "word&...