Picture does not change

Started on the old forum in September 2009 · view the original in the archive · old links redirect here

13 replies · 708 views · started 17 years ago · 1 min read

3 participants
Leviathan73 Senior · 260 posts #1

Hello friends, the image after 24 hours should change but not change, remains the same, why?

$pod = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='pod'")); 
  echo "<p align=\"center\"><b><u><i>Chatter of the Day:</i></u></b><br/>"; 
$sql=mysql_fetch_array(mysql_query("SELECT id, avatar FROM ibwf_users WHERE id='".$pod[0]."'")); 
$nick = getnick_uid($sql[0]); 
  echo "<p align=\"center\"><a href=\"index.php?action=viewuser&who=$sql[0]&sid=$sid\">$nick</a></small>";  
  echo "<p align=\"center\"><small><img src=\"$sql[1]\" width=\"100\" height=\"100\" alt=\"$sql[0]\"/><br/>";

🙁

something else Fellow · 2,296 posts #2

sql

INSERT INTO `ibwf_settings` ( `id` , `name` , `value` )
VALUES (
NULL , 'doc', '1'
);

script:

$check = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='doc'"));
$date = "".date("d")."";
if($check[0]!=$date){
$user = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users ORDER BY RAND()  LIMIT 1"));
mysql_query("UPDATE ibwf_settings SET value='".$date."' WHERE name='doc'");
mysql_query("UPDATE ibwf_settings SET value='".$user[0]."' WHERE name='pod'");
}
Leviathan73 Senior · 260 posts #3

I removed the code, and replace all the code with the copy paste, modify SQL, but do not see anything😐

something else Fellow · 2,296 posts #4

that code has to be run somewhere like top of index.php sql can be posted straight into db

Leviathan73 Senior · 260 posts #5

then .. Let's see if I understand correctly. the code that you gave me a few days ago, I have to replace, but I must add this new code somewhere in the index.php file, I understand you correctly?

something else Fellow · 2,296 posts #6

no dont replace the old code 🙂 just add the new code on your index.php (somewhere at the top probably best) and just run the sql in db 🙂 then if current date isnt equal date in database it updates uid for gallery and updates the date

Leviathan73 Senior · 260 posts #7

I understand! and this code here

INSERT INTO `ibwf_settings` ( `id` , `name` , `value` )
VALUES (
NULL , 'doc', '1'
);

, I have to add another row in the database folder ibwf_settings or should I add it along with the other code in the page index.php?🤨

something else Fellow · 2,296 posts #8

Leviathan73 wrote: I understand! and this code here

INSERT INTO `ibwf_settings` ( `id` , `name` , `value` )
VALUES (
NULL , 'doc', '1'
);

, I have to add another row in the database folder ibwf_settings or should I add it along with the other code in the page index.php?🤨

that is the new row in db all u have to do is run sql or do it the other way and add doc and 1 into ibwf_settings

Leviathan73 Senior · 260 posts #9

something, lol, thanks finally changed image 😛 Another question .. to make username emphasized how?

echo "<p align=\"center\"><a href=\"index.php?action=viewuser&who=$sql[0]&sid=$sid\"><u>$nick</u></a></small>";

I tried so, but remains the same😊

Leviathan73 Senior · 260 posts #12

I tried them, enlarge the text. I wanted the nick emphasized, such as nick nick above and below the line leviathan73


Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close