Sigma Php Ajax framework, Ajax Components, GUI Builder
May 17, 2012, 12:12:58 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Grid
>
Sigma Grid - Q&A
(Moderators:
steven
,
gbolanoscruz
) >
CRUE - two tables inner join
Pages: [
1
]
« previous
next »
Print
Author
Topic: CRUE - two tables inner join (Read 927 times)
petrwabi
Newbie
Posts: 3
CRUE - two tables inner join
«
on:
July 06, 2010, 07:51:29 AM »
Hello all,
I´m absolutely newbie in javascript. I use Sigma Grid as listed in Tutorial 3 - CRUD. It works fine.
But I need to use inner join in my query.
Is it possible to use similar code?
Many thanks Petr
There are 3 tables - owners, dogs and ownerdog(cols id_dog and id_owner)
<?php $sql1=mysql_query("select id_owner from owners",$GLOBALS["link"]); while ($row1=MySQL_Fetch_Array($sql1)) { $people=$row1["id_owner"]; } $sql2=mysql_query("select dogname from dogs inner join ownerdog on dog.id_dog = ownerdog.dog where ownerdog.owner=".$people,$GLOBALS["link"]); while ($row2=MySQL_Fetch_Array($sql2)){ echo"<table><tr><td>($row2["dogname"]) } ?>
..... etc.
Logged
steven
Moderator
Hero Member
Posts: 544
Re: CRUE - two tables inner join
«
Reply #1 on:
July 08, 2010, 01:19:36 AM »
yes, you can do it that. Is there any problem?
Logged
Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
petrwabi
Newbie
Posts: 3
Re: CRUE - two tables inner join
«
Reply #2 on:
July 08, 2010, 02:46:07 PM »
Hi, I tried it but without success. The data cannot be loaded. Any suggestion?
Many thanks Petr
Logged
petrwabi
Newbie
Posts: 3
Re: CRUE - two tables inner join
«
Reply #3 on:
July 08, 2010, 02:49:21 PM »
If I use query from one table it works without problem.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...