I know which column should be called in a table ..for example
table name is “table1”;
column name is “name”;
search is “$query”;
Now I query MySQL like this
mysql_query("SELECT * FROM table1 WHERE name='$query'");
Is this the right way to call?? I feel it took more time. any suggestions??
I normally do this;
But you also need to be aware of SQL injection….