خرید بک لینک

Vote count: 0

I am doing a project that uses php and Mysql. I am really new to php and I have searched a lot but still haven't found a clean solution.

The problem is, firstly user inputs key words and it retus searched values(table names) to variables.

echo '<h2> Search Result: </h2>';
$searchSQL = "select distinct table_name from information_schema.columns where lower(column_name) like lower('%$search%') and table_schema='university'";
$result = $co->query($searchSQL);

if ($result->num_rows > 0) {
   // output data of each row
   while($row = $result->fetch_assoc()) {
   $table_name = $row['table_name'];
   echo "<input type='submit' name=$table_name value=$table_name>"."<br />";
 }

Now the buttons are created. If user clicks on any button, it should go further and retu the column names of each table. I don't know how to do with non-static buttons.

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 18 فروردين 1395 ساعت: 11:44

صفحه بندی