TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,217
  • Total Topics: 21,351
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 365
  • Total: 366
  • @rjen

passing values

Started by Thalov, August 16, 2007, 01:52:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thalov

That's a great question...

It does work for the querys called in the mybio.php function. I'll give it a try with adding them.

Thalov

Just tried it and got the error below:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[id]' at line 1

IchBin

Assuming you put the quotes outside of the array.
It should look like this:
$user_id = $context['user']['id'];

this code I'm looking at is in your mybio.php page where you declare the variable.

Thalov

Thank you so much - that definitely did the trick!

IchBin

* IchBinâ„¢ whipes his forehead.

Thought I was going to have to track down the problem as wasn't looking forward to it lol. Also I'm wondering about this:
include('../USS_Ethos/BioTools/vbio.php');

You have a file named vbio as well as ubio? Just making sure you didn't spell anything wrong. :)

Thalov

Yep - it does the display of inputted values.

I'm doing it this way so the various parts are interchangeable depending on who's viewing it.

IchBin

Well, you could use a better naming convention lol. But it looks like you're learning PHP quite well. Keep up the good work!

This website is proudly hosted on Crocweb Cloud Website Hosting.