Login
Sign Up


You are using the mobile version of the forum, some features have been disabled to have it responsive.
Limelight CityRP - v4b1Limelight CityRP - EU Build
Ares Defence Services DiscordAres Defence Services
Limelight Discord
Limelight CityRP - v4b1Limelight CityRP - EU BuildAres Defence Services DiscordAres Defence ServicesLimelight Discord

receiptDevelopment Blog:

Development Contributor Workflow

receiptHR Blog:

What *are* they doing over there?

receiptTeacher Blog:

Insight into the Teacher Team

receiptDevelopment Blog:

Infrastructure Upgrade 11/2019

receiptDevelopment Blog:

how suggestions???

receiptDevelopment Blog:

Planning for the future.


This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

HTML / CSS / PHP / SQL
Voluptious radio_button_checked
Veteran
Veteran Member
Posts: 1,122
Threads: 50
Likes Given: 301
Likes Recieved: 462 in 215 posts
Joined: Aug 2015
Reputation: 10
#16
Mar 9, 2016, 08:04 PM
Ah, no it doesnt do that.

You can install Emmet though. div*5>p{$} = 5 divs with a p tag with the current numbet in it.
[Image: nrNF2MT.png]

[Image: khZmsDz.png]
(This post was last modified: Mar 9, 2016, 08:05 PM by Voluptious.)
The following 1 user Likes Voluptious's post:
  • goigle
Zyth radio_button_checked
Member
Membership
Posts: 149
Threads: 19
Likes Given: 17
Likes Recieved: 61 in 48 posts
Joined: Jan 2016
Reputation: 2
#17
Mar 9, 2016, 08:40 PM
(Mar 8, 2016, 09:47 AM)WildDorito Wrote: PHP (the worst language in my life)

</3

I do too much php :3 gud with sql and html5 and css
The following 2 users Like Zyth's post:
  • Voluptious, WildDorito
Zyth radio_button_checked
Member
Membership
Posts: 149
Threads: 19
Likes Given: 17
Likes Recieved: 61 in 48 posts
Joined: Jan 2016
Reputation: 2
#18
Mar 9, 2016, 08:42 PM
(Mar 8, 2016, 01:30 PM)Cameron Wrote:
(Mar 8, 2016, 09:47 AM)WildDorito Wrote: PHP (the worst language in my life)

I like PHP Sad

Im with u, WildDorito = pure evil xD
The following 1 user Likes Zyth's post:
  • WildDorito
Zyth radio_button_checked
Member
Membership
Posts: 149
Threads: 19
Likes Given: 17
Likes Recieved: 61 in 48 posts
Joined: Jan 2016
Reputation: 2
#19
Mar 9, 2016, 08:50 PM
Firstly, whenever making a site try to make it responsive so use % instead of px where you can.

Secondly Sublime Text FTW:
Just a snapshot of a project I'm working on
HTML:
[Image: nnmoIJx.png]

PHP:
[Image: KgotGx2.png]
(This post was last modified: Mar 9, 2016, 08:58 PM by Zyth. Edited 1 time in total.)
The following 1 user Likes Zyth's post:
  • WildDorito
Noble radio_button_checked
Veteran Developer
Developer
Posts: 1,231
Threads: 73
Likes Given: 1007
Likes Recieved: 1281 in 459 posts
Joined: Aug 2015
Reputation: 21
#20
Mar 9, 2016, 08:52 PM
I've never had any luck using Dreamweaver, I just usually use plain old Notepad (that's how the entire LL homepage was made)
The following 1 user Likes Noble's post:
  • George
Voluptious radio_button_checked
Veteran
Veteran Member
Posts: 1,122
Threads: 50
Likes Given: 301
Likes Recieved: 462 in 215 posts
Joined: Aug 2015
Reputation: 10
#21
Mar 9, 2016, 09:50 PM
@Noble,I still dont understand how you live...
[Image: nrNF2MT.png]

[Image: khZmsDz.png]
The following 5 users Like Voluptious's post:
  • Faustie, George, goigle, Noble, Zyth
WildDorito radio_button_checked
Australian M8
Membership
Posts: 223
Threads: 22
Likes Given: 158
Likes Recieved: 79 in 64 posts
Joined: Aug 2015
Reputation: 1
#22
Mar 9, 2016, 11:46 PM
My brilliant PHP skills:
Zyth radio_button_checked
Member
Membership
Posts: 149
Threads: 19
Likes Given: 17
Likes Recieved: 61 in 48 posts
Joined: Jan 2016
Reputation: 2
#23
Mar 9, 2016, 11:56 PM
(Mar 9, 2016, 11:46 PM)WildDorito Wrote: My brilliant PHP skills:
[spoiler="Tongue"]
<?php
$name = "Noble";
$software = "Notepad";
$sql = mysql_query("SELECT * FROM developers WHERE name = '$name' and software = '$software'");
$sqlcheck = mysql_num_rows($sql);
if ($sqlcheck == "1") {
echo ("Error: 404 Tongue ");
$life = "0";
} else {
echo ("OK");
$life = "1";
}
?>
[/spoiler]

