Jump to content

Bryce910

Members
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Bryce910's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks I will! I wasn't sure where I should post this!
  2. I am a young php developer who also does pen-testing for websites and company's. I am looking for some people interested in getting their web applications tested for security flaws. I am doing this just for experience (so it is free). All i need is a comment in one of your pages giving me permission to do so. That proves it is your website and that I have permission. I do not mess with any data or functionality, all I do is test your website security and send you a report with what I find. I can also offer to fix the bugs I find. Looking forward to helping some people secure their websites!
  3. Yes you will use php for the server side and then some html/javascript for the UI.
  4. When in OOP I have been watching tutorials and some have functions just written like class user { public $user; public function __construct($u) { $this->user = $u; } } do I need to type public before the function or is it better practice to just put class user { public $user; function __construct($u) { $this->user = $u; } } Thanks!
  5. Is it bad practice to use $_COOKIE for your log in system and to protect your pages or would it be better to use $_SESSION? I have always used cookie but I am not sure if that is good practice
  6. I can't get my select_query or my insert_query to work. Is it possible for it to be a problem with my version of xampp? The only PDO stuff that has worked is the connection process of PDO.
  7. Did you create the database and table being used in the query? I'd guess your query is failing and ->query is returning FALSE rather than the statement object. That is what I originally thought but then I tipple checked everything and the query shouldn't fail. Since I am just selecting all from the table.
  8. To my understanding if it wasn't return an array of information it most likely isn't returning anything at all and the query is empty?
  9. I looked at that example and they do the same thing? I used this guide http://phpro.org/tutorials/Introduction-to-PHP-PDO.html to learn and I don't see any difference in that one either?
  10. I am new and just learning PDO and already having some problems with very simple stuff <?php $hostname = "localhost"; $dbname = "PDO"; $username = "root"; $password = ""; try { $dbh = new PDO("mysql:$hostname;dname=$dbname",$username,$password); $sql = "SELECT * FROM users"; foreach($dbh->query($sql) as $row) { echo $row['id'] . $row['name'] . $row['email']; } echo "Number of effected rows:" . $count; } catch(PDOExecption $e) { echo $e->getMessage(); } ?> Can you tell me what in that code is making me get the error: Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\xampp\PDO\select_query.php and what I would need to alter to fix the problem.
  11. Well I mean personally I code using my own style. But I have been told by many more experienced people that I need to use a public coding style like how pear has certain ways of doing the coding (line length,bracket placement, ..etc). So I was wondering if you guys have any suggestions other then PEAR.
  12. I am looking to finally move to a popular coding style. Anyone know any great ones I should look into? So far I have looked into PEAR. Thanks!
  13. I am new to java script and I am curious is it possible to have a java script function click when I hit a certain button on my keyboard. Like if I hit (space) it would run a java script function I have built?
  14. okay sounds like I will start using PDO. I have used a little of it but I just already knew mysql_ so I went back to it. I will make sure I use PDO for now on.
  15. I am curious if it is true that mysql_ extension is being depreciated in the next upcoming versions of php? Has anyone heard about if that is actually going to happen?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.