Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VONDERSCHER William
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Commits
96e8937f
Commit
96e8937f
authored
5 years ago
by
VONDERSCHER William
Browse files
Options
Downloads
Patches
Plain Diff
permiere question des indexes
parent
00f253ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GamePedia/php/script_TD3a.php
+5
-0
5 additions, 0 deletions
GamePedia/php/script_TD3a.php
GamePedia/src/controleurs/ControleurScript.php
+8
-0
8 additions, 0 deletions
GamePedia/src/controleurs/ControleurScript.php
with
13 additions
and
0 deletions
GamePedia/php/script_TD3a.php
+
5
−
0
View file @
96e8937f
...
...
@@ -45,4 +45,9 @@ echo 'Cache de requete mysql, tous les jeux: ';
echo
$c
->
allGame
();
echo
'µs .<br>'
;
echo
'index : <br>'
;
echo
'jeux qui commencent par Ma :'
.
$c
->
td3_index
(
'Ma'
)
.
'<br>'
;
echo
'jeux qui commencent par Ac :'
.
$c
->
td3_index
(
'Ac'
)
.
'<br>'
;
echo
'jeux qui commencent par Pr :'
.
$c
->
td3_index
(
'Pr'
);
echo
(
"</body> </html>"
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
GamePedia/src/controleurs/ControleurScript.php
+
8
−
0
View file @
96e8937f
...
...
@@ -279,6 +279,14 @@ class ControleurScript
return
Company
::
where
(
'name'
,
'like'
,
'%Sony%'
)
->
get
()
->
games
();
}
public
function
td3_index
(
$val
){
$time_start
=
microtime
(
true
);
Game
::
where
(
'name'
,
'like'
,
$val
.
'%'
)
->
get
();
$time_end
=
microtime
(
true
);
$time
=
$time_end
-
$time_start
;
return
$time
;
}
public
function
allGame
(){
$time_start
=
microtime
(
true
);
Game
::
get
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment