The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Here is a small portion of the form. As you can see "planid" has a value.
HTML Code:
<form action="hosting.php?do=do_request" method="post"> <input type="hidden" name="userid" value="1" /> <input type="hidden" name="planid" value="6" /> PHP Code:
|
|
#2
|
|||
|
|||
|
Try this echo using $getplans instead:
Code:
echo "Plan: ".$getplans['title']."<br />Posts: ".$getplans['posts']; |
|
#3
|
|||
|
|||
|
Thank you for the quick reply. It works now.
|
|
#4
|
||||
|
||||
|
There is no need to escape (or quote) integers in your query... you can clean it up quite a bit like this:
PHP Code:
|
|
#5
|
|||
|
|||
|
I didn't know if I should or shouldn't use $db->escape_string($vbulletin->GPC['planid'])
Thanks for the tip. |
|
#6
|
||||
|
||||
|
The reason is that you are cleaning it with TYPE_UINT which casts it as an (above zero) integer. Integers can't contain anything that will need escaping.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|