Jump to content

jackhard

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

jackhard's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am having a problem when trying to create a database using mysql command. The code i am using is; using (MySqlConnection con = connect_db()) { con.Open(); MySqlCommand cmd = new MySqlCommand("CREATE DATABASE @name;", con); cmd.Parameters.AddWithValue("@name", "fancydb"); try { cmd.ExecuteNonQuery(); } catch (Exception exc) { return; } cmd.Dispose(); con.Close(); con.Dispose(); }When i try to run this code i always get an error saying that i have an error in mysql syntax near "fancydb"...but when I put the name in the command like: "CREATE DATABASE facnydb;" it works. Can anyone explain to me why is the error only happening when i try and use parameters?
  2. I am a Application Developer but have been wanting to get into web development since quite a while now. First Query that I came across was how to get started? Second, what platform should I use for web development? As in what is the general trend that people follow while designing dynamic web content? Is Text Editor the most prominent or software's like Dreamweaver VS etc ? I want to concentrate on HTML5, CSS3, JavaScript with PHP / MYSQL etc as Back-ends.
  3. I just did a fresh install of TYPO3 6.1. The system environment check tells me, that some PHP functions are disabled on my server. I'm using Froxlor on my server to administrate domains and alike. Thus, I have complete control over this machine but I'm not sure which functions are really necessary. Some functions seem to be pretty dangerous to me, so I don't want to enable every function which are disabled on my box. TYPO3 lists the following functions as disabled: disable_functions=parse_ini_file passthru popen proc_close proc_get_status proc_nice proc_open proc_terminate shell_exec show_source systemWhich should be definitely enabled for TYPO3 and which can stay disabled? Thanks for your help.
  4. If user input is inserted into an SQL query directly, the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO table (column) VALUES ('" . $unsafe_variable . "')");That's because the user can input something like value'); DROP TABLE table;--, making the query: INSERT INTO table (column) VALUES('value'); DROP TABLE table;--') What should one do to prevent this?
  5. Ok, so I am very new to android but I have some experience with PHP. I have a website for my college festival where there is a login system and registered users can take the quiz everything.( I am using Codeigniter as my PHP framework Now I have been asked to make an android app for the festival. So , my question is , How do I connect my android application to the stuff on my website. For example: I have a login system on my website and I want to reflect the same functionality in my android app i.e How to send the username and password to be authenticated and how the request will be processed on the server side? How do I connect my android application to my database ? Can anyone please point me in the right direction. Thank you very much. P.S : Yes, I get that I can very easily just make a mobile version of the website as suggested by many people. But since I want to learn Android, I think this would be a good opportunity for me to do so. http://www.hitechito.com/technology/php-framework/php-development/php-web-development.php
  6. You must to configure if your version of PHP is by far the difference is that embedded MySQL is obsolete, since PHP 5.5.0 for. This means that PHP has removed support for MySQL and MySQLi or transient PDO_MYSQL (). Problems of the same (more or less), PHP around a little bit different. However, as I said, PHP does not support MySQL in the future, and if you can make a choice between what to use, I recommend you go with a promising option. Personally, I worked on the project was too far in MySQL before I learned that you should not use. So I'm using MySQL, but I also converted.
  7. I want to develop a simple game in PHP.Game is as follows, a server displays a image to the two players,two players have to type keyword corresponding to the image if the key word is same,they are given next image. What I am confused is how to develop the interface for this game.How do I display an image to two different players simultaneously and how do i keep track of their answers.Moreover how to implement two players ?
  8. I got an PHP/JS web application and my boss wants me to add an online help in it. Idea is that after click on some "button" it will show some new window with help. There should be some indexing and searching... Simply something like Windows help... Is there any FREE software which allows me to do this? I have absolutely no experience with this, so I donĀ“t know what to download, what is the best and how to implement it. Any tips appreciated
×
×
  • Create New...

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.