• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
[QUOTE=Paulendy;30202486]Well then could you recommend some good tutorials?[/QUOTE] [url]http://tizag.com/[/url] Tutorials are not much help when it comes to html css. goto [url]http://jsfiddle.net/[/url] and have some fun with things [editline]2nd June 2011[/editline] tip. Never use premade templates. they do not help you learn.
[QUOTE=zzlawlzz;30202582]Tutorials are not much help when it comes to html css. [/QUOTE] Stupidest thing I've read all day. Unless you're in a class for it how are you meant to know what does what?
[QUOTE=PieClock;30202699]Stupidest thing I've read all day. Unless you're in a class for it how are you meant to know what does what?[/QUOTE] I meant tutorials like "how to make a menu for your website" Describing what it does isn't a tutorial.
[QUOTE=zzlawlzz;30202734]I meant tutorials like "how to make a menu for your website" Describing what it does isn't a tutorial.[/QUOTE] We may have different methods of learning, but I found stuff like that extremely helpful, where you're not just overlapping boxes or some shit in CSS but instead following a proper example of what it'd be used for. I find I pick techniques up easier if I'm following a tutorial which has a pleasing result. I'd say describing what it does is a tutorial, whereas a "here take this code and paste it there with no explanation" tutorial isn't. Or am I taking your posts the wrong way?
[QUOTE=Giraffen93;30202446]I really want to ditch Dreamweaver now. Anyone know an alternative with: - FTP support that also has SFTP - Code formatting (makes it pretty) - Code coloring - Autocomplete including function names & parameters ( write </ and it autocompletes with </div> / </html> etc, and write subs and substr($); comes up etc) - Fully configurable[/QUOTE] Notepad++ has all of those except maybe the "Fully configurable" part. A lot of it is configurable though.
[QUOTE=alphaspida;30203634]Notepad++ has all of those except maybe the "Fully configurable" part. A lot of it is configurable though.[/QUOTE] Haven't found a code complete function that is as versatile as in dreamweaver. And the FTP sucks. Bad. Code coloring works really bad too.
Oh, maybe I've just been using it for a long time.
wow, people still didnt answer my question lol
Is there a way where I can point something in php to an earlier line? I know there was something like it in C++, but I forgot what it was.
[QUOTE=garychencool;30204579]wow, people still didnt answer my question lol[/QUOTE] If you're referring to your question on page 2, I already told you it was most likely a margin/padding issue. You should be able to work it out by yourself. It doesn't help that you gave us a cluster fuck of messy code, and you'd be extremely lucky if someone in this thread actually spent the time to make sense of it and clean it up for you. We're here to point you in the right direction, not do all your work for you. [editline]fuck[/editline] By the way: [url]http://jsfiddle.net/Apqz5/1/[/url]
[QUOTE=alphaspida;30204780]Is there a way where I can point something in php to an earlier line? I know there was something like it in C++, but I forgot what it was.[/QUOTE]don't even think about it
Anyone got a good tutorial on how to convert a HTML/CSS layout into Wordpress? If anyone with experience can do it, I'm willing to pay a bit. It's a very simple layout, look in WAYWO for screenshot (my latest post).
[QUOTE=TehWhale;30205037]don't even think about it[/QUOTE] Aha goto :p
[QUOTE=theJohn;30205370]Anyone got a good tutorial on how to convert a HTML/CSS layout into Wordpress? If anyone with experience can do it, I'm willing to pay a bit. It's a very simple layout, look in WAYWO for screenshot (my latest post).[/QUOTE] Easiest way I've found is to find an existing template that's similar in structure to yours, and then just redesign it using the WP Control Panel Editor.
Has anyone used Box Obsessed web hosting? I might use them. EDIT: Teh, ill take that as a "No don't use it"?
[QUOTE=toaster468;30210098]Has anyone used Box Obsessed web hosting? I might use them.[/QUOTE] Yeah [URL="http://lithiumhosting.com"]click here[/URL] for my review.
[QUOTE=alphaspida;30205383]Aha goto :p[/QUOTE] [QUOTE=TehWhale;30205037]don't even think about it[/QUOTE]
[QUOTE=alphaspida;30205383]Aha goto :p[/QUOTE] If I hired you, and you used [B]goto[/B] on your code, I'd fire you on the spot, then probably drive over to your house and shit in your closet, out of spite.
oh shit, you can use goto in php? :v:
[QUOTE=Giraffen93;30219198]oh shit, you can use goto in php? :v:[/QUOTE] they added goto, but no short array syntax [editline]3rd June 2011[/editline] productive open source project right there
Fine, I will not use goto. Forgot what I even needed it for anyways.
What the fuck. I was working with PDO and my database. It all worked fine, and then this exception started happening. [code]SQLSTATE[28000] [1045] Access denied for user 'qfiim'@'localhost' (using password: NO)[/code] I do use a password, and I didn't change anything related to that stuff. It happened randomly. What's this? [editline]3rd June 2011[/editline] This is the data $dbhost = "localhost"; $dbname = "qfiim_main"; $dbuser = "qfiim_user1"; $dbpass = [b]xxxxx[/b];
[QUOTE=TerabyteS;30222798]What the fuck. I was working with PDO and my database. It all worked fine, and then this exception started happening. [code]SQLSTATE[28000] [1045] Access denied for user 'qfiim'@'localhost' (using password: NO)[/code] I do use a password, and I didn't change anything related to that stuff. It happened randomly. What's this? [editline]3rd June 2011[/editline] This is the data $dbhost = "localhost"; $dbname = "qfiim_main"; $dbuser = "qfiim_user1"; $dbpass = [b]xxxxx[/b];[/QUOTE] Isn't it suppose to say 'qfiim_user1' @ 'localhost' ? [editline]3rd June 2011[/editline] it says you're not using password.
[QUOTE=zzlawlzz;30222932]Isn't it suppose to say 'qfiim_user1' @ 'localhost' ? [editline]3rd June 2011[/editline] it says you're not using password.[/QUOTE] The PDO object is initialized like this [code]$DBH = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpass);[/code] And I didn't change that statement before the error happened.
[QUOTE=TerabyteS;30223005]The PDO object is initialized like this [code]$DBH = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpass);[/code] And I didn't change that statement before the error happened.[/QUOTE] Well something's changed. You're logging in as qfiim instead of qfiim_user1.
[code]<?php require("db_data.php"); $dblink = new MySQLi( $dbhost, $dbuser, $dbpass, $dbname ); $qresult = mysqli_query($dblink, "SELECT * FROM thanks ORDER BY amount DESC"); var_dump($qresult); ?>[/code] Produces no errors or exceptions. Does this mean PDO fucked up? What the hell happened to it? [editline]3rd June 2011[/editline] What the hell. I've made a new file using PDO and it works.
[QUOTE=TerabyteS;30223306][code]<?php require("db_data.php"); $dblink = new MySQLi( $dbhost, $dbuser, $dbpass, $dbname ); $qresult = mysqli_query($dblink, "SELECT * FROM thanks ORDER BY amount DESC"); var_dump($qresult); ?>[/code] Produces no errors or exceptions. Does this mean PDO fucked up? What the hell happened to it? [editline]3rd June 2011[/editline] What the hell. I've made a new file using PDO and it works.[/QUOTE] echo your variables just before you make the PDO
Oh. I was doing a require outside of a function. I don't know why that's not allowed though.
Sorry if this is a retarded question, but does anyone know if using the query bindings in the database library in CodeIgniter escapes user input? Here's an example of the queries I've been doing: [img]http://gyazo.com/64b237b43c81756fd673e899fa27f327.png[/img] Am I OK to be doing this or should I be using MySQLi or PDO?
You're fine if you're using CodeIgniter
Sorry, you need to Log In to post a reply to this thread.