SELECT TranslationsTBL.value,QuestionsTBL.ID_Questions,QuestionsTBL.ID_Steps from TranslationsTBL left join QuestionsTBL on(TranslationsTBL.ID_Translations=QuestionsTBL.ID_translation) where ID_Languages=@language AND ID_Steps=@step order by ID_Steps
5 תשובות
דרך PHP ^^
מקווה שהקישור הבא יעזור לך:
http://www.w3schools.com/php/php_mysql_select.asp
אם לא תביני רק תגידי ואני אסביר לך.
אין לך דרך פשוטה יותר משו SELECT וכדומה???
ככה עובדים בחיבור של PHP לMYSQL, אין ממש דרך להשתמש בSELECT מבלי לחבר עם PHP
פקודות ה-mysql_* הם deprecated (ובעתיד יוסרו מ-PHP), ולא מומלץ להשתמש בהן.
במקומן יש את MySQLi ואת PDO.
http://phpguide.co.il/%D7%A9%D7%99%D7%A4%D7%95%D7%A8_%D7%91%D7%99%D7%A6%D7%95%D7%A2%D7%99_%D7%9E%D7%A1%D7%93_%D7%A2%D7%9D_MySQLI.htm
SELECT TranslationsTBL.value,QuestionsTBL.ID_Questions,QuestionsTBL.ID_Steps
from TranslationsTBL
left join QuestionsTBL on(TranslationsTBL.ID_Translations=QuestionsTBL.ID_translation)
where ID_Languages=@language AND ID_Steps=@step
order by ID_Steps