Kindly fix this script(PLSS)

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

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

2 participants
waplux61 Junior · 10 posts #1

demo:http://waptop.isgreat.org/in.php?sid=1

There's no vote in receive in a site.Why? Pls can you fix the script below? [HIDE]<?php include("func.php"); include("conf.php"); connect($dbserver,$dbname,$dbuser,$dbpass); $sid=$_GET["sid"]; //HEADERS echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n"; echo "<html xmlns="http://www.w3.org/1999/xhtml">\n"; echo "<head>\n"; echo "<meta name="keywords" content="$meta_keyw"/>\n"; echo "<meta name="description" content="$meta_desc"/>\n"; echo "<meta name="robots" content="index, follow"/>\n"; echo "<meta name="revisit-after" content="1 days"/>\n"; echo "<meta name="rating" content="general"/>\n"; echo "<meta name="author" content="$admin_email"/>\n"; echo "<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n"; echo "<meta http-equiv="Cache-Control" content="no-cache" />\n"; echo"<title>$site_name</title>"; echo"<link rel="stylesheet" type="text/css" href="themes/$site_theme.css"/>"; echo"</head>"; //HEADERS END echo"<body>"; echo""; echo"Welcome to $site_name portal! "; echo"<img src="images/home.png"/><a href="index.php?sid=$sid">Enter</a>"; echo""; echo"<hr>"; echo"© $site_name"; echo"</body></html>"; ?>[/HIDE]

Mysterio Lead · 630 posts #2

well, it must have something like

$siteid = $_GET["sid"]; $actualviews = mysql_fetch_array(mysql_query("SELECT views FROM sites WHERE siteid='".$siteid."'")); $nowviews = $actualviews[0] + 1; mysql_query("UPDATE sites SET views='".$nowviews."' WHERE siteid='".$siteid."'");

mysterio.al - programming is a functional art

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