Stuart Kaufman

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jul 20, 2013 13:59
Anyone care to bail me out on this one?
Jul 20, 2013 13:58
and a similar query runs on another page but the one with this code is killing me
Jul 20, 2013 13:57
so that makes me sure it's connected
Jul 20, 2013 13:57
I know Im connecting to the DB because I can echo $ID even after require
Jul 20, 2013 13:56
Cld you guys kindly help me with my baffling problem?
Jul 20, 2013 13:56
Sweet
Jul 20, 2013 13:56
Not even sure if it is possible to edit
Jul 20, 2013 13:55
Would it be good to go back and correct this @MadaraUchiha or don't worry about it for this time?
Jul 20, 2013 13:53
Um Hello??
Jul 20, 2013 13:52
however if I run it in PHP MyAdmin's SQL tab it works
Jul 20, 2013 13:52
My true query is more complex but I can't even get "UPDATE TableName SET Homes=7" to run
Jul 20, 2013 13:51
It.s just that I'm not ready to move up as I still have trouble with this type of thing and Im currently following a tutorial
Jul 20, 2013 13:50
and I know mysql_ is obsolete
Jul 20, 2013 13:50
Sorry, I don't know if there's anything like CtrlK for posting in chat
Jul 20, 2013 13:49
<?php
require_once('A_file.php');
require ('connection_file.php');

if(isset($_GET['XXX'])) {
$ID = (int)$_GET['XXX'];
mysql_query("UPDATE `TableName` SET `Homes`=7");
}
?>
Jul 20, 2013 13:49
Any idea why this wont work?
Jul 20, 2013 13:47
Hello again everyone
Jun 6, 2013 22:23
and if im constructing a query wrong that's because Im working with an existing script
Jun 6, 2013 22:22
but I sincerely appreciate the help
Jun 6, 2013 22:21
As I said you guys, I am very novice
Jun 6, 2013 22:20
I thought this was necessary to make it output the proper html compliant url
Jun 6, 2013 22:20
Hmm
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jun 11, 2013 17:45
Ok Now It Works!! Cool!! I'll have to sleep on what you guys have said and I'll be referrring to the resources that others provided. Thanks!! You Guys Are Awesome!!
Jun 11, 2013 17:42
Im trying to keep up here
Jun 11, 2013 17:42
@Nile I still havent even made it work
Jun 11, 2013 17:40
but I still have a LOT to learn
Jun 11, 2013 17:40
I just learned a TON of PHP, MySQL etc
Jun 11, 2013 17:40
My head often spins and I get cross eyed I read so much
Jun 11, 2013 17:40
Im always reading stuff
Jun 11, 2013 17:39
Sure
Jun 11, 2013 17:38
@rlemon and @Nile I don't yet understand what Ive got. After implementing it and looking at it for a while It'll all start to come together
Jun 11, 2013 17:36
@Nile Thank You So Much For This!!
Jun 11, 2013 17:35
@rlemon Sorry about that. Could you permanently delete that message vs moving to trash?
Jun 11, 2013 17:32
@rlemon Sorry about that but Instead of moving it to trash
Jun 11, 2013 17:31
Im lost
Jun 11, 2013 17:31
Ok...
Jun 11, 2013 17:28
Chrome
Jun 11, 2013 17:28
2nd example a variable
Jun 11, 2013 17:28
The first example = a function
Jun 11, 2013 17:27
no nono
Jun 11, 2013 17:27
NOT Googling
Jun 11, 2013 17:27
Im thinking
Jun 11, 2013 17:27
hold on
Jun 11, 2013 17:27
Hmm... I actually don't think I can tell you the didffference between the two
Jun 11, 2013 17:25
@rlemon window.onscroll = loaddiv('div2', 'page1.html'); ??
Jun 11, 2013 17:23
@rlemon Yes.
Jun 11, 2013 17:22
I've got a javascript function which loads a dialog when the page is loaded but I wanted to add window.onscroll to the beginning of the script so it only loads on scroll but I don't know the correct syntax or how to wrap the rest of the JS in this window.onscroll tag. Help would be greatly appreciated.
Jun 11, 2013 17:20
;)
Jun 11, 2013 17:20
Hi, I Wont Ask to Ask but Would You Mind If I asked a question?
 

Trash can

Like the recycle bin, but trashier.
Jun 11, 2013 17:32
<div id='div2'></div>
<script type="text/javascript">
window.onscroll = loaddiv('div2', 'do-you-have-a-dirt-bike-for-sale.html');
function loaddiv(thediv, thefile) {
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject ('Microsoft.XMLHTTP');
}

xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById(thediv).innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open('GET', thefile, true);
xmlhttp.send();