I have two tables, landlords and properties are my property table; ID, address, postcode, lease, and landlord ID The problem I have is: If I want to find all the qualities that Mr.Spina is in the form of their landlord then I would like to find the names of the landlords to find the name "spin" Which is saved in the property's database, from which I can remove the details details.
I thought it would work, but it's not right:
& gt; Select property property.ID, property.address, property.postcode, property. Please, landlords. First name, landlords. Join landlords from property properties in INNER landlords. First name '% spina%' or '% spina%' like landlords.lastName
I have attached images of table structures.
Landlords:
Permission of only one link
Properties:
Entering "Spina" in the field The result should be: Only one link permission
Here is my removed code ...
pre> & gt; If ($ Field == "Landlord") {& gt; & Gt; $ Sql = "SELECT property.ID, property.address, property.postcode,> property, please, landlines. First name, & gt; landlords .name". $$ "INNER" include landlords in landlords, like first name & gt; '%'. $ Q "% 'or landlords. Anonymous & gt; like'%. '$ Q. "%'"; & Gt; } Other {& gt; $ Sql = "SELECT * FROM" $ Make "WHERE" $ field "likes'%". $ Q "% '"; & Gt; } // and special case $ result = & gt; Mysql_query ($ sql); & Gt; Repeat "$ sql"; & Gt; Now "Table boundary = '1'"> "> <<<<>> gt; & lt; th & gt; Postal Code & lt; / Th & gt; & gt; & lt; & gt; Lease & lt; / th & gt; ;> | Landlord "; & Gt; & Gt; While ($ line = & gt; mysql_fetch_array ($ result)) & gt; {& Gt; Echo "& lt; tr & gt;"; & Gt; Echo "& lt; td & gt;" . $ Line ['id'] "& lt; / td & gt;"; & Gt; Echo "& lt; td & gt;" . $ Line ['address'] "& lt; / td & gt;"; & Gt; Echo "& lt; td & gt;" . $ Line ['postcode']. "& Lt; / td & gt;"; & Gt; Echo "& lt; td & gt;" . $ Line ['lease'] "& lt; / td & gt;"; & Gt; Echo "& lt; td & gt;" . $ Line ['first name']. "" $ Line ['last name']. "& Lt; / td>"; & Gt; Echo "& lt; / tr & gt;"; & Gt; } Resonates "& lt; / table & gt;"; & Gt; & Gt; Mysql_close (); Many thanks in advance! It looks like you use INNER JOIN wrongly; Whatever you want is something like this: SELECT property.ID, property.address, property.postcode, property. Please, landlords. First name, landlords. Join landlords on property from property INNER landlords I ID = property.landlord WHERE landlords. First name '% spina%' or '% spina%' like landlords.lastName
Popular posts from this blog
I have a code that has a driver in a connection string. as a slow string = "driver = {SQL Server}; server = xxx \ SQLEXPRESS; database = dbRegister; reliable connection = yes" I need to change it: data source = 1.2.3.4; User ID = xx; Password = xxxxx; Initial list = xxxxx; Connect timeout = 30 " When I change text, it returns this error: [microsoft] [ ODBC] Driver Manager] The name of the data source was not found and no default driver specified How do I declare a data source? myServerAddress; Initial Catalog = myDataBase; User id = myUsername; Password = myPassword; Use the server name \ example to connect to the specific SQL Server instance as the data source. Are you using SQL Server 2005 Express? Server name syntax does not remember Servername \ SQLEXPRESS Visit P>
Then I'm starting to learn the rail. Now that the train has left 3, then I have to stay in the tracks to learn 3 Ways to Talk One of the things I want to learn how to do the web service with the rest of the third party / the use of work / method of creating a "mashup" application. I have done minimal work in this way with PHP and pre-built libraries. Can someone lead me to some resources, best practices, or do I have a quick 101 text type of API to start working with them? Should I use gems? Update: I'm trying to use the Google Books API (non-standardized) specifically. Since there is no client library for this API, I am thinking that other Ruby / Rail developers are working with APIs that do not come with Ruby Library. This is the reason why I am looking for a more general solution to work with the "fill the fill" API. Update: After some research, I'm going to the Net :: HTTP Library. All the tutorials that talked about it were quite old. ...
Is this a way to find other iPhones in the category of wireless areas? So I give an example. I'm staying at the airport somewhere I have an iPhone too. I and the other iPhone owners are playing the same game. Is there any way to warn me and the other player that we are close to each other? Does this work even if we are not on the same wireless network, or there is no wireless? And if there is any way to do this, can you give me some starting point? Like a link where I can learn something like this or maybe this is probably the name of this process, because I do not know how to search about this topic in Google. Thanks in advance! Can be completed with peer-to-peer discovery and connectivity you are describing Game Kit Framework Originally I thought it works only through Bluetooth, but after watching it immediately, it seems that WiFi is also supported. Hope it helps!
|
Comments
Post a Comment