Zyga
Jr. Member

Offline
Posts: 87
Thank You
-Given: 0
-Receive: 0
|
 |
« Reply #30 on: April 07, 2006, 05:05:07 PM » |
|
oh, you are right.
you should use: if ($image_row['user_id']) { here whole code from first page }
$image_row['user_id'] is the image owner's user_id
hmmmm i dont understeand  it takes user_id field not comments_to_pm and (correct me if im wrong) it takes it from image table not users
|
|
|
|
|
|
Logged
|
|
|
|
Frobman
Pre-Newbie
Offline
Posts: 7
Thank You
-Given: 0
-Receive: 0
|
but again i have problem
i receive PM but when i click on it site works but over i see
Quote DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0) You have an error in your SQL syntax near 'AND (pm_type = 2 OR pm_type = 0)' at line 3
please help ! code is like it was :/ i change nothing
i dont know with one code fragment should i paste here
@Zyga: how did you solve the problem? (i´ve the same Error-Message) Thx Frobman
|
|
|
|
|
|
Logged
|
|
|
|
Zyga
Jr. Member

Offline
Posts: 87
Thank You
-Given: 0
-Receive: 0
|
but again i have problem
i receive PM but when i click on it site works but over i see
Quote DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0) You have an error in your SQL syntax near 'AND (pm_type = 2 OR pm_type = 0)' at line 3
please help ! code is like it was :/ i change nothing
i dont know with one code fragment should i paste here
@Zyga: how did you solve the problem? (i´ve the same Error-Message) Thx Frobman sorry but I do nothing it just start works few days later I dont know how can I help
|
|
|
|
|
|
Logged
|
|
|
|
ivan
4images Moderator
4images Guru
   
Offline
Posts: 2279
Thank You
-Given: 4
-Receive: 24
|
 |
« Reply #33 on: February 28, 2007, 12:56:51 AM » |
|
hi zusammen, wäre es möglich bei pm_from anstatt immer den admin zu nehmen die entsprechende id des absenders zu nehmen?
und wenn es ein gast ist, auch gast im der kopfzeile erscheint....
gruss ivan
|
|
|
|
|
|
Logged
|
|
|
|
impss
Sr. Member
  
Offline
Posts: 382
Thank You
-Given: 5
-Receive: 8
|
 |
« Reply #34 on: February 28, 2007, 04:08:39 AM » |
|
Im getting this error as others have 1 2
| DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (pm_type = 2 OR pm_type = 0)' at line 3
|
any help? thanks
|
|
|
|
|
|
Logged
|
|
|
|
Flo2005
Full Member
 
Offline
Posts: 237
Thank You
-Given: 0
-Receive: 0
Copy & Paste Profi :)
|
 |
« Reply #35 on: February 28, 2007, 06:39:09 AM » |
|
Im getting this error as others have 1 2
| DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (pm_type = 2 OR pm_type = 0)' at line 3
|
any help? thanks Which PHP Version is running on your server? I´ll remember  you have to change something in pm.php when you´re running PHP5
|
|
|
|
|
|
Logged
|
 Project offline
|
|
|
ivan
4images Moderator
4images Guru
   
Offline
Posts: 2279
Thank You
-Given: 4
-Receive: 24
|
 |
« Reply #36 on: February 28, 2007, 07:02:52 AM » |
|
correct this part:
$pm_from = 0; //Hier bitte die user_id vom Absender angeben
|
|
|
|
|
|
Logged
|
|
|
|
impss
Sr. Member
  
Offline
Posts: 382
Thank You
-Given: 5
-Receive: 8
|
 |
« Reply #37 on: February 28, 2007, 07:05:25 AM » |
|
Yea.. im running PhP5 correct this part:
$pm_from = 0; //Hier bitte die user_id vom Absender angeben
' do i change that to a 1?
|
|
|
|
|
|
Logged
|
|
|
|
ivan
4images Moderator
4images Guru
   
Offline
Posts: 2279
Thank You
-Given: 4
-Receive: 24
|
 |
« Reply #38 on: February 28, 2007, 07:29:55 AM » |
|
your user_id 
|
|
|
|
|
|
Logged
|
|
|
|
impss
Sr. Member
  
Offline
Posts: 382
Thank You
-Given: 5
-Receive: 8
|
 |
« Reply #39 on: February 28, 2007, 03:26:27 PM » |
|
Thank you it looks to be working. And Thanks for the quick responce  Is there any way to change it so the Pm is sent from the commenter?
|
|
|
|
|
|
Logged
|
|
|
|
|
Jan-Lukas
|
hi zusammen, wäre es möglich bei pm_from anstatt immer den admin zu nehmen die entsprechende id des absenders zu nehmen?
und wenn es ein gast ist, auch gast im der kopfzeile erscheint....
gruss ivan
Hbe es mir auch gerade eingebaut, und finde auch das dort die ID des Absenders reingehört. Über eine Lösung würde ich mich freuen Danke Harald
|
|
|
|
|
|
Logged
|
Danke Harald 
|
|
|
|