Posts by misakie • 778 points
29 posts
-
2
votes2
answers118
viewsQ: mysql deprecated
I’m trying to insert an Row in mysql but is returning it: Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO…
-
3
votes1
answer77
viewsQ: Ajax and php protection
Using ajax in my case can bring some security flaw? If so, how do I resolve it? javascript: $(function() { if($('#login_submit').length !== 0) { $('#login_submit').on('click', function() {…
-
4
votes3
answers8129
viewsQ: Loading in ajax
How do I add a loading to my ajax? This loading would begin when ajax was started and finished when the result returned. my code: $.ajax({ url: url + "login/ajaxLogin", type: "POST", data:…
-
1
votes1
answer732
viewsQ: Add and show tooltip
How do I add a tooltip to an input and make it active using js? (I’m using twitter bootstrap)
-
3
votes3
answers1332
viewsQ: Run functions without the Jquery click event
How do I execute a certain function without having to wait for the user to click the button? For example, if the input username is empty, add a div and when it is no longer empty div is destroyed,…
-
1
votes2
answers2375
viewsQ: Pass form values to Ajax
How do I pass form values to PHP with Ajax? JS (without passing values) $(function() { if ($('#javascript-ajax-button').length !== 0) { $('#javascript-ajax-button').on('click', function(){…
-
1
votes1
answer3945
viewsQ: Cannot use Object of type stdClass as array
I made a code to check if the user and email are already existing, but when the user exists it returns the following error: Fatal error: Fatal error: Cannot use Object of type stdClass as array…
-
0
votes0
answers100
viewsQ: Declare and show variables in Model MVC
I am using the MVC standard, and I need to declare the value of a variable inside the model file and I ended up doing this: public $user_id = null; public $user_name = ""; public $user_email = "";…
-
4
votes1
answer262
viewsQ: Advantages and disadvantages of using INI files
Could you tell me the possible advantages and disadvantages of using a file .INI to configure an application? Preferably PHP applications.
-
3
votes2
answers469
viewsQ: How to get 40px X 40px of the entire image?
How do I get a certain resolution of every image? For example, I have this image: But in CSS I will only get 20px of it. Can’t use height and width.…
-
1
votes1
answer29
viewsQ: Sql last ids
How do I return the last 5 id with sql? NAME ID 1 John 2 William 3 Alberto 4 Alexander 5 Michael 6 Luke And you will return: 2 William 3 Alberto 4 Alexander 5 Michael 6 Luke
-
1
votes2
answers1743
viewsQ: How to put responsive background in col-Md
How do I make that fund not repeat itself? html: <div class="col-md-12"> <div class="panel panel-default sharp"> <div class="conteudo_me"> </div> </div>…
-
1
votes1
answer81
viewsQ: Form only works the second time
I made a form log in and it all worked out. But you have a bug, only log in on the second try. It’s in MVC standard: Controller: public function index() { if(!$this->model->isUserLoggedIn()) {…
-
0
votes1
answer452
viewsQ: Return value from select
$sql = "SELECT username, mail, password FROM users WHERE username = :user_name OR mail = :user_name;"; $query = $this->db->prepare($sql); $query->bindParam(':user_name', $user_name);…
-
0
votes1
answer120
viewsQ: Install Mahapps.Metro on a Windows Application
You can install the package Mahapps.Retro (http://mahapps.com) is a Windows Application? Getting Started explains only, in WPF.
-
4
votes1
answer1345
viewsQ: Namespace and PDO = Error
I am making a Framework using namespaces. However in PDO connection file there is a strange error for me: Fatal error: Uncaught Exception 'Pdoexception' with message 'could not find driver' in C:…
-
4
votes1
answer3307
viewsQ: Is OS development restricted to beginners?
One thing I’ve always wanted to do is develop my own operating system (not necessarily as good as Linux or Windows, it would have some basic functions at prompt). I’m not a complete beginner in this…
-
1
votes0
answers62
viewsQ: Unable to lock for exclusive access. Another application may
When I am debugging boot.bin by nasm it returns the following error: boot.asm: BITS 16 ; The mode we are running in (default for every modern computer) ORG 0x7c00 ; the origin, the boot loader is…
-
2
votes1
answer207
viewsQ: nasm: error: more than one input file specified
I am trying to compile a nasm file but it is returning the following error: " nasm: error: more than one input file specified ". What is the error? boot.asm: BITS 16 ; The mode we are running in…
-
1
votes1
answer531
viewsQ: How to pass objects between controllers in MVC using POO
Basically, I need to be login successful to save the username in a variable and use it in another controller. Model.php: public function login($email, $password) { session_start(); $sql = "SELECT *…
-
7
votes8
answers2700
viewsA: Is it good practice to mix Php and Html?
I think it is totally normal to use these "web practices", but this depends on the way the programmer thinks it is easier to develop and make future maintenance. Or you can make a function for every…
-
1
votes2
answers269
viewsQ: Could not resolve this Reference. Could not locate the Assembly "Mysql.Data"
How do I add the "Mysql.Data" Reference? I am using Sharpdevelop and not Visual Studio!!
-
0
votes1
answer557
viewsQ: Windows Form: Microsoft Skin
Currently, I’m seeing several programs from Microsoft and other people with this look: I was wondering if you’re a skin free and which the link hers.…
-
3
votes1
answer2120
viewsA: Error mysqli_connect(): (42000/1044): Access denied for user
I had the same problem 2 hours ago and it was also at Hostinger :O To solve the problem I did the following: I left the same hosting and mysql password and exchanged mysql.hostinger.com.br for…
-
1
votes4
answers454
viewsA: How to generate a summary or excerpt of each post?
You could create a 'summary' column in the table where a summary content would be displayed. I do not recommend using substr() because it can end up giving spoiler and disinteresting the reader.…
-
0
votes1
answer115
viewsQ: View help typing help c#
I need that when the user type help prints a help text, but this needs to work anywhere in the code and not in some parts. Same as CMD that when someone type help appears all available commands.…
-
1
votes2
answers196
viewsQ: Display dialogs when successful
How do I make a Dialog appear when the script occurs correctly? public function addDatabase($name, $collation) { // Checks whether all fields filled (Prevent future errors) if (!empty($name) AND…
-
6
votes1
answer268
viewsQ: What size of a large sizeable query?
What size of a query considerable great? For, I need to make a function to send query for the server but I cannot exceed the limit not to crash the server: public function sqlExecute($sql_code) { if…
-
3
votes1
answer167
views