Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from PHP's old mysql_ to the newer mysqli_ functions #26

Merged
merged 41 commits into from Apr 3, 2019

Conversation

Projects
None yet
2 participants
@auge8472
Copy link
Owner

commented Mar 31, 2019

  • Change from PHP's old mysql_ to newer mysqli_ library
  • mask input values with mysqli_real_escape_string or intval dependig on the column types
  • remove single quotes from integer values in several queries (i.e. WHERE user_id = '42')

This is a work in progress.

@auge8472 auge8472 added this to the Version 1.8 milestone Mar 31, 2019

@auge8472 auge8472 self-assigned this Mar 31, 2019

auge8472 added some commits Mar 31, 2019

Change: remove quotes in case of integer values, context sensitive ma…
…sking of integers and strings in contact.php

auge8472 added some commits Apr 3, 2019

Change: remove quotes in case of integer values, context sensitive ma…
…sking of integers and strings in more_smilies.php
Change: remove quotes in case of integer values, context sensitive ma…
…sking of integers and strings in posting.php
Change: remove quotes in case of integer values, context sensitive ma…
…sking of integers and strings in register.php
Change: remove quotes in case of integer values, context sensitive ma…
…sking of integers and strings in forum_entry.php
Change: remove quotes in case of integer values, context sensitive ma…
…sking of integers and strings in mix_entry.php

@auge8472 auge8472 force-pushed the mysql branch from 6fc347b to f38e095 Apr 3, 2019

@auge8472 auge8472 marked this pull request as ready for review Apr 3, 2019

@auge8472 auge8472 merged commit b6801ce into trunk Apr 3, 2019

@auge8472 auge8472 deleted the mysql branch Apr 3, 2019

@auge8472 auge8472 restored the mysql branch Apr 4, 2019

@Helmut01

This comment has been minimized.

Copy link

commented Apr 4, 2019

Hallo Auge,

Deprecated: The each() function is deprecated.
Warning: This function has been DEPRECATED as of PHP 7.2.0. Relying on this function is highly discouraged.
Kommt vermutlich nur je einmal in functions.php und funcs.output.php vor:
alt:  while(list($key) = each($categories))
neu: foreach(array_keys($categories) as $key)
bzw.
alt: while(list($key, $val) = each($categories))
neu: foreach($categories as $key => $val)

Siehe stackoverflow. Getestet in meiner XAMPP php7.3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.