
teynon
Members-
Posts
898 -
Joined
-
Last visited
-
Days Won
1
Everything posted by teynon
-
I would ask "What have you tried", but I'm guessing you're going to say you don't know what to try. So instead, have you tried google.com? Hopefully I'm not seeming rude by this, but you should always try to figure out the problem on your own with Google as a tool, then if you still can't figure it out after following a couple of tutorials, then ask the question with a good bit of detail.
-
Among many other things: $songtitle=$_POST['songtitle']; $songartist=$_POST['artist']; $songsingle=$_POST['single']; $songdescrip=$_POST['songdescription']; $songinsrt=mysql_query("INSERT INTO songtable (title,song,description) VALUES ('$songtitle','$songsingle','$songdescrip')") or die(mysql_error()); $vidtitle=$_POST['videotitle']; $ARTISRS=$_POST['artist']; $vidvideo=$_POST['video']; $viddescrip=$_POST['viddescrip']; $insert=mysql_query("INSERT INTO videotable (title,,description,video) VALUES ('$vidtitle','$viddescrip','$vidvideo')") or die(mysql_error());
-
Windows 7 Ultimate and FF 18.0.2
-
Jessica, your posts make me smile sometimes. When you fix the message that Jessica has stated and it's still not logging in, try applying the logical steps as I've been trying to tell you. I can identify another issue with your session variable as well. --- Edit: Simultaneous post. As for your comment on Jessica, no need to get all defensive. The point is that a lot of questions get posted here and they are not very well formed or miss several basic steps in debugging. You should look through some of the links in your signature such as how to ask questions and debugging your code. Asking other users to debug your code everytime something doesn't work isn't helping you become better at developing. Being a good developer means that you can debug your own code. Only after you have attempted to debug it, do you ask a question.
-
Ok, so if you output those variables, what does it output to the browser? And when you check it like if ($var), you are checking if it is true or false. You should try using if (!empty($var)) this will be more descriptive of what you are doing when you read it. I could probably solve this quickly for you, but I think it's better if you learn how to debug it, which is why I'm giving you these questions.
-
Maybe there isn't enough fire in your fox. My firefox works just fine with that code.
-
You could click the arrow and click "Always Share Location"
-
Ok, so let's apply the same logic. What are the conditions for $username && $password? How can you tell if those conditions are met? You need to know what is in those variables, correct? So let's output those to the page so you can see them.
-
Works fine for my firefox. Although it does annoyingly ask for permission every time.
-
Just curious, do you still have to refresh it? Or just that one time?
-
Let me see if I can teach a man (or woman) to fish today. You know that it isn't getting into the if statement. In order to get into the if statement, what conditions must be true? $num_rows != 1 ($num_rows must be less than or greater than 1) So, if there is a username, how many results will be returned?
-
If you run the query in the database, what does it return
-
window.onerror = function(message, url, lineNumber) { alert(message + " | " + lineNumber + " | " + url); return true; }; Add the code above and / or look at your console. (Run it again afterwards.)
-
http://lmgtfy.com/?q=PHP+prepared+statements Jessica, sorry to steal your thunder. Seemed appropriate.
-
As haku has stated, your code is not representing what you asked. But this might do what you are trying to do (http://jsfiddle.net/LW47W/): <html> <head> <style> #wrapper { background-color: #f0f0f0; position: relative; padding: 20px; } /* Article Page right column*/ #right { width: 36%; float: left; background-color: #dbdbdb; margin-top: 20px; margin-left: 0px; z-index: 1; position: relative; } /* Article Page left column*/ #left { width: 60%; float: left; background-color: #ffffff; -moz-box-shadow: 5px 0px 5px #888888; -webkit-box-shadow: 5px 0px 5px #888888; box-shadow: 5px 0px 5px #888888; z-index: 2; position: relative; } .width { padding: 20px; } </style> </head> <body> <section id="wrapper"> <section id="left"> <div id="sobox" class="width"> <jdoc:include type="modules" name="FeaturedContent" /> I'm a banana!<br />I'm a banana!<br />I'm a banana!<br />I'm a banana!<br /> I'm a banana!<br />I'm a banana!<br />I'm a banana!<br />I'm a banana!<br /> I'm a banana!<br />I'm a banana!<br />I'm a banana!<br />I'm a banana!<br />nkeys and bananas and I'm a banana! and I'm a banana! and I'm a banana! and </div> <div id="sobox" class="width"> <jdoc:include type="modules" name="SectionSlide" /> </div> <jdoc:include type="component" /> <br style="clear: both;"/> </section> <section id="right"> <div id="box" class="width"> <div id="rib"> <h3>Follow Quad News</h3> </div> <div id="boxcon"> <div id="sobox" class="width"> I'm a banana!<br />I'm a banana!<br />I'm a banana!<br />I'm a banana!<br /> I'm a banana!<br />I'm a banana!<br />I'm a banana!<br />I'm a banana!<br /> <jdoc:include type="modules" name="socialbanner" /> </div> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner1" /> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner2" /> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner3" /> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner4" /> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner5" /> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner6" /> </div> </div> <div id="box" class="mod"> <div id="boxcon"> <jdoc:include type="modules" name="banner7" /> </div> </div> </section> <br style="clear: both;"/> </section> <br style="clear: both;"/> </body> </html>
- 5 replies
-
- css
- absolute position
-
(and 1 more)
Tagged with:
-
I don't use codeignitor, but I don't think it has much to do with your jquery / javascript code? When you use those event handlers, I recommend using "on". cname.on("blur", function() { validateName(); }); cname.on("keyup", function() { validateName(); });
-
Need Help With Mobile Detect - Specifically the Tablet code
teynon replied to ecarollo's topic in PHP Coding Help
Please wrap your code in code blocks. (<> button) <?php include_once "wa/includes/Mobile_Detect.php"; $detect = new My_Mobile_Detect(); ?> <!-- TABLET START --><?php if ($detect->isTablet()) { ?> <div style="float:right;position:relative;margin:35px 25px 40px 0px;font-size:40px">(206) 601-1904</div> <!-- TABLET END --><?php } if ($detect->isMobile()) { ?> <a href="tel:(206) 601-1904" style="float:left; position:right; position:relative;top:10px; left:100px; margin-bottom:-25px !important; text-decoration:none;" title="Call (206) 601-1904"><img src="http://www.legend-cars.com/wp-content/uploads/2012/11/phone_icon.png" width="90" height="90" alt="Call (206) 601-1904"></a> <a href="tel:(206) 601-1904" style="text-decoration:none;" title="Call (206) 601-1904"><span style="font-size:40px;float:left; margin:15px 25px 0px 115px;line-height:1em;">Call<br />Us!</span></a> <a href="sms:2066011904" style="float:left; position:right; position:relative;top:10px; margin-bottom:-25px !important; text-decoration:none;" title="Text (206) 601-1904"><img src="http://www.legend-cars.com/wp-content/uploads/2012/11/text_icon.png" width="90" height="90" alt="Phone Icon"></a> <a href="sms:2066011904" style="text-decoration:none;" title="Text (206) 601-1904"><span style="font-size:40px;float:left; margin:15px 0px 0px 20px;line-height:1em;">Text<br />Us!</span></a> <?php } else { ?> <!-- DESKTOP START --> <div style="float:right;position:relative;margin:35px 25px 40px 0px;font-size:40px">(206) 601-1904</div> <!-- DESKTOP END --><?php } ?> -
The wording of your question is a little confusing, but if I understand what you are asking, change it to this: <select name="ratedrop[]">
-
Only variables should be passed by reference
teynon replied to tobimichigan's topic in PHP Coding Help
I'm running PHP 5.4.3 on my local machine and it doesn't fail, just outputs a warning. Perhaps it's the version you are using or a specific setup? Monkeys are everywhere! ( ! ) Strict standards: Only variables should be passed by reference in C:\wamp\www\test\newEmptyPHP2.php on line 11 Call Stack # Time Memory Function Location 1 0.0003 247856 {main}( ) ..\newEmptyPHP2.php:0 Monkeys are everywhere!End -
Only variables should be passed by reference
teynon replied to tobimichigan's topic in PHP Coding Help
Failing as in killing the script? It's not killing the script for me. But it might again depend on the PHP version. It makes sense from the C++ standpoint because you can't actually call a function like that. It is reporting a warning, which if something is ajax based, it will kill the ajax request. I didn't read into the code he posted, though, so I may be missing something. -
Only variables should be passed by reference
teynon replied to tobimichigan's topic in PHP Coding Help
<?php $array = array("apples" => "oranges", "monkeys" => "kittens"); $theKeys = array_keys($array); if (end($theKeys) == "monkeys") { echo "Monkeys are everywhere!"; } if (end(array_keys($array)) == "monkeys") { echo "Monkeys are everywhere!"; } echo "End"; For me, this triggers a Strict standards: Only variables should be passed by reference in C:\wamp\www\test\newEmptyPHP2.php on line 11 This error depends on what version of PHP and what error reporting you have enabled. -
I haven't used PHP FTP, but maybe you should try using the current PWD and the desired directory when you chdir? so echo ftp_chdir($conn, $workingDir . "/" . $newDir);
-
I was hoping for the output of the print_r. Why exactly is @ftp_nlist muted?
-
Can you post the html output of your code here and also do a var_dump or print_r of the directory array?