Login
Search   Moderators Wanted: If you're interested please send your portfolio to info[at]itechforums.com
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 8
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2010, 05:41 AM
Josh Josh is offline
Member
 
Join Date: May 2008
Posts: 51
Default

Php mysql_query problem?


Php mysql_query problem?

mysql_query(INSERT INTO `log` (userid, date, time, operation) VALUES ('$userid', '$time555', '$time55', '$reason'), $con);

In the code its all on the same line, but yahoo wraps its.

I get PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
I know this means that something is wrong within the query, but i cant find what?

Help is appreciated in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2  
Old 02-13-2010, 05:43 AM
c0d3pRaDa c0d3pRaDa is offline
Junior Member
 
Join Date: Feb 2010
Posts: 3
Default

mysql_select_db(my_db, $con);
mysql_query(INSERT INTO log (userid, date, time, operation) VALUES ('$userid', '$time555', '$time55', '$reason'));
mysql_close($con);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-13-2010, 05:59 AM
Barron Barron is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default

add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-13-2010, 05:59 AM
Barron Barron is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default

add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-13-2010, 05:59 AM
Barron Barron is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default

add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-13-2010, 05:59 AM
Barron Barron is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default

add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 02-13-2010, 05:59 AM
Barron Barron is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Default

add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 04-23-2010, 07:40 PM
efgh432 efgh432 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 15
Default

Wittle Wabbit


Wittle Wabbit

A little girl walks into a pet shop and asks in the sweetest little lisp: "Excuthe me, mithter, do you keep wittle wabbits?"And the shopkeeper gets down on his knees,Discount ringsDiscount rings on line sale Co. Jewelry such as Earrings so that he's on her level, and asks: "Do you want a wittle white wabby or a soft and fuwwy bwack wabby or maybe one like that cute wittle bwown wabby over there?"The little girl puts her hands on her knees, leans forward and says in a quiet voice: "I don't fink my pyfon really giveths a thit."
__________________
Discount Replica watches
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does mysql_query automatically escape dangerous characters? rob_asks MySQL 3 02-09-2009 07:06 PM
C++ libmysql mysql_query() returns 0? CS Games MySQL 0 01-05-2009 11:57 PM
Multiple mysql_query statments in the same php script? io_questions PHP 1 07-23-2008 02:40 AM
How do I do an mysql_query in php using both and & or? Deanna PHP 0 06-18-2008 05:52 PM
Does passing a $_POST value to mysql_query change it in some way? I can not D DD MySQL 0 06-12-2008 06:05 PM

Your Ad Here

All times are GMT. The time now is 03:41 AM.