Jump to content
Larry Ullman's Book Forums

Viridi

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Viridi

  1. Thanks a lot for your advice guys! I really appreciate it a lot. I'll try/study every piece of advice you guys have given. Hopefully it'll get me a lot further in coding so I can eventually start HELPING instead of asking on the forums!
  2. Sorry for the slow reply guys, and thanks a lot for your advice. It's good to know I'm not a natural failure at php. I have 2 more questions if you don't mind. 1. Do you have any ideas on how to get myself to practice more? I have a hard time coming up with ideas that i can turn into a project. 2. Do you guys have any special software you use with php coding? I currently use Eclipse but the auto-completion confuses me a lot and calls for lots of debugging once a long file is done. Thanks again!
  3. Hey guys, I finally got around to finishing a large part of the book. I make sure I understand everything 100% before moving on to the next chapter. But even when studying like this, if I'd just come up with something I'd want to make in PHP and it isn't mentioned in the book, I have absolutely no idea how to start working on it. Sure if I had no idea how to make a calculator in PHP I could always just google a script/tutorial for that, but if I couldn't do that I would have no idea where to start. Obviously there's harder or custom things that need to be made at some point aswell, and at the moment there's not a single thing I would be able to code on my own that isn't mentioned in Google or the book. So my question is: How do you achieve that mindset in which you're able to recognize which kind of code you have to use to make a specific webapplication/function ?
  4. Hi HartleySan, Thanks for your response and sorry for the confusion. I did indeed had to link the CSS file in header.php, I always thought it had to be in index.php. Luckily, that was my only issue. My site is working out pretty well now. Thanks again!
  5. Hi guys, I'm carefully trying to make my first website using php in college classes. Anyway, I'm using the normal include ('header.php') in my index.php file but when I add the the following code; <link rel="stylesheet" type="text/css" href="mystyle.css"> in index.php it will only apply to the content in index.php, not whatever is in header.php Do I have to add the code in header.php and footer.php too? I'd think there has to be an easier way, cause if I take any random Wordpress template as an example it never has that code in index.php, header.php AND footer.php. Help would be much appreciated, I wish I had the time to just study the book properly.
  6. Hello LarryUllman community, I come to you for help once again We're working on a child-website of a website with products. The information in these databases are the same, but the table names and attribute names differ. the table in website A might be named "products" while it's named "items" on website B. The same thing goes for the attributes, they might be named "productid" on A and "productnum" on B. (Edit: by the way, we can't simply modify the mySQLdump because the information will be updated every 24 hours, automatically) I'm still not that good with both mySQL and php but as far as I can see the only thing we can do is add the tables of website A to website B, and then change the SELECT (etc) codes in the php of website B to the table and attributenames of website A, or am I thinking in a too difficult matter? Help would be much appreciated, this is driving me insane!
  7. Thanks a lot! And thank you for taking the time to help, I really appreciate it. Hopefully this'll help me on my way. I'll try it as soon as possible, when it isn't 5 in the morning where I life! Again, thanks a lot
  8. Hello, First off: I would like to thank Larry for this amazing book. It isn't just very informative and thorough but also a lot of fun to learn from. Unfortunately I havn't been able to look into it as much as I want to lately. I'm working with a php file that shows a little menu with dropdown menu's in which visitors can filter the results for price and other things before they click search and they see the results. Now my internship boss wants me to add a function so visitors can fill in the product name (or a part of the product name) in a textbox which then filters out all the other products. I have absolutely no idea where to start, yet my boss expects me to add this in 2 days. I really don't want to let him down either. It's a huge code and I'm not sure how easy or hard it is but any help or tips would be very much appreciated.
  9. Hello, I am currently in chapter 9 where I want to create a registration form (page 276) . It tells me to add require ('../mysqli_connect.php'); I tried putting mysqli_connect.php in a folder above the one that registration.php is in to fit the exact code in the book but it didn't work, then I tried putting it in the same folder and changing the code to require ('mysqli_connect.php') But when I try to register I get the error(s): Warning: require(mysqli_connect.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\phptest\Chapter 9\register.php on line 52 Fatal error: require() [function.require]: Failed opening required 'mysqli_connect.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\phptest\Chapter 9\register.php on line 52 It's probably something really simple but I'm kind of lost, so help would be much appreciated!
×
×
  • Create New...