select * from table where id=1 -


i need return information row id 1

the name of table customer , column descricaoid

tks

$sql = "select * customer id=1";                 $query = mysql_query($sql);                 while($sql = mysql_fetch_array($query)){                 $id = $sql["1"];                 echo "resultados para o id $id";                 } 

the output must be:

the customer with id 1 is: jessica

 $id = $sql["1"]; 

do this:

$id = $sql['id']; 

(i don't know why put 1 there...)


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -