Jump to content

Archived

This topic is now archived and is closed to further replies.

corillo181

a sql question

Recommended Posts

[code]
$qury=select some thing from something where name ='john';
arra=fetch_array($qury);

echo arra['name'];
[/code]

so if i got this code and then down on my page i just do this

[code]
$qury=select some thing from something where name ='juan';
arra=fetch_array($qury);

echo arra['name'];
[/code]

will that mess with my cod in any way? becuase it does print the other name but since the variable and the query is the same would that bring any problem?

Share this post


Link to post
Share on other sites
Hello,

No it wont create any problem....but i wont recomment using the same variable names as it would be very difficult to debug.

hth

Share this post


Link to post
Share on other sites
thanx
and debuging is not a problem i use zend so i get very specific detail of where my problem is..

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.