| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 573
![]() ![]() | Quick problem Hey, Can anybody tell me what's wrong with the following? I'd be very grateful PHP Code: PHP Code: |
| |
| | #2 (permalink) |
| Senior Member Join Date: May 2004 Location: France
Posts: 1,226
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I think it's because $sessionusername contains 'Resource id #5' and # should be escaped. Anyway I'm not sure it's normal you have $sessionusernam set to that... Try to display the value before execute the query... |
| |
| | THREAD STARTER #3 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 573
![]() ![]() | Thanks for the reply. I have retyped te code in the following way where $username is the username for the session: PHP Code: This returns PHP Code:
Last edited by Encenta.com; 09-12-2005 at 11:12 AM.
|
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Jun 2004
Posts: 587
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I think the problem is that you are trying to execute the query twice. PHP Code: PHP Code: I think the solution might be obvious now. This should work: PHP Code: -Bob
__________________ Can't wait to be out of this forsaken business. Getting close! :) |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Very wierd Windows problem | Ravi_s | Web Design Discussion | 0 | 08-12-2005 11:29 PM |
| Problem at godaddy or others not as quick??? | quality | Domain Name Discussion | 3 | 08-04-2005 08:52 PM |
| MySQL or PHP problem | Wildchild22 | Website Development | 10 | 07-14-2005 06:24 AM |
| vBulletin Problem!!!!!!!!!!!! | domaino | Programming | 11 | 06-23-2005 07:29 AM |