Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 09-28-2006, 10:54 AM If That Don't Work
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
this if shud insert into the field max where thers 1 field but it doesnt can any one help me. Also can u help me delte the old one first.

PHP Code:
<?php
$guest5 
"SELECT `guests` FROM msn_cache"
$result_guest5 = @mysql_query($guest5); 
while (list (
$guests) = @mysql_fetch_row($result_guest5))
echo 
"Online Now: $guests<br>"
$maxsql "SELECT `max` FROM msn_max_online"
$result_max = @mysql_query($maxsql); 
while (list (
$max) = @mysql_fetch_row($result_max))
echo 
"Most Online: $max <br>";
if (
$guests $max

$query mysql_query("INSERT INTO msn_max_online (`max`) VALUES ('$guests')");
mysql_db_query('$query');

?>

Last edited by evans123; 09-28-2006 at 10:57 AM..
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 10-06-2006, 07:52 AM Re: If That Don't Work
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
why u want to delete? just update that record, but first let's solve the problem.
- remove that @ for now, it's supressing the err msg if there is any.
- use mysql_error().
report if there is any error.
__________________
I am not smart, that's why i don't act smart


Please login or register to view this content. Registration is FREE

Last edited by jito; 10-06-2006 at 07:56 AM.. Reason: add
jito is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to If That Don't Work
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22884 seconds with 12 queries