mysql query
MySQL Query Example Script
1 2 3 4 5 6 7 8 9 10 11 12 13 14 <?php // Connection mysql_connect("localhost", "name", "pass") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); $result = mysql_query("SELECT name,age FROM users") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "Name: ".$row[’name’]; echo " Age: ".$row[’age’]; ?> <?php // Connection mysql_connect(“localhost”, [...]
mysql query multiple values in one column
Question: Hi. I have a situation where a program I want to use created a table with multiple columns; however, one column ‘value’, holds multiple field data from a form. The fields each have a unique identifier which is stored in a column named ‘element’. Is there any way to select multiple ‘value’ that will [...]
![[Google]]( http://www.network-content.com/wp-content/plugins/easy-adsense-lite/google-light.gif)