(16 Sep 2016, 11:29 PM)SmG FlasH™ Wrote: So I started learning PHP and need some help. Basically, I want the relevant information to appear when the user enters the ID.
For example:
* Form contains 3 input boxes, ID, Name and Type. (ID's are within a drop down menu, Name and Type in an input box)
* When user selects the first ID (assuming its 001), the relevant name and type corresponding to the same ID have to be displayed. (in real time / redirect back to page)
PM me for code. Thank you in advance :3
Ill give this a try using havij tonight, and see if it gives me the string, so you could hopefully reverse engineer it.
Otherwise, I found this on a support website, take from it what you will, if you need a legend on what certain things mean, I can provide you with additional content:
Code:
[color=black][size=small][size=x-small][color=#ff8000]//Array with the data to insert
[/color][color=#0000bb]$sql_array [/color][color=#007700]= array(
[/color][color=#dd0000]'username' [/color][color=#007700]=> [/color][color=#dd0000]'admin'[/color][color=#007700],
[/color][color=#dd0000]'email' [/color][color=#007700]=> [/color][color=#dd0000]'admin@example.com'[/color][color=#007700],
);
[/color][color=#ff8000]// Create the SQL statement
[/color][color=#0000bb]$sql [/color][color=#007700]= [/color][color=#dd0000]'SELECT user_id
FROM ' [/color][color=#007700]. [/color][color=#0000bb]USERS_TABLE [/color][color=#007700]. [/color][color=#dd0000]'
WHERE ' [/color][color=#007700]. [/color][color=#0000bb]$db[/color][color=#007700]->[/color][color=#0000bb]sql_build_array[/color][color=#007700]([/color][color=#dd0000]'SELECT'[/color][color=#007700], [/color][color=#0000bb]$sql_array[/color][color=#007700]);
[/color][color=#ff8000]// Run the query
[/color][color=#0000bb]$result [/color][color=#007700]= [/color][color=#0000bb]$db[/color][color=#007700]->[/color][color=#0000bb]sql_query[/color][color=#007700]([/color][color=#0000bb]$sql[/color][color=#007700]);
[/color][color=#ff8000]// $row should hold the data you selected
[/color][color=#0000bb]$row [/color][color=#007700]= [/color][color=#0000bb]$db[/color][color=#007700]->[/color][color=#0000bb]sql_fetchrow[/color][color=#007700]([/color][color=#0000bb]$result[/color][color=#007700]);
[/color][color=#ff8000]// Be sure to free the result after a SELECT query
[/color][color=#0000bb]$db[/color][color=#007700]->[/color][color=#0000bb]sql_freeresult[/color][color=#007700]([/color][color=#0000bb]$result[/color][color=#007700]);
[/color][color=#ff8000]// Show we got the result we were looking for
[/color][color=#007700]echo [/color][color=#0000bb]$row[/color][color=#007700][[/color][color=#dd0000]'user_id'[/color][color=#007700]];[/color][/size][/size][/color]
[color=black][size=small][size=x-small][color=#007700][/color][/size][/size][/color]
[color=black][size=small][size=x-small][color=#007700]