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

Added get_update_query #6

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Added get_update_query #6

wants to merge 1 commit into from

Conversation

mpfrenette
Copy link

This function properly compiles an UPDATE query using events to modify the parameters.

This function properly compiles an UPDATE query using events to modify the parameters.
@Joseffb
Copy link
Owner

Joseffb commented Apr 5, 2017

@mpfrenette please fix the conflicts and re-request the pull. Thanks.


$setvalues = array();
foreach($updatedfields as $key => $value) {
$setvalues[] = $key.'="'.mysql_real_escape_string($value).'"';
Copy link

@kavin-90 kavin-90 Apr 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you're using mysql_real_escape_string they're bad function use filter function or pdo 😛

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is getting re-evaluated as a whole. I agree we will move toward using the mappers built into f3 instead of recreating the wheel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants