Wapdesire(blog Problem)

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

8 replies · 711 views · started 17 years ago · 1 min read

6 participants
morse Senior · 364 posts #1

the ibwf_blogs table is fine, its got all the required fields, yet I or any member of my site is unable to post any blog. It gives XError Posting Message, why is that so ? Plz can som1 help me?? The Table structure is ::::::

-- Table structure for table ibwf_blogs

CREATE TABLE ibwf_blogs ( id int(100) NOT NULL auto_increment, bowner int(100) NOT NULL default '0', bname varchar(30) NOT NULL default '', btext blob NOT NULL, bgdate int(100) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY bname (bname) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- And the code is CODE else if($action=="addblg") { echo "<head>\n"; echo "<title>Rock-On</title>\n"; echo "<link rel="StyleSheet" type="text/css" href="style/$theme[0]" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" />\n"; echo "<meta http-equiv="Cache-Control" content="no-cache" />\n"; echo "<meta http-equiv="Pragma" content="no-cache" />\n";

  echo "</head>";
  echo "<body>";

if(!getplusses(getuid_sid($sid))>50) { echo " "; echo "Only 50+ plusses can add blogs

"; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $msgtxt = $_POST["btitle"]; $msgtxt = $_POST["msgtxt"]; $qut = $_POST["qut"]; addonline(getuid_sid($sid),"Adding a blog",""); echo "<card id="main" title="rock-on.mobi">"; echo " "; $crdate = $time; $uid = getuid_sid($sid); $ress = false;

  if((trim($msgtxt)!="")&&(trim($btitle)!=""))
  {
  $ress = mysql_query("INSERT INTO ibwf_blogs SET bowner='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'");
  }
  if($ress)
  {
      $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$cow = $cow[0]+10;
mysql_query("UPDATE ibwf_users SET plusses='".$cow."' WHERE id='".$uid."'");
    echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully";
  }
  else{
    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
  }

  echo "

"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit();

}

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

Attachments: genproc.php
metulj Super moderator Principal · 1,726 posts #2

when i look at posted code... first idea... FFS <card>, <wml>, <body> and <html> in same file ?? that surely cant do any good 😠 🤔

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

morse Senior · 364 posts #3

yep metulj you are correct, the code was wrong, I corrected it now but still i cant post a blog

CODE else if($action=="addblg") { echo "<head>\n"; echo "<title>Rock-On</title>\n"; echo "<link rel="StyleSheet" type="text/css" href="style/$theme[0]" />"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" />\n"; echo "<meta http-equiv="Cache-Control" content="no-cache" />\n"; echo "<meta http-equiv="Pragma" content="no-cache" />\n";

  echo "</head>";
  echo "<body>";

if(!getplusses(getuid_sid($sid))>50) { echo " "; echo "Only 50+ plusses can add blogs

"; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } $msgtxt = $_POST["btitle"]; $msgtxt = $_POST["msgtxt"]; $qut = $_POST["qut"]; $crdate = $time; $uid = getuid_sid($sid); $res = false;

  if((trim($msgtxt)!="")&&(trim($btitle)!=""))
  {
  $res = mysql_query("INSERT INTO ibwf_blogs SET bowner='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'");
  }
  if($res)
  {
      $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$cow = $cow[0]+10;
mysql_query("UPDATE ibwf_users SET plusses='".$cow."' WHERE id='".$uid."'");
    echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully";
  }
  else{
    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
  }

  echo "

"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit();

}

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

something else Fellow · 2,296 posts #4

more than likely your input name on index.php are not the same as the strings name on genproc.php

  $msgtxt = $_POST["btitle"];

  $msgtxt = $_POST["msgtxt"];

  $qut = $_POST["qut"];
morse Senior · 364 posts #5

nope. its the same bro btitle and msgtxt the input names match exactly! CODEelse if($action=="addblg") {

if(!getplusses(getuid_sid($sid))>50) { echo "<head>"; echo "<title>Add Blog</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; echo "you should have 50 plusses to add a blog

"; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } addonline(getuid_sid($sid),"Adding a blog","");

echo "<head>";
echo "<title>Add Blog</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";

echo "

"; echo "<form action="genproc.php?action=addblg&sid=$sid" method="post">"; echo "Title:<input name="btitle" maxlength="30"/> "; echo "Text:<input name="msgtxt" maxlength="500"/> "; echo "<input type="submit" value="Add Blog"/>";
echo "</form>";

echo "

0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; echo "</body>"; }

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

morse Senior · 364 posts #7

Thanks opticalpigion, problem resolved, single variable having two different values wasnt being accepted in the database. Thank you very much

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

subzero Super moderator Fellow · 3,954 posts #8
   $btitle = $_POST["btitle"];
   $msgtxt = $_POST["msgtxt"];

to

$btitle=mysql_real_escape_string($btitle);
$msgtxt=mysql_real_escape_string($msgtxt);

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

joyahm Newbie · 2 posts #9

opticalpigion wrote: add this in genproc.php

��$btitle = $_POST["btitle"];
��$msgtxt = $_POST["msgtxt"];

Thank You, This is working................

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