View Full Version : Advanced php Help with a Custom Modified Hack.
SaN-DeeP
06-04-2004, 03:03 PM
Hi All,
I am getting this error.
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/sandeep/public_html/rock-ya-baby/0v0/myrig.php on line 157
my line 157 is here:
INSERT INTO " . TABLE_PREFIX . "myrig_users (userid, text, processor_type, cpu_speed, oced_speed, mobo_manf, mobo_model, memory, video_card, video_chipset, 3DMark_2001SE, 3DMark_2003, Aquamark ,lastactivity) VALUES ($id, '" . addslashes($text) . "', '" . addslashes($processor_type) . "', '" . addslashes($cpu_speed) . "', '" . addslashes($oced_speed) . "', '" . addslashes($mobo_manf) . "', '" . addslashes($mobo_model) . "', '" . addslashes($memory) . "', '" . addslashes($video_card) . "', '" . addslashes($video_chipset) . "', '" . addslashes($3DMark_2001SE) . "', '" . addslashes($3DMark_2003) . "', '" . addslashes($Aquamark) . "', '" . time() . "')
Xenon
06-04-2004, 03:21 PM
hmm, i cannot see anything wrong there
can you please post 5 lines before and after that line as well, maybe it's just something simple somewhere else :)
SaN-DeeP
06-04-2004, 03:28 PM
hmm, i cannot see anything wrong there
can you please post 5 lines before and after that line as well, maybe it's just something simple somewhere else :)
thnx for quick reply xenon
i am customized the vbgarage mod
here are some more lines
$result_user = $DB_site->query("
SELECT * FROM " . TABLE_PREFIX . "myrig_users WHERE userid = $id
");
$user = $DB_site->fetch_Array($result_user);
if (empty($user)) {
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "myrig_users (userid, text, processor_type, cpu_speed, oced_speed, mobo_manf, mobo_model, memory, video_card, video_chipset, 3DMark_2001SE, 3DMark_2003, Aquamark ,lastactivity) VALUES ($id, '" . addslashes($text) . "', '" . addslashes($processor_type) . "', '" . addslashes($cpu_speed) . "', '" . addslashes($oced_speed) . "', '" . addslashes($mobo_manf) . "', '" . addslashes($mobo_model) . "', '" . addslashes($memory) . "', '" . addslashes($video_card) . "', '" . addslashes($video_chipset) . "', '" . addslashes($3DMark_2001SE) . "', '" . addslashes($3DMark_2003) . "', '" . addslashes($Aquamark) . "', '" . time() . "')
");
}
else
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "vbgarage_users SET text = '" . addslashes($text) . "', processor_type = '" . addslashes($processor_type) . "', cpu_speed = '" . addslashes($cpu_speed) . "', oced_speed = '" . addslashes($oced_speed) ."',mobo_manf = '" . addslashes($mobo_manf) ."', mobo_model = '" . addslashes($mobo_model) ."', memory = '" . addslashes($memory) ."', video_card = '" . addslashes($video_card) ."', video_chipset = '" . addslashes($video_chipset) ."', 3DMark_2001SE = '" . addslashes($3DMark_2001SE) ."', 3DMark_2003 = '" . addslashes($3DMark_2003) ."', Aquamark = '" . addslashes($Aquamark) ."', lastactivity = '" . time() . "' WHERE userid = $id
");
}
$result_image = $DB_site->query("
SELECT myrigid,name FROM " . TABLE_PREFIX . "myrig_images WHERE userid = $id
");
i am trying to make something like this
http://forums.extremeoverclocking.com/myrig.php
Pseudomizer
06-04-2004, 03:30 PM
Hi All,
I am getting this error.
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/sandeep/public_html/rock-ya-baby/0v0/myrig.php on line 157
my line 157 is here:
INSERT INTO " . TABLE_PREFIX . "myrig_users (userid, text, processor_type, cpu_speed, oced_speed, mobo_manf, mobo_model, memory, video_card, video_chipset, 3DMark_2001SE, 3DMark_2003, Aquamark ,lastactivity) VALUES ($id, '" . addslashes($text) . "', '" . addslashes($processor_type) . "', '" . addslashes($cpu_speed) . "', '" . addslashes($oced_speed) . "', '" . addslashes($mobo_manf) . "', '" . addslashes($mobo_model) . "', '" . addslashes($memory) . "', '" . addslashes($video_card) . "', '" . addslashes($video_chipset) . "', '" . addslashes($3DMark_2001SE) . "', '" . addslashes($3DMark_2003) . "', '" . addslashes($Aquamark) . "', '" . time() . "')
Variables should not start with a number. Your variables 3Dblabla are the problem. Replace it or add something before it. That will solve your problem.
Cheers,
Xenon
06-04-2004, 03:56 PM
exactly.
in the next query line, there are these vars also, so when you replace every instance of $3d_blabla with for example $blabla_3D it should work :)
SaN-DeeP
06-04-2004, 03:58 PM
Variables should not start with a number. Your variables 3Dblabla are the problem. Replace it or add something before it. That will solve your problem.
Cheers,
https://vborg.vbsupport.ru/external/2004/06/3.gif Pseudomizerhttps://vborg.vbsupport.ru/external/2004/06/3.gif
Thnx a ton man :) http://www.tech-arena.com/forums/images/smilies/thankyou.gif
Fixed the problem :)
Warm Regards,
Sandy...
SaN-DeeP
06-04-2004, 03:59 PM
exactly.
in the next query line, there are these vars also, so when you replace every instance of $3d_blabla with for example $blabla_3D it should work :)
thnx xenon
yea it works now ;)
REgards,
Sandy....
Xenon
06-04-2004, 04:00 PM
:)
you're welcome :)
btw. nice smilies ^^
SaN-DeeP
06-06-2004, 05:33 PM
i have made the database part and the php files
but facing some problems.
if some advanced coders can help me here.
i would appreciate
i will send u the files i have made.
both which create the db and also the one which displays the rig.
if someone interested please reply. and possibly if u can PM me ur yahoo/msn too
Regards,
Sandy...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.