Skip to main content

Questions tagged [mysqli]

The MySQLi extension, or as it is sometimes known, the MySQL Improved extension, was developed to take advantage of new features found in MySQL systems versions 4.1.3 and newer. The MySQLi extension is included with PHP versions 5 and later.

Filter by
Sorted by
Tagged with
3 votes
1 answer
99 views

When MySQL executes a Data Modification Query, it provides some additional info on the outcome, which is usually displayed in the console. This info is also being exposed through MySQL C API and this ...
Your Common Sense's user avatar
0 votes
1 answer
101 views

Now i have a fully functional PHP codes for login and registeration i was wondering if anyone could offer improvements to the code The code: Config.php: ...
Bebo's user avatar
  • 47
2 votes
1 answer
168 views

The code below is modified slightly from the code in this previous post. I believe the code below could be improved and more secured but i don't know how so someone please show me how an improved ...
Bebo's user avatar
  • 47
3 votes
1 answer
299 views

I've never had my code reviewed before, so I am taking this opportunity to see what can be improved with my coding style. I am still somewhat "new" to PHP, in the sense that I'm an old dog ...
Bellator's user avatar
  • 131
4 votes
4 answers
586 views

I wrote a list of functions in PHP that I want to use in my pet project as an autoloaded file for all parts of the app. The purpose of these function is to shorten the code you write for MySQL queries ...
Syed M. Sannan's user avatar
5 votes
2 answers
334 views

I just converted procedural code to OOP code. Is there any performance or security issue with this code or what should I consider further? interface ...
Thaninayagam's user avatar
2 votes
1 answer
64 views

I am uploading and selecting code from my MySQL DB and I have a feeling some of it could be written in a much shorter way but I don't know how. Can someone tell me if this is clean code or if it's too ...
user13477176's user avatar
-1 votes
2 answers
160 views

My script works but I just want to know how I can protect myself from SQL injection with Procedural Oriented MySQLi. Most of the tutorials are about Object-Oriented MySQLi and I'm not familiar with it ...
Pal Dhillon's user avatar
3 votes
1 answer
134 views

I am trying to improved my coding skills. I mainly work in web development. I had a "system" that I use in all my projects to fetch data from my DB to the browser. I tried an implementation ...
Chris Luna's user avatar
2 votes
3 answers
121 views

I asked this question before and mickmackusa and Your Common Sense gave me some good answers. I went over them and made as much ...
user13477176's user avatar
1 vote
2 answers
4k views

I want to know if it is okay/safe to use a prepared statement and mysqli_num_rows like this: ...
user13477176's user avatar
3 votes
2 answers
395 views

I am creating a social network and I want to know how secure and clean this code is. I had to update it to prepared statements because I was following a tutorial and even though it was made in 2019 it ...
user13477176's user avatar
4 votes
2 answers
228 views

I am a newbie and have been following a tutorial I bought on Udemy. But I was told it is old and teaches bad code practices. I used this in some code from my old projects. Now I'd like to know how ...
user13477176's user avatar
3 votes
1 answer
114 views

Mainly used Stack Overflow, so first time over here for a code review. I am trying to make some enhancements to a legacy application. I have some minor experience using Laravel, but this application ...
James Pavett's user avatar
7 votes
2 answers
873 views

I have recently adjusted the way I create my mysqli connections. Initially I would include the connection file and use ...
Billy Bones's user avatar
6 votes
3 answers
343 views

I use prepared statements often even when I only need to execute the statement once (for security), so I implemented a function to abstract away all the function calls on the mysqli_stmt object, as ...
potato's user avatar
  • 1,122
2 votes
2 answers
252 views

I wrote a little Shoutbox System which is working fine, but I want to know if there is something I can improve about this code. Here is my Shoutbox Overlay: ...
NvrKill's user avatar
  • 193
3 votes
1 answer
80 views

I want to make a booking entry. I want to ask whether the code that i wrote below is rightly format or not? I haven't tried it, because there's still more code that needs to be written. I just want ...
PHP Beginner's user avatar
4 votes
1 answer
107 views

I'm working on prepared statements for my website and I'm wondering if it's possible to have multiple prepared statements one after another. In this example, I have 2 select statements. I'm hoping ...
Cole's user avatar
  • 43
1 vote
1 answer
90 views

I am confused if I can do like this: ...
Ingus's user avatar
  • 215
1 vote
1 answer
163 views

Which one of these methods is better/safer to use? And what benefits could I get using one or other? Simple mysqli: connection.php ...
Ingus's user avatar
  • 215
5 votes
2 answers
128 views

I am producing a PHP code and I want to implement it in my server to do its function. My question is, are there any vulnerabilities that I should correct? I tried to establish the session first then ...
helloworld's user avatar
1 vote
2 answers
882 views

I'm creating some web apis to sync some data between desktop/mobile apps. Working on it, I wrote a simple wrapper for mysqli connection to simplify querying like: <...
Taekmin Lee's user avatar
3 votes
1 answer
147 views

I made an authentication system for my software (no browser is used) that works like this: User receives a Key on it's mail after buying the software User registers account using that key and inputs ...
Roberto Carlos's user avatar
0 votes
1 answer
270 views

As my first simple PHP project, I've created a simple project that allows you to just enter your name and two numbers, where it displays them on the page and stores them in a database. It consists of ...
user8758206's user avatar

1
2 3 4 5 6