Search found 789 matches
- Sat Oct 27, 2012 10:50 pm
- Forum: General Chat
- Topic: A New Project?
- Replies: 4
- Views: 1988
Re: A New Project?
Wordpress sucks though.
- Wed Oct 17, 2012 6:18 am
- Forum: PHP
- Topic: Undefined index on array output
- Replies: 3
- Views: 1565
Re: Undefined index on array output
$topicid = (int)$listresult['topicid'];That's the problem. You are putting the results into the topiclist array in the while loop.
- Mon Oct 15, 2012 12:27 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
- Replies: 6
- Views: 1709
Re: PHP Tutorial: Blog (Including Commenting) [part 04]
Backticks are recommended for field names.
Try doing this (instead of echo mysql_error())
Try doing this (instead of echo mysql_error())
$posts = mysql_query($sql) or die(mysql_error());
- Mon Oct 15, 2012 6:09 am
- Forum: Tutorials
- Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
- Replies: 6
- Views: 1709
Re: PHP Tutorial: Blog (Including Commenting) [part 04]
It's your query. You wrote like this, 'posts', 'post_id' AS 'id', 'posts', 'post_title' AS 'title', It should be like this, `posts`.`post_id` AS `id`, `posts`.`post_title` AS `title`, So you will have to go around changing the comments to periods instead (and no spaces) and use backticks instead of ...
- Mon Oct 15, 2012 5:39 am
- Forum: Tutorials
- Topic: PHP Tutorial: Blog(Including commenting)
- Replies: 2
- Views: 1219
Re: PHP Tutorial: Blog(Including commenting)
Wait, hang on... Did you try and run the PHP code as an SQL statement in phpmyadmin?
- Mon Oct 15, 2012 5:30 am
- Forum: PHP
- Topic: Array Keys and how do I get them?
- Replies: 6
- Views: 1926
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, $array = array( "cart" => array( "0" => array( "item_id" => "1", "item_name" => "item name", ...
- Sun Oct 14, 2012 11:44 pm
- Forum: PHP
- Topic: Array Keys and how do I get them?
- Replies: 6
- Views: 1926
Re: Array Keys and how do I get them?
So, if I understand this correctly you want (from your example) 0, 1 and 2?
- Sun Oct 14, 2012 8:34 pm
- Forum: PHP
- Topic: Array Keys and how do I get them?
- Replies: 6
- Views: 1926
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..
Maybe?
Not sure if that function works in "multiple dimensions" though, hmm..
- Sat Oct 13, 2012 12:28 pm
- Forum: Code
- Topic: News Post/Blog - flat pack system.
- Replies: 2
- Views: 3790
Re: News Post/Blog - flat pack system.
Don't use iframes.
- Thu Oct 11, 2012 10:22 pm
- Forum: Suggestions
- Topic: Source code to tutorials
- Replies: 3
- Views: 5291
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.
And why don't you post YOUR code so we can try and help you? Instead of looking on someone else's code.
- Fri Oct 05, 2012 2:36 pm
- Forum: General Chat
- Topic: Happy birthday jacek
- Replies: 8
- Views: 4944
Re: Happy birthday jacek
It doesn't say your birth date, and I never really thought of checking it everyday to see if it would changejacek wrote:It also says on my forum profile ? Sorry I missed it, thanks though !

- Fri Oct 05, 2012 2:33 pm
- Forum: SQL
- Topic: Jacek's maillinglist tutorial
- Replies: 31
- Views: 14619
Re: Jacek's maillinglist tutorial
<a href="unsubscribe.php?code=as9d876ya321h">Unsubscribe</a>I don't get what the problem is...
- Fri Oct 05, 2012 2:29 pm
- Forum: PHP
- Topic: Phone number validation
- Replies: 22
- Views: 9096
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
You would need to use the OR operator between the numbers, 31|32|xx|etc
- Mon Oct 01, 2012 12:33 pm
- Forum: PHP
- Topic: Phone number validation
- Replies: 22
- Views: 9096
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. if(isset($_POST["submit"])) { $phoneNumber = $_POST["phone_number"]; if(!preg_...
- Mon Oct 01, 2012 8:00 am
- Forum: PHP
- Topic: Phone number validation
- Replies: 22
- Views: 9096
Re: Phone number validation
You can do like this,
<input type="text" name="field1" value="<?php if(isset($_POST["field1"])) { echo $_POST["field1"]; } ?>" />
- Sun Sep 30, 2012 2:29 am
- Forum: General Chat
- Topic: Happy birthday jacek
- Replies: 8
- Views: 4944
Re: Happy birthday jacek
How do you know it's his birthday?
- Sat Sep 29, 2012 12:35 am
- Forum: General Chat
- Topic: Doctor Who
- Replies: 5
- Views: 2419
Re: Doctor Who
Never seen it, ever.
- Fri Sep 28, 2012 1:17 pm
- Forum: PHP
- Topic: Phone number validation
- Replies: 22
- Views: 9096
Re: Phone number validation
But do they start with 91, 92, 93 or 96? 

- Fri Sep 28, 2012 12:59 pm
- Forum: Suggestions
- Topic: Download with Progress Bar
- Replies: 2
- Views: 4124
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.
- Fri Sep 28, 2012 12:35 pm
- Forum: SQL
- Topic: Jacek's maillinglist tutorial
- Replies: 31
- Views: 14619
Re: Jacek's maillinglist tutorial
You're supposed to get that info from your host. The first parameter is 9/10 times "localhost" though.
- Fri Sep 28, 2012 7:21 am
- Forum: Tutorials
- Topic: user profiles: T_VARIABLE issue
- Replies: 1
- Views: 786
Re: user profiles: T_VARIABLE issue
include("{$path}/inc/user.inc.php);"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,
include("{$path}/inc/user.inc.php");