Welcome Guest, Not a member yet? Register   Sign In
Traditional Mysql Code
#1

[eluser]rochellecanale[/eluser]
hey guys just want to ask. Can i integrate the traditional Mysql command in my script?
Like:
Code:
$connect = mysql_connect('localhost','root','','databasename')
or die mysql_error();

$query = "SELECT * FROM sampletable";
while(($row = mysql_fetch_array($query)) !== FALSE){
     echo $row['id'].
     .
     .
     .
     .
}

because in one of my file i want to retrieve my information using this method... And together with that i want to store my information in a multidimensional array inside my while loop.


Messages In This Thread
Traditional Mysql Code - by El Forum - 09-20-2012, 06:51 PM
Traditional Mysql Code - by El Forum - 09-20-2012, 07:17 PM
Traditional Mysql Code - by El Forum - 09-20-2012, 07:19 PM
Traditional Mysql Code - by El Forum - 09-20-2012, 07:32 PM
Traditional Mysql Code - by El Forum - 09-20-2012, 07:50 PM
Traditional Mysql Code - by El Forum - 09-20-2012, 07:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB