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, |
|
 |

02-13-2010, 05:41 AM
|
|
Member
|
|
Join Date: May 2008
Posts: 51
|
|
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!
|

02-13-2010, 05:43 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 3
|
|
mysql_select_db(my_db, $con);
mysql_query(INSERT INTO log (userid, date, time, operation) VALUES ('$userid', '$time555', '$time55', '$reason'));
mysql_close($con);
|

02-13-2010, 05:59 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 4
|
|
add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
|

02-13-2010, 05:59 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 4
|
|
add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
|

02-13-2010, 05:59 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 4
|
|
add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
|

02-13-2010, 05:59 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 4
|
|
add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
|

02-13-2010, 05:59 AM
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 1
|
|
add or die(mysql_error($con)) to your code so that you can diagonose the actual error.
|

04-23-2010, 07:40 PM
|
|
Junior Member
|
|
Join Date: Mar 2010
Posts: 15
|
|
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."
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 03:41 AM.