The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
can't get info from mysql
ok i have a completely different page, nothing to do with vb, but here's what i have so far...
PHP Code:
|
#2
|
|||
|
|||
This:
Code:
echo $shouts[name]; Code:
echo "$shouts[name]"; |
#3
|
||||
|
||||
this is what i have now, i've narrowed it down and i know it's something to do with the SELECT
PHP Code:
Your name is ! Your name is ! Your name is ! Your name is ! so i dunno what the problem is, so hope someone can help |
#4
|
|||
|
|||
Change this:
Code:
$getshouts = mysql_query("SELECT name FROM shouts"); if (!$getshouts) { echo("<P>Error performing query: " . mysql_error() . "</P>"); exit(); ;} echo "Your name is $name ! "; Code:
$getshouts = mysql_query("SELECT name FROM shouts WHERE name=$name"); if (!$getshouts) { echo("<P>Error performing query: " . mysql_error() . "</P>"); exit(); ;} echo "Your name is $name ! "; |
#5
|
|||
|
|||
PHP Code:
this should work: PHP Code:
|
#6
|
||||
|
||||
ok i finally got it, thanks all
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|