View Full Version : what documents do you have open in np++ or <insert ide/text editor here>
Chippiewill
18-05-2013, 01:11 PM
please don't read if you don't like
http://i.imgur.com/e5s3LOp.png
David
18-05-2013, 01:14 PM
http://icap.me/i/0Sy72gWvoC.png
Aiden
18-05-2013, 01:14 PM
i dunt av any open atm oops
Chippiewill
18-05-2013, 01:14 PM
http://icap.me/i/0Sy72gWvoC.png
What's it the config for?
David
18-05-2013, 01:15 PM
What's it the config for?
says here it was for a game, cant remember why i was editing it
Kardan
18-05-2013, 01:16 PM
On my mobile, so none at the moment!
Chippiewill
18-05-2013, 01:16 PM
says here it was for a game, cant remember why i was editing it
Maybe you needed to change the resolution?
Aiden
18-05-2013, 01:17 PM
On my mobile, so none at the moment!
thts very interesting, thanks for sharing, i bet you have a fab phone
--
and still none cuz i dunt even know wut it is
David
18-05-2013, 01:17 PM
Maybe you needed to change the resolution?
yeah probably
Samantha
18-05-2013, 01:18 PM
None as I'm on a tablet, but for future reference how do you check :P?
Kieran
18-05-2013, 01:26 PM
http://tashload.com/Uploader/uploads//UVu7KOM.png
xxMATTGxx
19-05-2013, 09:33 AM
http://mattgarner.net/uploads/2013-05-19_10-34-53.png
http://mattgarner.net/uploads/2013-05-19_10-42-23.png
Mr-Trainor
19-05-2013, 10:52 AM
http://i40.tinypic.com/qq7a14.jpg
LiquidLuck.
19-05-2013, 07:53 PM
None :P
http://mattgarner.net/uploads/2013-05-19_10-34-53.png
Chippiewill
19-05-2013, 10:04 PM
http://mattgarner.net/uploads/2013-05-19_10-34-53.png
Are you on Matt's computer?
http://i.imgur.com/dgTbXEX.png
Are you on Matt's computer?
maybe. what's it 2 u
Calum0812
20-05-2013, 07:26 AM
On my iPad so none.
Do have a PowerPoint open in Google Drive though
http://i.imgur.com/kk8sFAG.png
Chippiewill
20-05-2013, 07:41 PM
Lee; if that's anything other than a really small project can I please implore you to:
a) Use a database abstraction layer
b) Use the MySQLi PHP extension instead of the old MySQL one, as that has now been officially deprecated by PHP and will be removed from PHP in a few versions
c) Use prepared statements or sprintf()
@Lee (http://www.habboxforum.com/member.php?u=45160); if that's anything other than a really small project can I please implore you to:
a) Use a database abstraction layer
b) Use the MySQLi PHP extension instead of the old MySQL one, as that has now been officially deprecated by PHP and will be removed from PHP in a few versions
c) Use prepared statements or sprintf()
Its not anything that will leave the comfort of localhost, but still improvements are always really useful so...
a) Elaborate please?
b) so literally type i at the end and thats it so mysqli_query or mysqli_fetch_assoc?
c) difference between print_r and sprint_f?
Chippiewill
20-05-2013, 08:19 PM
a) A database abstraction layer essentially handles a lot of the work for you, for instance instead of saying mysql_query(); you'd have a set of functions or an object that do all the various bits. E.g. $db->insert( <table name>, <array of stuff> ) and it'll insert everything in to the table and escape all the data for you. You can find some for free on the internet that are fairly good.
b) Pretty much but there are some changes on the original functions. Ideally you should use the object oriented version as it's a bit tidier.
c) print_r prints an array. sprintf is an efficient way of concentating a string (e.g. something like $foo = 'some bit of string' . $bar . 'some more string';), you can say $foo = sprintf( "SELECT * FROM table WHERE column = '%s' AND othercolumn = %d", $string, $integer ); and it'll insert the contents of $string where %s is and the contents of $integer where %d, importantly it enforces type, so only a string can be inserted where a %s is and only a number where a %d is.
http://icap.me/i/BroOhnNVf8.png
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.