Wheres the PDO </3
u just keep making me cri even more just stabbit :C
EDIT: On a serious note 1. Dont use stock mysql its so vulnerable and 2. That statement is vulnerable to SQL Injection rip specifically here: 
PHP Code:
SELECT FROM developers WHERE name '$name' and software '$software' 

if you used pdo you could do:
PHP Code:
$sql $conn->prepare("SELECT * FROM developers WHERE name=:name and software=:software");
$sql->bindParam(":name"$name);
$sql->bindParam(":software"$software);
$sql->execute(); 

Eh read up on PDO also $conn needs to be changed to whatever this is:

$conn = new PDO("mysql:host=" . $servername . ";dbname=". $dbname, $username, $password);

This should work, made it now, read up on PDO (Stands for PHP Data Objects if I remember correctly) its really good Tongue
NEVER USE MySQL alone, use either MySQLi or PDO!!!! 
(This post was last modified: Mar 10, 2016, 12:05 AM by Zyth.)
The following 3 users Like Zyth's post:
  • Cameron, Noble, WildDorito
Zyth radio_button_checked
Member
Membership
Posts: 149
Threads: 19
Likes Given: 17
Likes Recieved: 61 in 48 posts
Joined: Jan 2016
Reputation: 2
#24
Mar 10, 2016, 12:07 AM
Also never used dreamweaver, I might take a look if I get time but been super super busy lately trying to push out a beta version of a massive script I been working on in PHP and got too many tests :C fucking school bombarding us with tests.
grrrrrr
goigle radio_button_checked
hello there
Developer
Posts: 992
Threads: 96
Likes Given: 541
Likes Recieved: 593 in 266 posts
Joined: Aug 2015
Reputation: 17
#25
Mar 10, 2016, 12:19 AM
i know someone who writes code in microsoft word
         [Image: s7Y0Ioo.png]
The following 1 user Likes goigle's post:
  • WildDorito
Zyth radio_button_checked
Member
Membership
Posts: 149
Threads: 19
Likes Given: 17
Likes Recieved: 61 in 48 posts
Joined: Jan 2016
Reputation: 2
#26
Mar 10, 2016, 12:28 AM
(Mar 10, 2016, 12:19 AM)goigle Wrote: i know someone who writes code in microsoft word

yeye dont we all
Burnett radio_button_checked
Security Officer, CityRP2 Core Developer
Developer
Posts: 3,240
Threads: 201
Likes Given: 1434
Likes Recieved: 3296 in 981 posts
Joined: Aug 2015
Reputation: 45
#27
Mar 10, 2016, 12:38 AM
Is mixed HTML/PHP still a thing these days?
Come on guys. Get a proper template engine and go for it.
Bind tpl-vars inside your php-file and let the engine render it for ya.
Your code will look more organized and structured. This way Webdesigners don't have to mess with your PHP-Code in a template.
Can even have it cached serverside etc.

I recommend Smarty and Twig for PHP.
Good engine for Node is jade.
If you have questions regarding Limelight Gaming's&nbsp;security, infrastructure or backend related topics,
feel free to contact me directly via Discord or PM.
Please note that confidential information cannot be disclosed.

Burnett
WildDorito radio_button_checked
Australian M8
Membership
Posts: 223
Threads: 22
Likes Given: 158
Likes Recieved: 79 in 64 posts
Joined: Aug 2015
Reputation: 1
#28
Mar 10, 2016, 01:08 AM
(Mar 9, 2016, 11:56 PM)A Simple Waffle Wrote: Wheres the PDO </3
u just keep making me cri even more just stabbit :C
EDIT: On a serious note 1. Dont use stock mysql its so vulnerable and 2. That statement is vulnerable to SQL Injection rip specifically here: 
PHP Code:
SELECT FROM developers WHERE name '$name' and software '$software' 

if you used pdo you could do:
PHP Code:
$sql $conn->prepare("SELECT * FROM developers WHERE name=:name and software=:software");
$sql->bindParam(":name"$name);
$sql->bindParam(":software"$software);
$sql->execute(); 

Eh read up on PDO also $conn needs to be changed to whatever this is:

$conn = new PDO("mysql:host=" . $servername . ";dbname=". $dbname, $username, $password);

This should work, made it now, read up on PDO (Stands for PHP Data Objects if I remember correctly) its really good Tongue
NEVER USE MySQL alone, use either MySQLi or PDO!!!! 

I have tried to use MySQLi with limited success. I'll try PDO when I get home, school has blocked FTP connections Sad
Razz radio_button_checked
aggressive kid
Membership
Posts: 544
Threads: 66
Likes Given: 87
Likes Recieved: 193 in 138 posts
Joined: Aug 2015
Reputation: 10
#29
Mar 10, 2016, 01:34 AM
[html]
im a hacker
[/html]
Blurr radio_button_checked
Member
Membership
Posts: 699
Threads: 22
Likes Given: 404
Likes Recieved: 326 in 216 posts
Joined: Aug 2015
Reputation: 12
#30
Mar 10, 2016, 10:12 AM
I am amazed that you used original notepad to make Limelights page....... My mind = blown
[Image: sigs.php?steamid=STEAM_0:0:68019350&t=0]
The following 1 user Likes Blurr's post:
  • WildDorito




Users browsing this thread: 1 Guest(s)