- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
I think this php method will help to sort out your problem function getColoumn($table) { $result = mysql_query("SHOW COLUMNS FROM ". $table); if (!$result) { echo 'Could not run query: ' . mysql_error(); } $fieldnames=array(); if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { $fieldnames[] = $row['Field']; } } …
You can use javascript push method to insert new data into existing js Array like below var strNum = ["1", "2", "3", "4"]; strNum.push("5");
Since you are using jquery, so you can jQuery.unique() method to remove duplicate array element.
$this->input->get(), This method will return all get parameters,you need to set your variable name and get value.
You can try this sample code as well to suffle php array values. $my_array = array("red","green","blue","yellow","purple"); print_r(shuffle($my_array));
The End.
parvez alam