What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP/MySQL problem

PHP/MySQL problem
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: PHP/MySQL problem
:-/

Every INSERT query creates a new row. You can't use it to insert individual values into an existing row. That's what UPDATE is for.

Anyway, these changes will get rid of the parse errors...

echo "Processing"...
echo "Processing...";

$q[$cpost]=_POST["T".$cpost];
$q[$cpost]=$_POST["T".$cpost];

Also, here's another bug fix...

$scriteria=(MYSQL_QUERY("SELECT id FROM `chismografo`.`datos` WHERE q1='$q[1]'"));
$scriteria = mysql_insert_id();

There's more work needed, but I don't want to rewrite the whole script. You should learn from your mistakes... :p
12-15-2006 05:40 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP/MySQL problem - by YottabyteWizard on 12-14-2006 at 10:39 PM
RE: PHP/MySQL problem - by WDZ on 12-15-2006 at 05:40 AM
RE: PHP/MySQL problem - by YottabyteWizard on 12-15-2006 at 06:41 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On