# Problem with Mysql library : dbconnection.getString()

**URL:** https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681
**Category:** Libraries
**Created:** [August 16, 2018, 6:33am UTC](https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681 "2018-08-16T06:33:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andress](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Andress](https://discourse.processing.org/u/Andress)
#### Post date: [August 16, 2018, 6:33am UTC](https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681/1 "2018-08-16T06:33:24Z")

</div>

hi all, i’m trying to change the text “g” to “7” but the code doesn’t get in the if condition and when i use println, “g” appears.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/685b0b632577d1140fee851e5a3f145d3b79bc7d.png)

---

<div class="post-metadata">

### Author: ![MxFxM](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@MxFxM](https://discourse.processing.org/u/MxFxM)
#### Post date: [August 16, 2018, 8:02am UTC](https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681/2 "2018-08-16T08:02:15Z")

</div>

Try

```auto
if (w.equals("g")) {w="7";}

```

---

<div class="post-metadata">

### Author: ![Andress](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Andress](https://discourse.processing.org/u/Andress)
#### Post date: [August 17, 2018, 2:34pm UTC](https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681/3 "2018-08-17T14:34:43Z")

</div>

> [@MxFxM](#):
>
> equals(“g”)) {w=“7”;}

you are right, I really thank you very much, I spent many hours solving this.
