Solved

get the data all row not only one row php

Posted on 2016-10-26
4
72 Views
Last Modified: 2016-10-26
sc_lookup(Dataset, "SELECT  tablename FROM pg_catalog.pg_tables
where schemaname = 'public'and tablename not like 'pong8%'") ;

{customer_id} = {Dataset[0][0]};

echo "{customer_id} " ;

Open in new window


This code work but how can I change it to print all customer not only first customer
0
Comment
Question by:teera
  • 2
4 Comments
 
LVL 55

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41859901
It appears you are using ScriptCase

To iterate over the Dataset I am assuming you would do something like this
foreach({Dataset} as $row) {
   echo "Customer: {$row[0]}<br/>";
}

Open in new window

1
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 41859930
Is this a PHP application?  PHP variable names start with a dollar sign.  Or is there something else in play here that I am missing?
0
 

Author Comment

by:teera
ID: 41859985
Hi  Ray Paseur

I use scriptcase  

thank you for help me many time
0
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41860047
You are welcome
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question