Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
I think this is what you're looking for: http://www.socialenginedev.com/home.php
-
Not a very good friend, now is (s)he... If there's no sign in the "veiw source" then you probably won't be able to tell who made it.
-
Yeah, don't do this: $sql = "UPDATE `basket` SET qty = '$qty', price = '$price' WHERE item_id = '$item_id'" or die(mysql_error()); Also before looking at your code put this at the top and post if anything is displayed: ini_set ("display_errors", "1"); error_reporting(E_ALL);
-
What gives you that impression?
-
I am sure it is still true. But that does not mean that D3 will be free to play online...I mean I bet they will make it a subscription service. If they make Diablo 3 a online subscription service, then I will not be playing Diablo 3 online. I highly doubt they will do this unless Diablo 3 was an MMO (which it is not). Battle.net has always been free and I hope Dablo 3 with be onl battle.net and also free to play online like Diablo 2. This goes the same for starcraft 2, I hope. From what I heard, it will be on battle.net and also free. In addition Blizzard is allowing you to integrate your WoW accounts into battle.net.
-
Most popular way to debug, echo variables out. Here's your output, do you see what's going on here? $val = 12345; $val=substr($val,0); //12345 $price = explode(",", $val); //[0] => 12345 $tmp = number_format($price[1], 2); //0.00 $total_price += $tmp; //0 echo $total_price; //0 ?> Like Daniel is implying, we need more information. What did you change? What happens? How did it used to work (example)? etc...
-
Easy Question: How is the correct way to lay out PHP code?
Maq replied to johnsmith153's topic in PHP Coding Help
Makes sense you get a larger range of skill. No, like every suggested, you need indentation! -
You can extend the class you want to use and call the functions with parent. class MyController extends Thumbnail { function upload_image() { //queries and stuff to go here to get all of the form data parent::Thumbnail(200,200); parent::loadFile("filename.jpg"); parent::buildThumb(); } }
-
Easy Question: How is the correct way to lay out PHP code?
Maq replied to johnsmith153's topic in PHP Coding Help
The best thing to do is use an IDE. That way you can import standard formatting files and use a hot-key to format it automatically for you (I think in eclipse it's, ctr+shft+f). -
Easy Question: How is the correct way to lay out PHP code?
Maq replied to johnsmith153's topic in PHP Coding Help
Yes, you have no indentation. It's hard to debug that way especially with a lot of code. I tend to use Java's standard of formatting because that's what I learned first and use at work. A lot of different frameworks, applications, and third party systems have their own standards. i.e. Drupal - Coding standards. -
They are most likely custom built scripts due to the, "Powered by MySQL and PHP", logos at the bottom. Even so, they could be using different third-party scripts. You emailed them and they said they will not tell you...?
-
It's because PHP lives on the server and is pre-processed for HTML output. You can't alter PHP code client side like that.
-
When I played SC1 and D2 battlenet was free... Is this not the case anymore?
-
Have you ever played them? If not, you're missing out...
-
- I would suggest putting your logo at the top aligned with the rest of your text. - Try to align your top navigation links with the middle content. - While I'm on the middle content, it's kind of dull. Add some color, containers, stuff like that to liven it up a bit. - The color scheme seems off to me. You have gray backgrounds, and a white main container, then all of the sudden you have orange at the top... Seems out of place. - I guess you try to center everything an the sponsors column takes up a lot of the right side which pushes everything over to the left and looks awkward. - There's not much else to critique, your forum is broken and everything else doesn't have much content. Conclusion: Good start, needs some tweaking and filling in.
-
And your question is? PS - Use tags around code please, thx.
-
Try: ORDER BY CompanyName REGEXP '[0-9]', CompanyName
-
What exactly are you trying to do? What do you want to extract? You should probably read up on, "XPath".
-
I'm excited for both, although D2 had a tendency to take over my life months at a time... There is no official release date, only predictions. Rumors says maybe late this year for SC2, but who knows, you know Blizzard and their release dates. Guess that's why they don't even give one, cause they never finish on time, but it's worth the wait
-
It's impossible for us to help if you don't provide any code or helpful information.
-
[SOLVED] IF statement to define date Select dropdown boxes
Maq replied to kingnutter's topic in PHP Coding Help
Np Like rondog suggested, you should probably use || rather than OR, learn more here: Logical Operators. -
So you want something like: Why can't you just create a table with each paragraph being in a separate column while in the same row?
-
You could have also put the output in tags.
-
[SOLVED] mysql_num_rows warning - Does NOT make any sense...
Maq replied to szym9341's topic in MySQL Help
did you add it like this? return mysql_query($query, $this->link) or die(mysql_error()); That should be afer mysql_query & mysql_num_rows. -
How is this number generated? If it's a number in a string it's as simple as: $var = '2,340'; echo $var[0];