Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
SELECT username FROM table WHERE score > (SELECT score FROM table WHERE username = '$username');
-
So what's the problem? Do you get errors, what actually happens? First of all NEVER use short tags always start PHP with "<?php". How are you supposed to get $row['name'] when you only SELECT orig?
-
To display all the info you need a while loop like this: $resulttargetcr = mysql_query("SELECT Target FROM table WHERE Country='US'") or die(mysql_error()); while($rowtargetcr = mysql_fetch_row ($resulttargetcr)) { echo $rowtargetcr['ID'] . " - " . $rowtargetcr['Country'] . " - " . $rowtargetcr['Target'] . " "; } Then just do your other query inside this while loop.
-
Yeah that mean you have an error somewhere. Add this to the top of your script: ini_set ("display_errors", "1"); error_reporting(E_ALL); Like I said, you need to use HTML table tags to format neatly.
-
If you want a table you need to use HTML table tags to format it. Did you get an errors? Try this: //execute the SQL query and return records $result = mysql_query("SELECT id, sandwich, price FROM sandwiches") or die(mysql_error()); //fetch tha data from the database while ($row = mysql_fetch_array($result)) { echo $row['sandwich'] . " " . $row['price'] . " "; //display the results }
-
Where is this data coming from? All you do in your script is display all the sandwiches and id's from the sandwiches table. You need to use INSERT. But again, where is this data you would like to 'place in your mysql DB'?
-
I don't want to show this code it's a google analytics code i just want to paste it on every page so that i track my users their visits .... I know what Google Analytics is. Just put it in the footer or header include file, then it will keep track of every page.
-
The file size should be fine as it is very small for DB data. I would run this script via CLI. Nice script BTW, short 'n sweet!
-
First of all, I don't use Joomla so I'm not sure how the whole system works. Where do you want to add these lines (header, footer, nav)? Check to see if the location of where you want to add these lines is just an included file.
-
I can't believe I'm giving this tip, use ctl+f and find $agreement. If you are positive it's an array then print_r will work: print_r($agreement);
-
Very awesome, I'm going to definitely try it out!
-
1) Wrong section. 2) Your question doesn't make any sense. 3) What KIND of information? 4) Immediately... good luck!
-
Isn't the header included on every page?
-
What exactly do you mean... ???
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
He's probably changing it as we speak... type... -
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Still has 5 SQL Injection FAILURES. You want me to list them om? -
Sure, that's what a lot of sites do. They have a list of like 10 questions they ask randomly.
-
Random, or, you could make up your own weird question.
-
I agree with you. But the problem with that is when the i7 Core finally comes out, in the next few months you're going to wait for the i8 Core to drop, then a few more months, guess what? the i9 will be out in a couple months. See the cycle? You mine as well wait until you HAVE TO upgrade, IMO.
-
Why can't you just add it to the header...? Then it would be only inserting it on 1 line. Just do it a row below the header. Try it out! Then it should be easy. Or you don't think Joomla uses HTML? lol
-
The simplistic look is well accomplished. It's a little too simple for me, but if that's what you want. I like the design as a whole. A few points of opinion: -Give the footer some color. -Give the text some color (gray). -IMO the outer glow of the leaf looks good. Other than that I would need to see some more pages.
-
Use a captcha. Either that or ask a simple question for the user to answer, "What's 2 + 2?"
-
This is an odd question. So you, or the guys, developed enterprise level systems that aren't efficient OR secure? Google, tutorials, development standards, books etc... Amazon.com?