The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help to query the database
#1
I'm looking at the manual, but I think not all understand as it is, for example, we find the following documentation:

$director_id = 1;
$query = $db->query("SELECT * FROM camps WHERE director_id = ?", array($director_id));
$x = $query->results();


Then, as I do to show results, ie in this case I want a list of "names" in "camps" ... I just want to know how to do the "echo" or as I show in html the results?

I propose to make a manual like this.

Is costing me a lot of work interact with the database and predefined classes, I really do not know how I am suffering.

Most rookies just want to show something that is already in the database, send the information to achieve, but I can not show it.

I do not want to use functions because it is more difficult for me, I just want a simple query and display the results.

Could you help me?
  Reply


Messages In This Thread
Help to query the database - by GePraxa - 09-21-2016, 03:57 PM
Help to query the database - by mudmin - 09-22-2016, 01:11 AM
Help to query the database - by GePraxa - 09-22-2016, 07:04 PM
Help to query the database - by mudmin - 09-24-2016, 02:45 AM
Help to query the database - by GePraxa - 09-25-2016, 02:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)