parino_esquilado
Members-
Posts
60 -
Joined
-
Last visited
Never
Everything posted by parino_esquilado
-
I'm sure you must have an ID field preceding the 'username' field, but to be sure, could you edit this line: mysql_query($q); to mysql_query($q) or die(mysql_error()); and see what crops up
-
Create a cron!! LOL
-
Sorry if I sound stupid, but due to the random nature of the hashing process, won't your $salt change each time it is called. $alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcedfghijklmnopqrstuvwxyz1234567890"; $rand = str_shuffle($alpha); $salt = substr($rand,0,40); $hashed_password = sha1($salt . $_POST['password']);
-
if(!mysql_select_db($database) You are missing a bracket on line 12. It should be: if(!mysql_select_db($database))
-
Need php help for facebook application coding.
parino_esquilado replied to Thecoder's topic in Applications
Read the facebook documentation associated with it's application API. I have never used this API, therefore cannot help you in that respect, though I do hope you the best in working that one out -
Need php help for facebook application coding.
parino_esquilado replied to Thecoder's topic in Applications
http://www.w3schools.com/php/php_intro.asp Start there, you need to lay the foundations of your knowledge before you can build on them. -
Test it. =)
-
Please..help me with my simple code ?
parino_esquilado replied to curt girl's topic in PHP Coding Help
LaughOutLoud!! -
$add_sql = "INSERT INTO tbl_customer (od_payment_postal_code) VALUES('".$_POST["txtPaymentPostalCode"]."')"; is the only ever value that will be inputted into your database. $add_sql is repeatedly overwritten until it is finally executed.
-
To create a dynamic variable you need to wrap the second dollar with {} curly braces: <?php $variableName = "a1"; ${$variableName} = 100; ?> which would create a an $a1 variable with the value of 100 ($a1 = 100).
-
How to a check if a folder exists, and if not make it?
parino_esquilado replied to ActaNonVerba1's topic in PHP Coding Help
Files and directories are different. -
thanks. =)
-
Cannot include parent folder's php file
parino_esquilado replied to csplrj's topic in PHP Coding Help
And you're sure it exists there? -
<?php class a { var $things; public function __construct($stuff) { $this->things = new b; } } class b { var $morethings; $this->morethings = "something"; } $c = new a(); echo $c->things->__PARENT__; ?> Are a and b related now?
-
Take the following example: <?php class a { var $things; public function __construct($stuff) { $this->things = $stuff; } } class b { var $morethings; $this->morethings = "something"; } $c = new a(new b); echo $c->things->__PARENT__; ?> The line "echo $c->things->__PARENT__;" (as you can probably imagine) does not work. How would I output what the 'b' object is stored in ('a')?
-
$qInsert = "INSERT INTO `photos` (`photo_name`) VALUES ('".$photo."')"; $qInsert = "INSERT INTO photos (photo_name) VALUES ('$photo')"; That probably won't fix it, but the way you wrote it annoyed me lol
-
Muddy_Funster did you fail math? haha
-
Why is your indentation so mismatched?
-
Replace single quote does not work
parino_esquilado replied to nelliza111's topic in PHP Coding Help
Try htmlspecialchars() -
next time use [/ php] tags please.
-
$mem_tot_gold = 449005; $tot_gold = 157657698; $stake=number_format(($mem_tot_gold/$tot_gold)*100,2); echo $stake; Copy and paste this, there is no reason that it shouldn't work tbh.
-
Most Secure Way to Connect to a MySQL Database?
parino_esquilado replied to Far Cry's topic in PHP Coding Help
Close any script that uses mysql with mysql_close($link); -
The code I posted just replaces these functions function set_mob_name($mob_name) { $this->mob_name = $mob_name; } function get_mob_name() { return $this->mob_name; } function set_attack($attack) { $this->attack = $attack; } function get_attack() { return $this->attack; } function set_mob_hp($mob_hp) { $this->mob_hp = $mob_hp; } function get_mob_hp() { return $this->mob_hp; } function set_mob_level($mob_level) { $this->mob_level = $mob_level; } function get_mob_level() { return $this->mob_level; } So, to echo the mob_level you would call: echo $this->get_stat("mob_level");