Announcement

Collapse
No announcement yet.

PHP & MySQL question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP & MySQL question

    See code below:

    Code:
    		$getraidid = $db->query_read("
    			SELECT raid_id
    				FROM " . TABLE_PREFIX . "vbgms_raids
    				WHERE time_start = '" . $raid_start_time . "'"
    		);
    		$raidid = $db->fetch_array($getraidid);
    		$newraidid = $raidid[raid_id];
    The query will only return 1 row with 1 item, is there an easier way to get the value of that 1 item?

  • #2
    $db->query_first

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X