Something Simpe ..:(

Started on the old forum in December 2008 · view the original in the archive · old links redirect here

1 reply · 280 views · started 17 years ago · 1 min read

2 participants
ionutxp Developer · 137 posts #1

hi help me at this 🙁 please : i want 4 my chat top ... partners to put o their site link 4 example : http://mychat.bla/?site=blabla ---what its wrong on the code----

$_GET["site"];
$sitename=$_GET["site"];
$search = mysql_query("SELECT name, hits FROM tecweb_parteneri");
if($sitename==$search[0])
{
$hits2 = $search[1] + 1;
mysql_query("INSERT INTO tecweb_parteneri SET hits='".$hits2."' WHERE name='".$sitename."'");
}

--------pls help :P-------

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

something else Fellow · 2,296 posts #2

this will work unless your trying to add new site links into the database if there not already in there 🙂

$sitename=$_GET["site"];
$search = mysql_query("SELECT hits FROM tecweb_parteneri WHERE name='".$sitename."'");
$hits2 = $search[1] + 1;
mysql_query("UPDATE tecweb_parteneri SET hits='".$hits2."' WHERE name='".$sitename."'");

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