Search found 789 matches

by EcazS
Sat Oct 27, 2012 10:50 pm
Forum: General Chat
Topic: A New Project?
Replies: 4
Views: 1103

Re: A New Project?

Wordpress sucks though.
by EcazS
Wed Oct 17, 2012 6:18 am
Forum: PHP
Topic: Undefined index on array output
Replies: 3
Views: 751

Re: Undefined index on array output

[syntax=php]$topicid = (int)$listresult['topicid'];[/syntax]
That's the problem. You are putting the results into the topiclist array in the while loop.
by EcazS
Mon Oct 15, 2012 12:27 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 6
Views: 1173

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Backticks are recommended for field names.

Try doing this (instead of echo mysql_error())
[syntax=php]
$posts = mysql_query($sql) or die(mysql_error());
[/syntax]
by EcazS
Mon Oct 15, 2012 6:09 am
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 6
Views: 1173

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

It's your query. You wrote like this, [syntax=sql] 'posts', 'post_id' AS 'id', 'posts', 'post_title' AS 'title',[/syntax] It should be like this, [syntax=sql] `posts`.`post_id` AS `id`, `posts`.`post_title` AS `title`,[/syntax] So you will have to go around changing the comments to periods instead (...
by EcazS
Mon Oct 15, 2012 5:39 am
Forum: Tutorials
Topic: PHP Tutorial: Blog(Including commenting)
Replies: 2
Views: 661

Re: PHP Tutorial: Blog(Including commenting)

Wait, hang on... Did you try and run the PHP code as an SQL statement in phpmyadmin?
by EcazS
Mon Oct 15, 2012 5:30 am
Forum: PHP
Topic: Array Keys and how do I get them?
Replies: 6
Views: 1057

Re: Array Keys and how do I get them?

Well, I suppose if the array will always be called "cart" you could do something like this. Hopefully I replicated your array correctly, [syntax=php] $array = array( "cart" => array( "0" => array( "item_id" => "1", "item_name" => "item...
by EcazS
Sun Oct 14, 2012 11:44 pm
Forum: PHP
Topic: Array Keys and how do I get them?
Replies: 6
Views: 1057

Re: Array Keys and how do I get them?

So, if I understand this correctly you want (from your example) 0, 1 and 2?
by EcazS
Sun Oct 14, 2012 8:34 pm
Forum: PHP
Topic: Array Keys and how do I get them?
Replies: 6
Views: 1057

Re: Array Keys and how do I get them?

http://php.net/manual/en/function.array-keys.php

Maybe?
Not sure if that function works in "multiple dimensions" though, hmm..
by EcazS
Sat Oct 13, 2012 12:28 pm
Forum: Code
Topic: News Post/Blog - flat pack system.
Replies: 2
Views: 2203

Re: News Post/Blog - flat pack system.

Don't use iframes.
by EcazS
Thu Oct 11, 2012 10:22 pm
Forum: Suggestions
Topic: Source code to tutorials
Replies: 3
Views: 3397

Re: Source code to tutorials

People have suggested it but you wont learn from it.

And why don't you post YOUR code so we can try and help you? Instead of looking on someone else's code.
by EcazS
Fri Oct 05, 2012 2:36 pm
Forum: General Chat
Topic: Happy birthday jacek
Replies: 8
Views: 1654

Re: Happy birthday jacek

jacek wrote:It also says on my forum profile ? Sorry I missed it, thanks though !

It doesn't say your birth date, and I never really thought of checking it everyday to see if it would change :lol:
by EcazS
Fri Oct 05, 2012 2:33 pm
Forum: SQL
Topic: Jacek's maillinglist tutorial
Replies: 31
Views: 7289

Re: Jacek's maillinglist tutorial

[syntax=xhtml]
<a href="unsubscribe.php?code=as9d876ya321h">Unsubscribe</a>[/syntax]
I don't get what the problem is...
by EcazS
Fri Oct 05, 2012 2:29 pm
Forum: PHP
Topic: Phone number validation
Replies: 22
Views: 3451

Re: Phone number validation

No, it would pick 3 or 1 or 2.
You would need to use the OR operator between the numbers, 31|32|xx|etc
by EcazS
Mon Oct 01, 2012 12:33 pm
Forum: PHP
Topic: Phone number validation
Replies: 22
Views: 3451

Re: Phone number validation

Sorry about the mess and confusion, but for some reason the function I linked didn't work for me. So here is how you can do it instead, I made an example but hopefully you can pick out what's going on. [syntax=php] if(isset($_POST["submit"])) { $phoneNumber = $_POST["phone_number"...
by EcazS
Mon Oct 01, 2012 8:00 am
Forum: PHP
Topic: Phone number validation
Replies: 22
Views: 3451

Re: Phone number validation

You can do like this,
[syntax=php]
<input type="text" name="field1" value="<?php if(isset($_POST["field1"])) { echo $_POST["field1"]; } ?>" />
[/syntax]
by EcazS
Sun Sep 30, 2012 2:29 am
Forum: General Chat
Topic: Happy birthday jacek
Replies: 8
Views: 1654

Re: Happy birthday jacek

How do you know it's his birthday?
by EcazS
Sat Sep 29, 2012 12:35 am
Forum: General Chat
Topic: Doctor Who
Replies: 5
Views: 1175

Re: Doctor Who

Never seen it, ever.
by EcazS
Fri Sep 28, 2012 1:17 pm
Forum: PHP
Topic: Phone number validation
Replies: 22
Views: 3451

Re: Phone number validation

But do they start with 91, 92, 93 or 96? ;)
by EcazS
Fri Sep 28, 2012 12:59 pm
Forum: Suggestions
Topic: Download with Progress Bar
Replies: 2
Views: 1954

Re: Download with Progress Bar

I did a bit of "Googling" and it seems like you need to use websockets and node.js for an efficient progress bar.
by EcazS
Fri Sep 28, 2012 12:35 pm
Forum: SQL
Topic: Jacek's maillinglist tutorial
Replies: 31
Views: 7289

Re: Jacek's maillinglist tutorial

You're supposed to get that info from your host. The first parameter is 9/10 times "localhost" though.
by EcazS
Fri Sep 28, 2012 7:21 am
Forum: Tutorials
Topic: user profiles: T_VARIABLE issue
Replies: 1
Views: 530

Re: user profiles: T_VARIABLE issue

[syntax=php]include("{$path}/inc/user.inc.php);"[/syntax]
This line is wrong, you're "closing" the statement with the semicolon and the ending parenthesis BEFORE the ending quote.
So change it to this,
[syntax=php]include("{$path}/inc/user.inc.php");[/syntax]