473,549 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How i assigned to key of table other table and return that

132 New Member
Hi,

I have this script :

Expand|Select|Wrap|Line Numbers
  1.   $processsyntheseinfos=array();
  2.         foreach($annuaireId as $annuaireId_index=>$annuaireIdvalue){
  3.  
  4.  
  5.  
  6.         $processsyntheseinfos[]=$imprimTools->getProcessSyntheseInfos ($annuaireIdvalue); 
  7.  
  8.  
  9.  
  10.         }//END foreach the tab annuaire
  11.         echo ' process Synthese' . var_dump ($processsyntheseinfos);
  12.         die();
when i var_dumped the $processsynthes einfos i get that :
Expand|Select|Wrap|Line Numbers
  1. array (size=10)
  2.   0 => 
  3.     array (size=1)
  4.       0 => 
  5.         array (size=68)
  6.           0 => string '938' (length=3)
  7.           'fiche_id' => string '938' (length=3)
  8.           1 => string '4507' (length=4)
  9.           'annuaire_id' => string '4507' (
how can i get just this index of array 10 get the value array with out much index 0 inside 0 index

Thanks in advance
May 26 '16 #1
1 1892
Dormilich
8,658 Recognized Expert Moderator Expert
Expand|Select|Wrap|Line Numbers
  1. $processsyntheseinfos = $processsyntheseinfos[0][0];
May 27 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
14331
by: Ittay Freiman | last post by:
i cannot set auto_increment to start from anything other than 1: mysql> create table test (id int unsigned not null auto_increment primary key); mysql> alter table test auto_increment=2; mysql> insert into test() values(); mysql> select * from test; +----+
1
1785
by: steve stevo | last post by:
I need to access a table and return 3 values from it in the same recordset - ie one iteration of the recordset will have 3 values from the same database, I have looked at sub queries but they dont seem to be able to do what i want. I would be grateful for any guidance S
1
17090
by: boonkit | last post by:
I try to get better performance by implementing this: http://dev.mysql.com/doc/mysql/en/alter-table.html "ORDER BY allows you to create the new table with the rows in a specific order. Note that the table does not remain in this order after inserts and deletes. This option is mainly useful when you know that you are mostly going to query...
2
7914
by: Chris Becker | last post by:
I have the following query: SELECT Month, Sum(Hits) AS Hits FROM tblHits GROUP BY Month ORDER BY Month Unfortunately it only returns rows for months that have data assigned to them. How can I tweak this so that months 1-12 are returned, and Hits = 0 for months with no data in the base table?
4
2342
by: Onion | last post by:
This has to be simple, but I'm forced to admit that I'm a novice who can't figure it out. I have a listbox in a form that allows multiple selections. That works fine. The problem: I can't figure out how to store the data. I want to store the items chosen from the listbox in a field for the current record. That means the table field must...
2
1236
by: Ceri | last post by:
I am running an ASP.Net project that runs 30 lengthy SQL Stored Procedures (each takes around 20 seconds to complete). As each Stored Procedure completes, I want to indicate in a table cell that it has completed by merely inserting the word "Complete" into the table cell. I would love to know if there is a way of updating each cell...
1
2198
by: Sandesh | last post by:
Hello All, I have a scenario in which my stored procedure has to return few variables with their value and also the collection. Now in SQL their is no such as array, so the best is to return the table in place of. I am execting the stored procedure by having sql command in place. and created the various parameters(variables) those i need...
1
1433
by: btoussaint | last post by:
We have two tables in that control some different data. Table one is dbo_ProductModel. Table two is dbo_CustomerInformation. Table three is dbo_WebInformation. I created the form from the dbo_WebInformation database. I have the form pull up the information for the product based on model name and the information for the customer based on...
0
7521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7473
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7810
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5369
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.