Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI05
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fredrick Mangampu Theodorus Pardosi
PA1-1617-D3TI05
Commits
7cd4eede
Commit
7cd4eede
authored
May 22, 2017
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mengedit fungsi.php
parent
d1ea55f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fungsi.php
functions/fungsi.php
+5
-5
No files found.
functions/fungsi.php
View file @
7cd4eede
<?php
global
$conn
;
$conn
=
mysql
_connect
(
"localhost"
,
"root"
,
"
"
);
$conn
=
mysql
i_connect
(
"localhost"
,
"p1d3ti05"
,
"Fredrick8
"
);
if
(
!
$conn
){
die
(
"database connect problem"
);
}
$db_use
=
mysql
_select_db
(
"cafe_db"
,
$conn
)
or
die
(
"select db problem!!"
);
$db_use
=
mysql
i_select_db
(
$conn
,
"p1d3ti05_cafedb"
)
or
die
(
"select db problem!!"
);
function
execQ
(
$strQ
){
global
$conn
;
$res
=
mysql_query
(
$strQ
,
$conn
);
$res
=
mysql
i
_query
(
$strQ
,
$conn
);
return
$res
;
}
...
...
@@ -62,9 +62,9 @@ global $conn;
$resItem
=
execQ
(
$strQ
);
if
(
mysql_num_rows
(
$resItem
)
!=
0
){
if
(
mysql
i
_num_rows
(
$resItem
)
!=
0
){
$ret
=
array
();
while
(
$data
=
mysql_fetch_assoc
(
$resItem
)){
while
(
$data
=
mysql
i
_fetch_assoc
(
$resItem
)){
array_push
(
$ret
,
array
(
'id'
=>
$data
[
'id'
],
'name'
=>
$data
[
'name'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment