Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 12 of 12
Search took 0.07 seconds.
Search: Posts Made By: rgb
Forum: PHP 05-11-2013, 01:01 PM
Replies: 5
Views: 234
Posted By rgb
Slightly off topic, but the font tag used by the...

Slightly off topic, but the font tag used by the original poster is no longer supported in HTML5.
Forum: Post a PHP snippet 03-20-2013, 07:42 PM
Replies: 0
Views: 343
Posted By rgb
Public Holidays in England and Wales as Julian Days

I couldn't find a simple routine for doing this, but found several people asking for one, so I put this together. It could probably be done more elegantly, but it's simple to understand this way. It...
Forum: PHP 02-26-2013, 11:07 AM
Replies: 11
Views: 457
Posted By rgb
I've always understood that mysql_fetch_array()...

I've always understood that mysql_fetch_array() should always include a second argument, either MYSQL_NUM or MYSQL_ASSOC, because by default it outputs both the numerically indexed and the...
Forum: PHP 01-19-2013, 06:05 PM
Replies: 7
Views: 474
Posted By rgb
Same principle. Wouldn't this work? ...

Same principle. Wouldn't this work?


foreach($people as $person) {
$sql = "Select id from table WHERE name = '$person'";
$result = mysql_query($sql);
while($row =...
Forum: PHP 01-19-2013, 04:26 PM
Replies: 7
Views: 474
Posted By rgb
mysql_fetch_array() needs a second argument e.g...

mysql_fetch_array() needs a second argument e.g MYSQL_NUM to return just one result row instead of both the associative and the numerical ones. You are also creating another array inside your while...
Forum: PHP 12-16-2012, 06:19 PM
Replies: 5
Views: 351
Posted By rgb
I would try calling the file on a path relative...

I would try calling the file on a path relative to the calling file rather than an absolute path - just in case I had the absolute path wrong.
Forum: PHP 12-15-2012, 10:52 PM
Replies: 5
Views: 308
Posted By rgb
I agree with Andrew. 72 tables is a bit over the...

I agree with Andrew. 72 tables is a bit over the top. Why not just assign the 36 parameters to 36 elements in an array, each element being a 0 or 1 for 'off' or 'on'. You could then implode the...
Forum: PHP 12-08-2012, 02:33 PM
Replies: 10
Views: 515
Posted By rgb
As a newcomer I'm learning a lot from this forum...

As a newcomer I'm learning a lot from this forum and I've been playing with some of the suggestions on this topic.
Wouldn't something simple like this do the job? Playing with Fou-Lou's latter...
Forum: PHP 11-26-2012, 11:51 AM
Replies: 10
Views: 735
Posted By rgb
I was overwhelmed by the ingenuity of hackers and...

I was overwhelmed by the ingenuity of hackers and closed my picture upload site. But if I were to do it again I would:

Upload the files to a folder below the public_html root so that it was not...
Forum: PHP 11-25-2012, 11:39 AM
Replies: 10
Views: 735
Posted By rgb
Validating the file type simply by checking the...

Validating the file type simply by checking the file extension is very dangerous. It's relatively easy for hackers to append a malicious script inside an image file. Even using GD functions to...
Forum: PHP 11-23-2012, 06:08 PM
Replies: 4
Views: 359
Posted By rgb
I sidestepped this problem once by embedding an...

I sidestepped this problem once by embedding an iframe into a Wordpress page and running my existing client login and booking system inside the iframe.
Forum: PHP 07-15-2011, 09:58 AM
Replies: 6
Views: 471
Posted By rgb
I think the greater than or equal to operator is...

I think the greater than or equal to operator is >=

=> associates the key to the value in an array.
Showing results 1 to 12 of 12

 
Forum Jump

All times are GMT +1. The time now is 12:06 AM.