Welcome, Guest.
Login
|
Register
Username:
Password:
Remember me:
PHP MySQL Functions
Please log in to post.
Watch thread
Unwatch thread
Started by
Sevas34
26 Mar 2011 23:27
By
Sevas34
(
286
)
On 26 Mar 2011 23:35
Yawn. It's easy, really. Just put it in a .php file.
<?php
exp
?>
Replace exp with:
•mysqli_connect("host","accnt","passwd","dbname")
So...
host=localhost(mysql11.000webhost.com for 000webhost)
acct=DBUNAME
passwd=DBPASSWORD
dbname=DATABASE
•mysqli_query($cxn,"query")
The query could be...
CREATE
DATABASE dbname ...
•mysqli_fetch_assoc/num_rows($result)
•mysqli_insert_id($cxn)
Blar.
Hi there! I've returned!
By
Sevas34
(
286
)
On 26 Mar 2011 23:36
The wink faces are just )
Hi there! I've returned!
By
Sevas34
(
286
)
On 27 Mar 2011 00:17
PHP and MySQL For Dummies Cheat sheet says it.
Author:
Janet Valade
Author of
PHP & MySQL For Dummies, 3rd Edition
. WAY better. 6-books-in-one.
And, it's easier using my way
Hi there! I've returned!
By
Sevas34
(
286
)
On 27 Mar 2011 00:18
PHP & MySQL Forr Dummies All in one Desk Reference for Dummies*
Hi there! I've returned!
By
M.J kInG
(
1334
)
On 27 Mar 2011 02:26
oh yupe ricky right
<?php
mysqli_connect
("host,"username,"password");
mysql_select_db("dbname");
i did it wrong
i really have to remember the script
A true developer
By
M.J kInG
(
1334
)
On 27 Mar 2011 02:27
include=("config.php")
A true developer
By
morofirst
(
123
)
On 27 Mar 2011 07:56
Also, you forgot some $ in front of the vars.
Na, just kidding. :)
By
Sevas34
(
286
)
On 04 Apr 2011 20:29
Um... the only var is $cxn...
Hi there! I've returned!
By
M.J kInG
(
1334
)
On 18 Apr 2011 15:05
or Select From Where User Vaule("$password",$username",$level");
A true developer
By
M.J kInG
(
1334
)
On 18 Apr 2011 15:07
svass34 u mean $con
A true developer
By
Sevas34
(
286
)
On 20 Apr 2011 00:04
No, $cxn.
Hi there! I've returned!
By
FiReStAr123123
(
189
)
On 03 Jun 2011 04:20
Sevas its $con.Theres not a thing called $cxn.
U.S. Air Force.First Class Airmen
By
Skittles
(
1292
)
On 03 Jun 2011 08:31
Erm, it shouldn't matter what the variable name is guys (within what's allowed as a name). It could be $poop or something for that matter.
It's my job to help the next generation, and set a good example for them. And for that I'll gladly lay down my life.
By
Sevas34
(
286
)
On 03 Jun 2011 13:01
Thank you, skittles.
Hi there! I've returned!
By
FiReStAr123123
(
189
)
On 04 Jun 2011 15:11
yes but sevas you act like a know it.:
yes $cxn is a variable. i wouldnt use varaibles with connect to SQL host.
U.S. Air Force.First Class Airmen
Nintendo 3DS is ™ Nintendo Co. Ltd. This website is ©2009-2024 HullBreach Studios. All rights reserved. Members are responsible for their own content. No account information will be given to third-parties without your consent.