Search found 1179 matches
- Mon Aug 20, 2012 3:00 pm
- Forum: SQL
- Topic: Checkbox filter
- Replies: 3
- Views: 1914
Re: Checkbox filter
You're gonna have to be a bit more specific on what you want and what you've tried so far.
- Sun Aug 19, 2012 5:47 pm
- Forum: Tutorials
- Topic: User Profile - edit profile not working.
- Replies: 19
- Views: 2634
Re: User Profile - edit profile not working.
You forgot to delimit the values. [syntax=php] $sql = "UPDATE `trades` SET `email` = '{$email}' `location` = '{$location}' `info` = '{$info}' WHERE `id` = {$_SESSION['id']}"; [/syntax] [syntax=php] $sql = "UPDATE `trades` SET `email` = '{$email}', `location` = '{$location}', `info` = ...
- Sun Aug 19, 2012 3:44 am
- Forum: Tutorials
- Topic: Parse Error: Profile [part 02]
- Replies: 1
- Views: 586
Re: Parse Error: Profile [part 02]
[syntax=php] foreach ((fetch_users() as $user){[/syntax]
You have two opening brackets where you only should have one.
You have two opening brackets where you only should have one.
- Sun Aug 19, 2012 1:16 am
- Forum: Tutorials
- Topic: User Profiles [part 02] Fetch_Users() function error.
- Replies: 7
- Views: 1319
Re: User Profiles [part 02] Fetch_Users() function error.
That error means something went wrong with your SQL query. Adding [syntax=php]echo mysql_error();[/syntax] under the failing query will provide a more detailed description of the error. [syntax=php]function fetch_users() { $result = mysql_query('SELECT `user_id` AS `id`, `user_name` AS `username` FR...
- Sat Aug 18, 2012 6:37 pm
- Forum: PHP
- Topic: Display more information
- Replies: 4
- Views: 941
Re: Display more information
I have no idea how to do this without Minequery. Sorry.
I'll leave this to someone more qualified.
I'll leave this to someone more qualified.
- Sat Aug 18, 2012 5:53 pm
- Forum: PHP
- Topic: Display more information
- Replies: 4
- Views: 941
Re: Display more information
I believe you need to use Minequery or something similar if I'm not mistaken.
Jacek has a series on Minequery which shows how to fetch the player list.
http://betterphp.co.uk/video.html?vid=aDRMCsAF8OM
Jacek has a series on Minequery which shows how to fetch the player list.
http://betterphp.co.uk/video.html?vid=aDRMCsAF8OM
- Sat Aug 18, 2012 4:54 pm
- Forum: General Chat
- Topic: Ordered an Arduino. Robot building time!
- Replies: 3
- Views: 1025
Re: Ordered an Arduino. Robot building time!
I got it from Sparkfun Electronics. They have a bunch of cool stuff for any and all hobby robot projects.
They got a 6wheeler chassi too, which seems a lot more rugged if you're looking to make something that needs to be able to take a beating.
It costs $200 more, but it seems extremely sturdy.
They got a 6wheeler chassi too, which seems a lot more rugged if you're looking to make something that needs to be able to take a beating.
It costs $200 more, but it seems extremely sturdy.
- Sat Aug 18, 2012 2:32 pm
- Forum: Suggestions
- Topic: Private Message Tools
- Replies: 3
- Views: 1912
Re: Private Message Tools
I have no idea how hotmail looks. Haven't used that service in over 5 years, but I guess you're looking for something like this: http://i48.tinypic.com/11t289f.jpg ( From Gmail in case you didn't notice ) Is that it? If so, that is BBCode at work. The buttons are linked to BBCode tags. The Bold butt...
- Sat Aug 18, 2012 2:27 pm
- Forum: CSS / Styling
- Topic: Feedback needed
- Replies: 9
- Views: 2813
Re: Feedback needed
I usually solve the IE problem by denying users who are running IE8 or lower. IE 9 and 10 are usually a sort of quick fix. If it still looks like crap in IE 10 I deny all IE users and give them a prompt to change their browser to a sensible one.
- Sat Aug 18, 2012 3:25 am
- Forum: General Chat
- Topic: Ordered an Arduino. Robot building time!
- Replies: 3
- Views: 1025
Ordered an Arduino. Robot building time!
So I just ordered my first Ardunio, and I'm excited! I also ordered one of these http://i49.tinypic.com/e803mx.jpg amongst other things. Should be fun putting these together. Any ideas of what I could build? I was thinking of building a robot that avoided obstacles at first, but that's a bit too eas...
- Sat Aug 18, 2012 2:29 am
- Forum: CSS / Styling
- Topic: Feedback needed
- Replies: 9
- Views: 2813
Re: Feedback needed
Bumps are fine as long as they have something to add to the topic.
Creating a design that's compatible with all major browsers is a pain in the a. I always quit half way through fixing all the stupid IE and Firefox kinks. For some reason it just works in Chrome. Every time, no exceptions.
Good luck![Smile :)](./images/smilies/icon_e_smile.gif)
Creating a design that's compatible with all major browsers is a pain in the a. I always quit half way through fixing all the stupid IE and Firefox kinks. For some reason it just works in Chrome. Every time, no exceptions.
Good luck
![Smile :)](./images/smilies/icon_e_smile.gif)
- Sat Aug 18, 2012 2:23 am
- Forum: Suggestions
- Topic: Private Message Tools
- Replies: 3
- Views: 1912
Re: Private Message Tools
Are you talking about BBCode? If so, take a look at this thread: viewtopic.php?f=5&t=41&p=10619
- Sat Aug 18, 2012 2:18 am
- Forum: Tutorials
- Topic: User System Reset Password
- Replies: 3
- Views: 3014
Re: User System Reset Password
Well, I did write everything in-browser and I never checked if it actually ran okay, seeing as you're not supposed to copy&paste this but rather learn the principles and then try it for yourself.
- Thu Aug 09, 2012 2:24 am
- Forum: PHP
- Topic: Link upload files to a MySQL database and then link files
- Replies: 5
- Views: 10607
Re: Link upload files to a MySQL database and then link file
Adding [syntax=php]echo mysql_error();[/syntax] under a failing query will provide a more detailed error message. This [syntax=php]$sql = "INSERT INTO `manual_name` (`$newfile`) VALUES ('{$_FILES['upload']['name']}' "; mysql_query($sql);[/syntax] won't work seeing as $newfile is not a colu...
- Tue Aug 07, 2012 10:11 pm
- Forum: PHP
- Topic: Link upload files to a MySQL database and then link files
- Replies: 5
- Views: 10607
Re: Link upload files to a MySQL database and then link file
Well, you would have to create an INSERT query in your upload.php. The way I usually do this is to link the file by it's ID in the table. [syntax=php]$sql = "INSERT INTO `file` (`file_name`) VALUES ('{$_FILES['upload']['name']}' "; mysql_query($sql);[/syntax] and then I would fetch the ite...
- Sat Aug 04, 2012 10:18 pm
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Re: Eurotrip!
I'm back now. In case you wondered.
- Sat Jul 28, 2012 8:53 am
- Forum: PHP
- Topic: displaying info from database using foreach- SOLVED
- Replies: 8
- Views: 1396
Re: displaying info from database using foreach
Since $rows is an array, you'll need to loop trough it.
[syntax=php]foreach ($rows as $row){
echo $row['username'];
}[/syntax]
[syntax=php]foreach ($rows as $row){
echo $row['username'];
}[/syntax]
- Sat Jul 28, 2012 8:51 am
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Re: Eurotrip!
Just letting you all know that I'll be away for approximately a week to ten days starting now. See you all when I get back ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
- Fri Jul 27, 2012 1:35 am
- Forum: PHP
- Topic: displaying info from database using foreach- SOLVED
- Replies: 8
- Views: 1396
Re: displaying info from database using foreach
So, which query is the one fetching the list? ![Razz :P](./images/smilies/icon_razz.gif)
![Razz :P](./images/smilies/icon_razz.gif)
- Thu Jul 26, 2012 5:38 pm
- Forum: PHP
- Topic: displaying info from database using foreach- SOLVED
- Replies: 8
- Views: 1396
Re: displaying info from database using foreach
Well, $subscribedto is not set inside the function, so it will remain blank. I would suggest passing the variable to the function. [syntax=php]function fetch_subscribedto($subscribedto) { $result = mysql_query("SELECT `id_user` AS `id`, `username` AS `username` FROM `fgusers3` WHERE `username` ...
- Thu Jul 26, 2012 5:35 pm
- Forum: General Chat
- Topic: editor software
- Replies: 4
- Views: 979
Re: editor software
Well, any text editor with syntax highlighting would work. I'd suggest Netbeans or Notepad++. Those are the only ones I use for PHP.