Search found 121 matches

by dusty
Mon Dec 09, 2002 5:25 pm
Forum: Databases
Topic: MySQL Update query syntax...
Replies: 6
Views: 2301

use or die(mysql_error())
by dusty
Mon Dec 09, 2002 5:19 pm
Forum: PHP - Code
Topic: Stopping a user from browsing via the address bar?
Replies: 9
Views: 2663

if(!empty($_SERVER...
by dusty
Mon Dec 09, 2002 3:06 am
Forum: PHP - Code
Topic: parse an array
Replies: 3
Views: 1015

Code: Select all

foreach($array as $key => $val) {
  if (empty($val)) unset($array[$key]);
}
by dusty
Mon Dec 09, 2002 1:06 am
Forum: PHP - Code
Topic: php string variables embedded in HTML
Replies: 18
Views: 4076

just because it doesn't work for you, doesn't mean they ARE required. echo "hello" . "world"; would work the same as echo "hello"."world"; with no errors. did you read anything on the error_reporting site? if you want to make error_reporting set it in php.ini....
by dusty
Mon Dec 09, 2002 12:57 am
Forum: Databases
Topic: Need help with database structure. Really Need Help!
Replies: 4
Views: 1738

ZEROFILL is what you need
by dusty
Mon Dec 09, 2002 12:37 am
Forum: PHP - Code
Topic: php string variables embedded in HTML
Replies: 18
Views: 4076

i'm not sure about the error in (1). spaces aren't really needed, just makes it easier to read.

you don't have incorrect settings, they're just different between the 2 servers. you can read more at http://www.php.net/error_reporting

not really clear about your problem in (3)
by dusty
Mon Dec 09, 2002 12:17 am
Forum: Javascript
Topic: PHP Newbie Questions concerning Background images
Replies: 4
Views: 3908

the poll is probably meant to be included into another page, so if you want to add it to your already made website, place <? require("poll.php"); ?> where you want the poll to be placed. the configuration portion of the script is made to make things easy on you when you're setting it up. i...
by dusty
Mon Dec 09, 2002 12:05 am
Forum: PHP - Code
Topic: php string variables embedded in HTML
Replies: 18
Views: 4076

concatenation is the word that describes the use of the periods. it's joining 2 strings together. the reason you are getting the error undefined variable is due to different error handling settings for the 2 different servers. it's not a critical error.
by dusty
Sun Dec 08, 2002 5:38 pm
Forum: PHP - Code
Topic: highlighting HTML code
Replies: 2
Views: 1451

you could make a script to highlight html, but there is no function to do it for you.
by dusty
Sun Dec 08, 2002 5:34 pm
Forum: PHP - Code
Topic: Stopping a user from browsing via the address bar?
Replies: 9
Views: 2663

Code: Select all

if(empty($_SERVER['HTTP_REFERER'])) die("Do not enter URLS manually");
try putting this at the top of your pages
by dusty
Wed Oct 02, 2002 10:23 am
Forum: PHP - Code
Topic: Can some1 explain this 2 me
Replies: 1
Views: 1093

$data = preg_replace("/\&#1111;POPUP\](.+)\&#1111;\/POPUP\]/iU","&lt;p class="smalltext" onMouseOver="MM_openBrWindow('$1','popup','width=600,height=400')"&gt;click here&lt;/p&gt;",$data); $data = preg_replace("/\&#1111;LINK\]...
by dusty
Sat Sep 21, 2002 10:30 pm
Forum: General Discussion
Topic: forums.devnetwork.net
Replies: 15
Views: 7979

i've had problems with this site timing out or just taking forever to load a few times and i'm on a 4meg line in VA
by dusty
Tue Sep 17, 2002 1:06 pm
Forum: PHP - Code
Topic: Half-Life Server Class
Replies: 6
Views: 1744

phpRCON is for hl. i might try one for q3, i made a server status script awhile back.. this might be a good addition
by dusty
Tue Sep 17, 2002 12:49 pm
Forum: PHP - Code
Topic: Encryption of a string
Replies: 38
Views: 5932

in that case just use your own salt.

$salt = "9sdf8a72";
$password = $password . $salt;
by dusty
Tue Sep 17, 2002 8:42 am
Forum: PHP - Code
Topic: passing variable functions from php page to php page
Replies: 4
Views: 1251

$file = file("register.php");
$file = str_replace($Replacement,$Errors,$file);

file() might do the trick.