php to python code converter

Palash Bauri palashbauri1 at gmail.com
Wed May 13 12:53:00 EDT 2020


That gives a 404 🤷‍♂️, you sure , you pasted the right link ?

~Palash Bauri

On Wed, 13 May 2020, 9:07 pm , <anjulakshmi894 at gmail.com> wrote:

> On Friday, 8 May 2009 16:08:25 UTC+5:30, bvidinli  wrote:
> > if anybody needs:
> > http://code.google.com/p/phppython/
>
> $username = "username";
>         $password = "password";
>         $hostname = "localhost";
>
>         $dbhandle = mysql_connect($hostname, $username, $password) or
> die("Unable to connect to MySQL");
>         $selected = mysql_select_db("dropdownvalues", $dbhandle) or
> die("Could not select examples");
>         $choice = mysql_real_escape_string($_GET['choice']);
>
>         $query = "SELECT * FROM dd_vals WHERE category='$choice'";
>
>         $result = mysql_query($query);
>
>         while ($row = mysql_fetch_array($result)) {
>                 echo "<option>" . $row{'dd_val'} . "</option>";
>         }
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list