Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6336563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:04:52+00:00 2026-05-24T19:04:52+00:00

i was looking out for something to convert my asp.net code to php &

  • 0

i was looking out for something to convert my asp.net code to php & mysql.

I used a website that claimed to be able to convert but it seems to be not so great when it comes to performance.

I don’t know how easy or tough it is to do the conversion as I don’t have knowledge of either but I learnt a bit of PHP through w3schools and got an example to refer from a php document to do some of my conversion from .net to php.

The thing is that there is a certain bit of code where I’m unable to think where to proceed from there.

if anyone can help me with this? The correct reply could be useful to anybody else referring for a conversion from asp.net to php and mysql. There is no other post that I found for my question on stack overflow.

<WebMethod()> _
    Public Function saveBeerPot(ByVal Potdata As XmlElement) As String
        Dim PotXml As New XmlDocument
        PotXml.LoadXml(Server.HtmlDecode(Potdata.OuterXml))
        Dim m_nodelist As XmlNodeList

        m_nodelist = PotXml.SelectNodes("/DocumentElement/Table")
        Dim status As String = "no data"

        Dim _connectionString As String
        Dim strSQL As String

        Try
            _connectionString = ConfigurationManager.ConnectionStrings("AESSYSTEM_DB").ConnectionString
            Dim sqldb As New SqlDatabase(_connectionString)

            Dim XmlNode = PotXml.FirstChild

            Dim xmlNodeT = XmlNode.FirstChild

            m_nodelist = xmlNodeT.ChildNodes


            If m_nodelist.Count > 0 Then

                Dim _pot_id = m_nodelist.Item(0).InnerText
                Dim _pot_name = m_nodelist.Item(1).InnerText
                Dim _owner_user_id = m_nodelist.Item(2).InnerText
                Dim _language_id = m_nodelist.Item(3).InnerText
                Dim _currency_id = m_nodelist.Item(4).InnerText
                Dim _skin_id = m_nodelist.Item(5).InnerText
                Dim _minimum_check = m_nodelist.Item(6).InnerText
                Dim _minimum_amount = m_nodelist.Item(7).InnerText.Replace(",", ".")
                Dim _pot_fund = m_nodelist.Item(8).InnerText.Replace(",", ".")
                Dim _password = m_nodelist.Item(9).InnerText

                status += _password
                If _minimum_amount.Length = 0 Then
                    _minimum_amount = "0"
                End If

                If _pot_id.Length = 0 Then

                    Dim _pot_guid = generateGuid()
                    strSQL = "INSERT INTO POT (pot_name, owner_user_id, language_id, currency_id, skin_id, minimum_check, minimum_amount, pot_fund,pot_guid,password,checkout,lastcheckout,autoupdate,created_date,nextautoupdatedate)"
                    strSQL += " values('" + _pot_name + "', '" +
_owner_user_id + "', '" + _language_id + "', '" + _currency_id + "', '" + _skin_id + "', '" + _minimum_check + "', '" + _minimum_amount + "', '" + _pot_fund + "', '" + _pot_guid + "', '" + _password + "','0','0','8','" + System.DateTime.Today.ToString + "','" + System.DateTime.Today.ToString + "')"
                    strSQL += "SELECT IDENT_CURRENT('POT');"

                    _pot_id = sqldb.ExecuteScalar(strSQL, CommandType.Text).ToString()
                    strSQL = "INSERT INTO PotUsers (pot_id,user_id,current_amount)"
                    strSQL += "values('" + _pot_id + "','" +
_owner_user_id + "', '0')"
                Else

                    strSQL = "UPDATE POT SET pot_name = '" + _pot_name
+ "', language_id = '" + _language_id + "', currency_id = '" +
_currency_id + "', skin_id = '" + _skin_id + "', minimum_check = '" +
_minimum_check + "', minimum_amount = '" + _minimum_amount + "'"
                    strSQL += " WHERE pot_id = '" + _pot_id + "'"

                    status += strSQL
                End If

                sqldb.ExecuteNonQuery(strSQL, CommandType.Text)
                status = "inserted"
            End If
            Return status


        Catch ex As Exception
            status += ex.Message
            Return status
        End Try

    End Function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:04:53+00:00Added an answer on May 24, 2026 at 7:04 pm

    You won’t find a perfect conversion tool from .NET to PHP, it will most probably require some effort on your behalf…

    I think you just need to look at this in separate chunks and break the code down. If you use MSDN and search for things like WebMethod and the other types and methods you are unsure about you should be able to piece it together in PHP in not too much time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking out for an eclipse plug-in that could be used to detect
So I started a question to figure out why my PHP code that is
I'm looking for a lightweight solution that will let me spread out the responsibility
I'm attempting to convert a home-grown login system to the standard asp.net login control
My ASP.NET page has following query string parameter: …?IDs=1000000012,1000000021,1000000013,1000000022&... Here IDs parameter will always
I'm trying to figure out how to convert a javascript collection (i.e. something returned
Is there a utility out there that will create VB.NET classes from a Dataset.xsd
I was looking out for a free plugin for developing/debugging JSP pages in eclipse.
I am relatively new to MSBuild and am looking out for good resources to
I'm looking to try out JRuby and JRuby on Rails. I'm having trouble finding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.