Using PDO PHP and MySql -


alright peeps, first question on stack overflow , should easy 1 @ since cannot figure out right words trying making incredibly difficult me search it.

i using pdo db connection.

anyways, trying query database , set $fname string, know how set array while ($fname = $name->fetch()){} how can set $fname string instead?

the snippet of code , link can read more appreciated.

you mean this?

while ($fname = $name->fetch()) { echo "{$fname['fieldname']}"; } 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -