Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 36
Search took 0.11 seconds.
Search: Posts Made By: Shauny_B
Forum: PHP 03-20-2011, 01:23 PM
Replies: 1
Views: 500
Posted By Shauny_B
Hello, I'd certainly recommend you checking out...

Hello,
I'd certainly recommend you checking out the new SPL types which are in PHP 5.3+.

These allow you to have fixed arrays etc... I'd also recommend you to check out namespaces so if your CMS...
Forum: PHP 03-20-2011, 01:18 PM
Replies: 2
Views: 576
Posted By Shauny_B
Hello, PHP has a function already built into...

Hello,
PHP has a function already built into it, called rand. Here's the documentation: http://php.net/manual/en/function.rand.php

To use it in your instance here's how:


echo rand(7777,...
Forum: ASP.NET 03-20-2011, 01:15 PM
Replies: 1
Views: 1,690
Posted By Shauny_B
Hello, Here's an example of how to use it with...

Hello,
Here's an example of how to use it with server side click events. But if you post some code I maybe able to help you more on what you're trying to achieve.

Link:...
Forum: PHP 03-02-2011, 11:35 PM
Replies: 1
Views: 1,442
Posted By Shauny_B
Hello, I've never tried using custom fonts on...

Hello,
I've never tried using custom fonts on the GD class but I have a feeling it may not be working for the following:

A) Fonts are not installed on the linux box.
B) Fonts may require a full...
Forum: PHP 03-02-2011, 11:28 PM
Replies: 1
Views: 260
Posted By Shauny_B
Hello, My recommendation would to be store data...

Hello,
My recommendation would to be store data in sessions for the mp3 whilst streaming, then you're able to both check/validate within php.

You should also look into streaming mp3s via php with...
Forum: PHP 03-02-2011, 11:21 PM
Replies: 2
Views: 296
Posted By Shauny_B
Casting should solve this issue: $row =...

Casting should solve this issue:


$row = (array)mysql_fetch_array($result) ;


Regards,
Shaun
Forum: PHP 03-02-2011, 11:18 PM
Replies: 10
Views: 761
Posted By Shauny_B
Couple ways of doing it: $oDate =...

Couple ways of doing it:


$oDate = strtotime($row['createdate']);
$sDate = date("m/d/y",$oDate);
echo $sDate


and for PHP5:
Forum: ASP.NET 03-12-2010, 09:21 AM
Replies: 2
Views: 1,407
Posted By Shauny_B
Hello, You'll need to reference a MySQL class...

Hello,
You'll need to reference a MySQL class library which are available freely on the internet. Just simply google for MySQL libraries for the .Net framework.

It'll be like how you use the...
Forum: PHP 03-09-2010, 10:35 AM
Replies: 18
Views: 2,066
Posted By Shauny_B
Hello, You could do what you advised on doing,...

Hello,
You could do what you advised on doing, but you could just contain those file paths on your machine, and include via your code.

You can include paths which are stored not only in www root,...
Forum: PHP 03-09-2010, 10:30 AM
Replies: 1
Views: 519
Posted By Shauny_B
Hello, There are a couple ways of doing this,...

Hello,
There are a couple ways of doing this, some being with client side validation, and server side... And of course both!

To check to see if they've "checked" the checkbox by either $_POST,...
Forum: Medium projects (new script, new features, etc) 03-02-2010, 02:21 PM
Replies: 1
Views: 1,773
Posted By Shauny_B
Hello, I'd be more than happy to teach you in...

Hello,
I'd be more than happy to teach you in return of you teaching me some techniques in Windows forms programming.

Let me know via PM if this is of interest to you.

Thanks,
Shaun
Forum: PHP 03-02-2010, 02:03 PM
Replies: 10
Views: 673
Posted By Shauny_B
Hello, Please escape the values before passing...

Hello,
Please escape the values before passing them into the database, this helps to minimize the rick of SQL injection.

To escape values use this PHP function:



$_GET["yourAttribute"] =...
Forum: PHP 02-28-2010, 10:37 AM
Replies: 3
Views: 558
Posted By Shauny_B
Hello Mike, The best way to learn PHP in my...

Hello Mike,
The best way to learn PHP in my opinion is by doing what you're doing now. Asking for help when you're stuck on forums, and of course by actualling coding with trial and error.
...
Forum: General web building 02-28-2010, 10:30 AM
Replies: 1
Views: 1,012
Posted By Shauny_B
Hello, If you're refreshing the page every 30...

Hello,
If you're refreshing the page every 30 seconds, I must try to understand you're using some client side languages?

What you could do to notify upon changes, is to have a AJAX request send...
Forum: Small projects (quick fixes and changes) 02-27-2010, 03:20 PM
Replies: 2
Views: 1,518
Posted By Shauny_B
Hello, I've a great interest in making, and...

Hello,
I've a great interest in making, and improving mmorpg's I'd like to be involved.

I'd not expect much pay (if any) depending on the type of game and success I feel it'll achieve.

Feel...
Forum: PHP 02-27-2010, 03:09 PM
Replies: 3
Views: 999
Posted By Shauny_B
If you search the methods available, you could...

If you search the methods available, you could look through what I've done and log any method names within a variable and also say in a static array.

Then you can read/write those out into a...
Forum: PHP 02-27-2010, 12:13 AM
Replies: 3
Views: 999
Posted By Shauny_B
Hello, It's probably best to define the class...

Hello,
It's probably best to define the class type in the contructor.


class Small
{
private $var = "hello"; // always make instance variables private

public function...
Forum: PHP 02-26-2010, 03:22 PM
Replies: 12
Views: 757
Posted By Shauny_B
Hello, The way I'd go about doing such a task...

Hello,
The way I'd go about doing such a task would be to use jQuery and AJAX, for example say if you "mouseover" on a specific word it then searches the database for any relavant data which matches...
Forum: PHP 02-26-2010, 03:17 PM
Replies: 6
Views: 1,002
Posted By Shauny_B
Hello, I think this is what you're looking for:...

Hello,
I think this is what you're looking for:


<?php

if(isset($_GET["URL"]))
{
$hostDetails = parse_url($_GET["URL"]);
Forum: PHP 02-24-2010, 04:20 PM
Replies: 8
Views: 3,411
Posted By Shauny_B
Hello, I'm unsure what you're trying to do, but...

Hello,
I'm unsure what you're trying to do, but if you're wanting to pass say an array or object to another page, I'd personally store it safe into a database as lets say serialize an object/array...
Forum: PHP 02-23-2010, 05:11 PM
Replies: 6
Views: 775
Posted By Shauny_B
Hello, Yeah, the ' basically means string for...

Hello,
Yeah, the ' basically means string for the MySQL query, wrapping variables inside the '' lets the query know string is inside it, but always make sure that you escape values coming direct...
Forum: PHP 02-23-2010, 03:05 PM
Replies: 1
Views: 679
Posted By Shauny_B
Hello, I noticed that you don't show which type...

Hello,
I noticed that you don't show which type of array you're wanting returned.

Also, if there's more than one matching result set use the following:

$query = mysql_query("SELECT blah FROM...
Forum: PHP 02-23-2010, 02:57 PM
Replies: 6
Views: 775
Posted By Shauny_B
Hello, Take a look at this: ...

Hello,
Take a look at this:



$recipe_updatesql = "UPDATE recipe SET title = '".mysql_real_escape_string($_POST['title'])."', description =...
Forum: MySQL 02-23-2010, 02:41 PM
Replies: 4
Views: 2,049
Posted By Shauny_B
Ahh of course, sorry for missing that, happy...

Ahh of course, sorry for missing that, happy someone saw and corrected. :thumbsup:
Forum: PHP 02-23-2010, 07:55 AM
Replies: 1
Views: 1,495
Posted By Shauny_B
Hello, You need to pass the instance in by an...

Hello,
You need to pass the instance in by an array too like the following:


Here's an example where I've used it:

/**
* DetectRequestType - Checks to see all the keys and values of...
Showing results 1 to 25 of 36

 
Forum Jump

All times are GMT +1. The time now is 09:01 PM.