Search found 5556 matches

by pickle
Fri Mar 22, 2019 10:00 am
Forum: Javascript
Topic: Using Javascript to access an html table
Replies: 2
Views: 72505

Re: Using Javascript to access an html table

If I were you I'd add an id to the <a />. That way you can reference it with:

Code: Select all

document.querySelector('#id-of-tag').style.fontWeight = 'bold';
by pickle
Thu Aug 16, 2018 2:25 pm
Forum: General Discussion
Topic: General SEO homepage query
Replies: 5
Views: 18660

Re: General SEO homepage query

What does it matter if the homepage isn't doing well? If the content pages are ranking well, that's all that matters. The homepage is just a landing page until people can go off to the page they actually want. What's probably happening is people are searching for "heating systems" and Goog...
by pickle
Fri Jun 17, 2016 3:03 pm
Forum: PHP - Code
Topic: Properly reading the data of .csv files
Replies: 1
Views: 3183

Re: Properly reading the data of .csv files

1) Nothing
2/3) Use fgetcsv(). It's a function specifically built to read in CSV files, and takes care of parsing escaping "", and all that jazz. It's just easier.
by pickle
Mon Nov 09, 2015 5:05 pm
Forum: PHP - Code
Topic: Mysql image storage issue
Replies: 4
Views: 2367

Re: Mysql image storage issue

I strongly recommend you don't store the image file in the database. It'll absolutely murder your page generation times.
by pickle
Fri Oct 16, 2015 3:28 pm
Forum: PHP - Code
Topic: Passing parameter via url
Replies: 7
Views: 2603

Re: Passing parameter via url

There is case sensitivity.

Code: Select all

$_get
is not a global variable.

Code: Select all

$_GET
is.

The quotes might be messing stuff up - try removing them.
by pickle
Tue Oct 13, 2015 5:03 pm
Forum: PHP - Code
Topic: How do I use Arrays, posting them and Expoding them?
Replies: 6
Views: 1794

Re: How do I use Arrays, posting them and Expoding them?

I usually do this instead: <input type = "text" name = "userid[]"... /> <input type = "text" name = "points[]"... /> <input type = "text" name = "teamname[]"... /> This will give you POSTed information like userid => ['user1','user2','user3...
by pickle
Thu Oct 08, 2015 5:19 pm
Forum: PHP - Code
Topic: How do I trap a bad URL and use it as a paramter?
Replies: 3
Views: 1817

Re: How do I trap a bad URL and use it as a paramter?

Since you've already cobbled together something I doubt you'll want to revisit, but here's my input anyway: There's no need for a 404 error to be triggered. In fact, it might muddy up the logs if you have legitimate 404 errors, and Google's SEO will almost certainly not be happy. @Celauran's rule wi...
by pickle
Mon Aug 31, 2015 10:15 am
Forum: PHP - Frameworks
Topic: Looking for a Framework Recommendation
Replies: 4
Views: 7418

Re: Looking for a Framework Recommendation

You're going to get 1000 responses, and 2000 recommendations. 1) Every framework is simple/hard to use depending on your experience. What you're looking for is great documentation/community. Laravel is extremely popular. 3) For speed, Phalcon is pretty much the undisputed king: http://systemsarchite...
by pickle
Thu Aug 27, 2015 10:31 am
Forum: HTML, CSS and other UI Design Technologies
Topic: textarea: can you make it same height as content text?
Replies: 2
Views: 5031

Re: textarea: can you make it same height as content text?

About the only way I know of is to use Javascript. Create an invisible <div> off screen that is the same width as the textarea will be, then insert the content into that div. Then, find the height of that div and set the height of the textarea to the same.
by pickle
Thu Aug 13, 2015 5:19 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: HTML photo box not well organized
Replies: 2
Views: 4866

Re: HTML photo box not well organized

It looks like your elements are floated, but they're not a uniform size. The square with the car is getting caught on the middle element on the row above. If you make all the elements the same height, this problem will go away.
by pickle
Mon Apr 20, 2015 12:32 pm
Forum: PHP - Security
Topic: I think I hired someone who can not code securely
Replies: 4
Views: 23316

Re: I think I hired someone who can not code securely

Once I saw $username = $_REQUEST['username']; $pass = $_REQUEST['password']; $qry = "SELECT * FROM `user` WHERE `email` = '$username' AND `password` = '".(md5($pass)."'"; I stopped reading. This is horrible. There is no sanitation of user provided input, so it would be incredible...
by pickle
Fri Apr 10, 2015 5:38 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: Does IE8 run responsive web sites?
Replies: 6
Views: 5302

Re: Does IE8 run responsive web sites?

IE 1.0 runs responsive websites - it's all a matter of how complex you get.
by pickle
Fri Dec 05, 2014 10:59 am
Forum: PHP - Code
Topic: understanding the use of Brackets in this function ()
Replies: 4
Views: 1291

Re: understanding the use of Brackets in this function ()

Yeah - the parentheses do absolutely nothing in PHP-land. The parentheses are entirely meant simply to be output as parentheses.
by pickle
Thu Nov 13, 2014 3:40 pm
Forum: PHP - Security
Topic: website stolen by IPHONE APP
Replies: 1
Views: 5684

Re: website stolen by IPHONE APP

- Maybe do a check on your login page to make sure the POST request is coming from your site, not from somewhere else? - Change the name of the username field to a random string, that is stored in the user's session. Then when a login occurs, check that POST variable. This way, you know you are only...
by pickle
Mon Oct 20, 2014 11:26 am
Forum: PHP - Theory and Design
Topic: PHP Algorithm for Destination.
Replies: 3
Views: 9865

Re: PHP Algorithm for Destination.

"Destination" isn't a data type, so it's hard to help. Is that a set of lat/long co-ordinates? Street address? Cartesian co-ordinates?