Search found 1179 matches
- Thu Jul 26, 2012 11:49 am
- Forum: PHP
- Topic: displaying info from database using foreach- SOLVED
- Replies: 8
- Views: 1396
Re: displaying info from database using foreach
That error means your SQL query is failing. Adding [syntax=php]echo mysql_error();[/syntax] under the query that's failing usually tells you what's wrong. In this query it's because you forgot quotes. This: [syntax=php]$result = mysql_query("SELECT `id_user` AS `id`, `username` AS `username` FR...
- Mon Jul 23, 2012 10:36 pm
- Forum: PHP
- Topic: Getting info from DB based on form submission - SOLVED!
- Replies: 7
- Views: 1026
Re: Getting information from DB based on form submission
Is this line giving you anything?
[syntax=php]die(mysqli_error($myConnection));[/syntax]
try changing that to die to echo.
[syntax=php]die(mysqli_error($myConnection));[/syntax]
try changing that to die to echo.
- Mon Jul 23, 2012 5:30 pm
- Forum: PHP
- Topic: Getting info from DB based on form submission - SOLVED!
- Replies: 7
- Views: 1026
Re: Getting information from DB based on form submission
You need to encase your variable in quotes if it contains a string. [syntax=php]$query = mysql_query("SELECT `id_user` FROM `fgusers3` WHERE `username` ={$to_username}");[/syntax] Needs to be: [syntax=php]$query = mysql_query("SELECT `id_user` FROM `fgusers3` WHERE `username` ='{$to_u...
- Mon Jul 23, 2012 4:27 pm
- Forum: PHP
- Topic: Basic Email Form Thingy
- Replies: 7
- Views: 1114
Re: Basic Email Form Thingy
Has to be [syntax=php]value=".$_SERVER[REMOTE_ADDR]."[/syntax] nope. single quotes is the correct syntax. I would however use curly brackets. Like this: [syntax=php]value='{$_SERVER[REMOTE_ADDR]}'[/syntax] This line is missing some single quotes. [syntax=php]else if($_SESSION[adform_acces...
- Sun Jul 22, 2012 3:21 pm
- Forum: PHP
- Topic: private messenging system (not tutorial) solved
- Replies: 9
- Views: 5507
Re: private messenging system (not tutorial)
solved it it was the way I was connecting to the db. thanks guys. Glad you solved it. Do not use *. Instead choose the information you want to get Would you access the information the same way? e.g. [syntax=php]echo $result["table"];[/syntax] Or is there no need for that? Yes, you're acce...
- Sun Jul 22, 2012 3:24 am
- Forum: PHP
- Topic: private messenging system (not tutorial) solved
- Replies: 9
- Views: 5507
Re: private messenging system (not tutorial)
As abcedea said the " expects parameter 1 to be resource, boolean given " error usually means the SQL statement contains an error. Adding [syntax=php]echo mysql_error();[/syntax] under the query that is failing will show you a more detailed error message. Add it underneath where you call m...
- Sat Jul 21, 2012 2:28 am
- Forum: Other
- Topic: Netbeans - Simplify new file creation
- Replies: 7
- Views: 2706
Re: Netbeans - Simplify new file creation
The problem with apache not starting is usually because you have either skype, pando media booster or teamviewer running in the background. They all occupy port 80, and apache won't start if the port is already occupied.
Re: Blog help
Ah
Glad you solved it ![Smile :)](./images/smilies/icon_e_smile.gif)
![Razz :P](./images/smilies/icon_razz.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
- Fri Jul 20, 2012 6:35 pm
- Forum: Other
- Topic: Netbeans - Simplify new file creation
- Replies: 7
- Views: 2706
Re: Netbeans - Simplify new file creation
JelvinJS7 wrote:i use mac
Right. Sorry
![Smile :)](./images/smilies/icon_e_smile.gif)
- Fri Jul 20, 2012 12:42 pm
- Forum: Other
- Topic: Netbeans - Simplify new file creation
- Replies: 7
- Views: 2706
Re: Netbeans - Simplify new file creation
The folder managment thiny is available for notepad++ as well. I love Netbeans though, and I never really thought the file creation was in any way tedious. It's pretty straight forward and once you know the hotkeys you can do it almost as fast as just ctrl + n.
- Thu Jul 19, 2012 7:52 pm
- Forum: Tutorials
- Topic: Activation Code Problems
- Replies: 6
- Views: 1068
Re: Activation Code Problems
the problem is that you're setting the datatype to int, and you try to insert a varchar string.
the random string you're producing will look something like this: dpwAGHOQY9 which is not only integers.
change the datatype to varchar(10) and it should work.
the random string you're producing will look something like this: dpwAGHOQY9 which is not only integers.
change the datatype to varchar(10) and it should work.
- Thu Jul 19, 2012 7:11 pm
- Forum: Tutorials
- Topic: Activation Code Problems
- Replies: 6
- Views: 1068
Re: Activation Code Problems
I can't find anything wrong with the code.
What is the datatype set as in the table?
What is the datatype set as in the table?
- Thu Jul 19, 2012 6:45 pm
- Forum: Tutorials
- Topic: Activation Code Problems
- Replies: 6
- Views: 1068
Re: Activation Code Problems
One line of code is not going to help us solve this. Post all of your code and I'll take a look at it.
- Thu Jul 19, 2012 2:43 pm
- Forum: Suggestions
- Topic: security: password encryption
- Replies: 4
- Views: 2247
Re: security: password encryption
There is absolutely no need for a tutorial on this. There are several hashing algorithms available, my personal favorite being Whirlpool. Here is a list of all the algorithms available for the hash() function and their output: [syntax=text] md2 32 a9046c73e00331af68917d3804f70655 md4 32 866437cb7a79...
- Tue Jul 17, 2012 4:30 pm
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Re: Eurotrip!
If you will be staying in Portsmouth you should note that it is about 475 km between the two. So it's about a 5 hour drive but you'll drive through Oxford so that might be exciting for various reasons. If you go by bus you'll go through Peterborough and that might also be exciting for various reaso...
- Tue Jul 17, 2012 1:13 pm
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Re: Eurotrip!
I went on google and did a search for Grimsby. The Wikipedia article was very enlightening. I am now a self-proclaimed Grimsby expert!
I might go there actually. It looks cozy![Smile :)](./images/smilies/icon_e_smile.gif)
I might go there actually. It looks cozy
![Smile :)](./images/smilies/icon_e_smile.gif)
- Mon Jul 16, 2012 5:59 pm
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Re: Eurotrip!
Alton towers looks pretty sick. I might check that out.
The Blackpool pleasure beach website was horrible. It hurt my brain. The rides were pretty cool though so I may check that out if I have time.
Thanks for the tips![Smile :)](./images/smilies/icon_e_smile.gif)
The Blackpool pleasure beach website was horrible. It hurt my brain. The rides were pretty cool though so I may check that out if I have time.
Thanks for the tips
![Smile :)](./images/smilies/icon_e_smile.gif)
- Mon Jul 16, 2012 5:52 pm
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Re: Eurotrip!
I figured I've only been there once when I was younger and I thought the Spinnaker Tower was the coolest thing ever, so I might go up there again. But that's pretty much all that was worth remembering from there. Apparently... Is there anything within reasonable travel distance ( 2-3 hours travel ti...
- Mon Jul 16, 2012 5:37 pm
- Forum: General Chat
- Topic: Eurotrip!
- Replies: 18
- Views: 2932
Eurotrip!
I finally got a date where I can go on vacation and I decided it would be awesome to go on a trip through Europe. I'll be starting from the north ( Sweden ) and will be traveling south, starting with Copenhagen ( Denmark ). Where do you guys think I should go from there? I was thinking Germany and t...
- Mon Jul 16, 2012 3:08 pm
- Forum: Premium Items
- Topic: Upload class - save file twice
- Replies: 2
- Views: 2459
Re: Upload class - save file twice
I'm just brainstorming here but wouldn't it be possible to duplicate the tmp file?
[syntax=php]$original_tmp = $_FILES['file']['tmp_name']
$resize_tmp = $_FILES['file']['tmp_name'][/syntax]
and then just use the respective clone?
/Edit; I have no idea, this might not work.
[syntax=php]$original_tmp = $_FILES['file']['tmp_name']
$resize_tmp = $_FILES['file']['tmp_name'][/syntax]
and then just use the respective clone?
/Edit; I have no idea, this might not work.
- Sat Jul 14, 2012 10:52 pm
- Forum: PHP
- Topic: Register and Login (User Account System) - Error
- Replies: 2
- Views: 599
Re: Register and Login (User Account System) - Error
Yes, there are two ways to do this. The first one is to turn of error reporting. That error is not harmful in any way. So removing strict reporting from your error reporting would be sensible. The other one is to split the functions to new lines like this: [syntax=php]$page = explode('/', $_SERVER['...