![]() |
|
#1
|
|||
|
|||
Where variableFirst off im new to Php and Mysql, so forgive me if this question is naive.
I have searched the web for a few days and searched here a bit, though i may have missed something. I am trying to build a search function in to a DB access page. The search is trying to return all instances that a name is listed in the DB the page is in HTML, here is the user interface code. PHP Code:
the php code follows. PHP Code:
any help would be appreciated thanks. -Matthew Pulaskee ps forgot to tell you the our put im seeing. nothing. not a thing, no errors no text, nothing. i know the DB is populated. Last edited by LuciWiz : 10-Apr-2009 at 00:37.
Reason: Please insert your Php code between [php] & [/php] tags
|
|||
|
#2
|
||||
|
||||
Re: Where variableYour form and your text input have the same ID (id="find"). IDs should be unique within the entire page.
HTML input tags don't have any inner HTML, so HTML Code:
HTML Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
|
#3
|
||||
|
||||
Re: Where variableAlso, don't forget value=
HTML Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#4
|
||||
|
||||
Re: Where variableThat too... I don't know how I missed that.
|
|
#5
|
|||
|
|||
Re: Where variableThe single quotes issue was made when i set up the post here, im not using the actual column names. The names are in proper format though, i am useing the same names in a simpler application.
I cant believe i missed the comment slash. or the value =, i noted last night. lol thank for seeing it. I am posting the code once again, fixed this time. it still wont work. still blank. Code:
Code:
|
|
#6
|
||||
|
||||
Re: Where variableRun this script and post the output.
|
|
#7
|
||||
|
||||
Re: Where variableThere is a comma biting the foot of $var1 in mysql_query(). It needs to be kicked off.
Edit: No, wait a second. $var1 is where the link identifier should be for mysql_query(). I think you meant PHP Code:
|
|
#8
|
|||
|
|||
Re: Where variableWE HAVE A WINNER! thank you.
So what is sprintf? I seam to have lost my formatting, but i have to take time to look into that issue myself. Unless this code kills the formatting on purpose. thanks. |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delegates and references to objects | BobLewiston | .NET Forum | 0 | 02-Feb-2009 20:18 |
| Life Time of Function static variable? | ahbi82 | C Programming Language | 3 | 16-Oct-2007 02:24 |
| Global variable goes out of scope. | Fermat | C++ Forum | 1 | 16-Apr-2007 20:41 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 18:36 |
| [Tutorial] Pointers in C (Part I) | Stack Overflow | C Programming Language | 1 | 08-Apr-2005 19:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The