RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
Everything posted by RussellReal
-
to bridge off of what premiso said, you'd do like WHERE table1.id = table2.id etc etc
-
you do not get the information your user submits via a form.. with curl.. you get it with $_POST and $_GET
-
<?php $r = "/^(\w+\d)(\D+)$/i"; preg_match($r,"xyz87612rad",$m); print_r($m); ?>
-
a string 0 is different from a numeric 0 "0" is true, 0 is false.. remove it from the quotes strcmp($_REQUEST['mc_gross'],$total) != "0" change to strcmp($_REQUEST['mc_gross'],$total) != 0
-
well actually, nvm that won't exactly work, well it WOULD but it would be a waste of resources, I'd just take the list for example.. SELECT COUNT(*) as num, ref FROM members GROUP BY ref ORDER BY num DESC LIMIT 20 and then run queries on each of the ref ids like so: <?php while ($r = mysql_fetch_assoc($r)) { $referer = mysql_fetch_object(mysql_query("SELECT * FROM members WHERE id = '{$r['ref']}'")); // $referer->username will be the user's username.. } ?>
-
why?... just select the information with the same query =\
-
you might also want to do type="text/javascript"
-
You can't have javascript run while php is still running, essentially what this script will do is output that when the php engine exits.. so you will get the alert AFTER php exits..
-
Parse error: syntax error, unexpected '<'
RussellReal replied to codisweepstakes2's topic in PHP Coding Help
well which 1 is line 40? -
What would the proper way of writing: $tofile = "/dialer/$calldate/"
RussellReal replied to ghurty's topic in PHP Coding Help
And where does he use single quotes? And where in that quote do I say he uses single quotes? -
SELECT COUNT(*) as num FROM members GROUP BY ref ORDER BY num LIMIT 20
-
What would the proper way of writing: $tofile = "/dialer/$calldate/"
RussellReal replied to ghurty's topic in PHP Coding Help
note1: Using variables in strings are only possible in evaluating quotes (") like you have in your example. Using them inside of non-evaluating quotes (') will just output the variable name. note2: Using curly braces to tell the php interpreter the variable name is often the better option, because you MAY have a variable named $abc and want to use it in a string directly next to another VALID variable name character.. for example $abc = "123"; $e = "$abc456"; to avoid the variable being interpreted as $abc456 you'd surround the variable inside the string with curly braces. $abc = "123"; $e = "{$abc}456"; -
just put all the new data at the bottom of the htaccess =\ I don't see what can go wrong, maybe give your rewriterules the last rewrite flag [L]
-
Like.. what're you trying to pull in the first place. You said if the Value is 'ALL' but which is the value.. do you mean $make or $model? in any event you wouldn't have a $model if $make is 'all'.. correct? so do $query = trim("SELECT * FROM vehicles ".((empty($model))? (($make == 'ALL')? '':"WHERE make = '{$make}'"):"WHERE make = '{$make}' AND model = '{$model}'"));
-
theIframe.contentDocument.show_hide_box()
-
ok I have this code.. its just experimental right now.. but its having problems <?php date_default_timezone_set('America/New_York'); error_reporting(E_ALL); set_time_limit(0); echo "lol\n"; $connection = socket_create_listen(4005); socket_set_nonblock($connection); $clients = array(); while (1) { echo socket_strerror(socket_last_error($connection))."\n"; while ($new = @socket_accept($connection)) { echo "\nFound new!\n"; $clients[] = $new; } foreach ($clients as $v) { while ($line = socket_read($v,1024,PHP_NORMAL_READ)) { foreach ($clients as $v2) { socket_send($v2,$line,strlen($line),MSG_OOB); } } } usleep(500); } ?> the code all works, I've got the following ports forwarded to my computer on the network: 4001 - 4030 and 4005 falls between there so thats the port I'm using to accept connections.. however when I try to CONNECT to this.. I get "target machine actively refused connection": <?php date_default_timezone_set('America/New_York'); $socket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP); socket_connect($socket,'192.168.1.103',4005); echo $socket."\n"; sleep(300); ?> so.. I have no idea whats wrong with it, ports are forwarded, I have no firewall.. I can HOST game servers, web servers, why not a PHP based server?
-
I'm not a C/C++ developer, I only know everything web. All I know is I couldn't install either because I didn't have msdev, I googled msdev and found out it belonged to microsoft visual studios but got discontinued some time ago, so I got MSVC++ 6.0, naturally nothing can be easy and MSVC++ doesn't WORK on Windows XP, so I was wondering if anybody would know how to compile the library WITHOUT MSVC++ and if they could help me out. I have NO idea how >.> and I really need the ability to overwrite classes and remove functions for my newest project, so these are essentials. Thanks anybody for the help!
-
http://blog.outofhanwell.com/2006/03/10/object-oriented-callbacks/
-
if it is an iframe pointing to a file on the same domain you should be able to do iframe.contentDocument <-- to access that element's 'document' element. and then do some getElementByIds and stuff and then use .innerHTML.. if it ISN'T an iframe pointing to a file on YOUR domain, you'd want to use javascript injection. iframe.src = "javascript:void(document.getElementById('holder').innerHTML = table);";
-
This is a JavaScript question, if you're desperate however, I'd suggest getting a freelancer from the freelance portion of this forum, I know it should be relatively cheap to fix your problems, as I'm a freelancer and we work pretty fast (freelancers).
-
lol what.. I didn't understand one word.. do you understand the difference between rows and columns.. row is left to right.. and column is top to bottom
-
file_get_contents or curl.. add me to MSN: RussellonMSN@hotmail.com, I'm also into RS.. http://ws.lovinglori.com/
-
http://www.w3schools.com/Ajax/Default.Asp
-
dude if a user joins the channel the server will tell you he joins, find out how you can figure out how to know when a user joins and then parse the information and use it in php I'm gonna make a php IRC bot I was gonna make one in mIRC(mSL) but I forgot it, so imma make mine pro n stuff in php lol