473,378 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Global variables

As a complete newcomer (2-3 days) to PHP, although not to programming in
general, I have 'dived in' to start a small project to read and parse an XML
data stream. I have already worked out most of the more specialist aspects
of the job but am now completely stuck on something I would have thought
were simplicity itself...
I need to have a large number of global variables visible inside functions -
it's not possible to pass them into the functions themselves, since although
they are user functions, the parameter type/count is fixed. Reading what
information I can find, I was under the impression that variables declared
at the head of the PHP block as 'global' would be visible inside all
functions. My problem is this: yes, it appears I can assign values to
these global variables inside a function, (I think), but immediately I exit
the function, the data is lost. At first sight, I could be assigning values
to variables with identical names but local scope within the functions, but
when I performed an 'explode()' inside a function, assigning the result to
one of my 'global' variables and then, on exiting the function, tried to
'echo' the result, the result was 'ARRAY' - the original global variable had
presumably been converted, since it started life as a scalar.
I don't really want to go to superglobals unless I have to - can anybody
please tell me where I'm going so obviously wrong and how I can correct it?
This is such a basic problem, I can't help thinking everybody must know the
answer...
Thanks for any help/advice offered.
Sep 26 '06 #1
10 2620

"Charles O'Flynn" <ch*****@matchwalk.comwrote in message
news:12*************@corp.supernews.com...
As a complete newcomer (2-3 days) to PHP, although not to programming in
general, I have 'dived in' to start a small project to read and parse an
XML
data stream. I have already worked out most of the more specialist
aspects
of the job but am now completely stuck on something I would have thought
were simplicity itself...
I need to have a large number of global variables visible inside
functions -
it's not possible to pass them into the functions themselves, since
although
they are user functions, the parameter type/count is fixed. Reading what
information I can find, I was under the impression that variables declared
at the head of the PHP block as 'global' would be visible inside all
functions. My problem is this: yes, it appears I can assign values to
these global variables inside a function, (I think), but immediately I
exit
the function, the data is lost. At first sight, I could be assigning
values
to variables with identical names but local scope within the functions,
but
when I performed an 'explode()' inside a function, assigning the result to
one of my 'global' variables and then, on exiting the function, tried to
'echo' the result, the result was 'ARRAY' - the original global variable
had
presumably been converted, since it started life as a scalar.
I don't really want to go to superglobals unless I have to - can anybody
please tell me where I'm going so obviously wrong and how I can correct
it?
This is such a basic problem, I can't help thinking everybody must know
the
answer...
Thanks for any help/advice offered.

just need to use the global keyword when inside the function, it's explained
here:
http://us3.php.net/global
Sep 26 '06 #2
"Johnny" <re*****************@hotmail.comwrote in message
news:lsfSg.375$UJ2.143@fed1read07...
|
| "Charles O'Flynn" <ch*****@matchwalk.comwrote in message
| news:12*************@corp.supernews.com...
| As a complete newcomer (2-3 days) to PHP, although not to programming in
| general, I have 'dived in' to start a small project to read and parse an
| XML
| data stream. I have already worked out most of the more specialist
| aspects
| of the job but am now completely stuck on something I would have thought
| were simplicity itself...
| I need to have a large number of global variables visible inside
| functions -
| it's not possible to pass them into the functions themselves, since
| although
| they are user functions, the parameter type/count is fixed. Reading
what
| information I can find, I was under the impression that variables
declared
| at the head of the PHP block as 'global' would be visible inside all
| functions. My problem is this: yes, it appears I can assign values to
| these global variables inside a function, (I think), but immediately I
| exit
| the function, the data is lost. At first sight, I could be assigning
| values
| to variables with identical names but local scope within the functions,
| but
| when I performed an 'explode()' inside a function, assigning the result
to
| one of my 'global' variables and then, on exiting the function, tried to
| 'echo' the result, the result was 'ARRAY' - the original global variable
| had
| presumably been converted, since it started life as a scalar.
| I don't really want to go to superglobals unless I have to - can anybody
| please tell me where I'm going so obviously wrong and how I can correct
| it?
| This is such a basic problem, I can't help thinking everybody must know
| the
| answer...
| Thanks for any help/advice offered.
| >
| >
|
| just need to use the global keyword when inside the function, it's
explained
| here:
| http://us3.php.net/global
|
Thanks for the quick reply, Johnny, but I've been looking at the page you
refer to all afternoon and it doesn't seem to work for me. For instance,
(and I'm only illustrating the specific problem I seem to have hereunder)...
------------------------------------
$variable;

function printsomething()
{
global $variable;

$variable = 'Test'.<b />;
echo $variable;
}

printsomething();
echo $variable;
------------------------------------

....only prints one line of 'Test' - I'd have thought it should print out two
copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
change/upgrade!)
Thanks and regards,
Charles
Sep 26 '06 #3

"Charles O'Flynn" <ch*****@matchwalk.comwrote in message
news:12*************@corp.supernews.com...
| "Johnny" <re*****************@hotmail.comwrote in message
| news:lsfSg.375$UJ2.143@fed1read07...
||
|| "Charles O'Flynn" <ch*****@matchwalk.comwrote in message
|| news:12*************@corp.supernews.com...
|| As a complete newcomer (2-3 days) to PHP, although not to programming
in
|| general, I have 'dived in' to start a small project to read and parse
an
|| XML
|| data stream. I have already worked out most of the more specialist
|| aspects
|| of the job but am now completely stuck on something I would have
thought
|| were simplicity itself...
|| I need to have a large number of global variables visible inside
|| functions -
|| it's not possible to pass them into the functions themselves, since
|| although
|| they are user functions, the parameter type/count is fixed. Reading
| what
|| information I can find, I was under the impression that variables
| declared
|| at the head of the PHP block as 'global' would be visible inside all
|| functions. My problem is this: yes, it appears I can assign values to
|| these global variables inside a function, (I think), but immediately I
|| exit
|| the function, the data is lost. At first sight, I could be assigning
|| values
|| to variables with identical names but local scope within the functions,
|| but
|| when I performed an 'explode()' inside a function, assigning the result
| to
|| one of my 'global' variables and then, on exiting the function, tried
to
|| 'echo' the result, the result was 'ARRAY' - the original global
variable
|| had
|| presumably been converted, since it started life as a scalar.
|| I don't really want to go to superglobals unless I have to - can
anybody
|| please tell me where I'm going so obviously wrong and how I can correct
|| it?
|| This is such a basic problem, I can't help thinking everybody must know
|| the
|| answer...
|| Thanks for any help/advice offered.
|| >
|| >
||
|| just need to use the global keyword when inside the function, it's
| explained
|| here:
|| http://us3.php.net/global
||
| Thanks for the quick reply, Johnny, but I've been looking at the page you
| refer to all afternoon and it doesn't seem to work for me. For instance,
| (and I'm only illustrating the specific problem I seem to have
hereunder)...
| ------------------------------------
| $variable;
|
| function printsomething()
| {
| global $variable;
|
| $variable = 'Test'.<b />;
| echo $variable;
| }
|
| printsomething();
| echo $variable;
| ------------------------------------
|
| ...only prints one line of 'Test' - I'd have thought it should print out
two
| copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
| change/upgrade!)
| Thanks and regards,
| Charles
|
************************************************** ******
I thought I'd just try out what I wrote above and loaded this up...

<?php
$loc_place;

function writesomething()
{
global $loc_place;

$loc_place = 'This is a test';
echo $loc_place.'<br />';
}

echo $loc_place.' again<br />';
writesomething();
?>

As I wrote earlier, I get no sign of any output from outside the function,
only inside...

This is a test

Surely this cannot be right?
Sep 26 '06 #4
Charles O'Flynn wrote:
"Johnny" <re*****************@hotmail.comwrote in message
news:lsfSg.375$UJ2.143@fed1read07...
|
| "Charles O'Flynn" <ch*****@matchwalk.comwrote in message
| news:12*************@corp.supernews.com...
| As a complete newcomer (2-3 days) to PHP, although not to programming in
| general, I have 'dived in' to start a small project to read and parse an
| XML
| data stream. I have already worked out most of the more specialist
| aspects
| of the job but am now completely stuck on something I would have thought
| were simplicity itself...
| I need to have a large number of global variables visible inside
| functions -
| it's not possible to pass them into the functions themselves, since
| although
| they are user functions, the parameter type/count is fixed. Reading
what
| information I can find, I was under the impression that variables
declared
| at the head of the PHP block as 'global' would be visible inside all
| functions. My problem is this: yes, it appears I can assign values to
| these global variables inside a function, (I think), but immediately I
| exit
| the function, the data is lost. At first sight, I could be assigning
| values
| to variables with identical names but local scope within the functions,
| but
| when I performed an 'explode()' inside a function, assigning the result
to
| one of my 'global' variables and then, on exiting the function, tried to
| 'echo' the result, the result was 'ARRAY' - the original global variable
| had
| presumably been converted, since it started life as a scalar.
| I don't really want to go to superglobals unless I have to - can anybody
| please tell me where I'm going so obviously wrong and how I can correct
| it?
| This is such a basic problem, I can't help thinking everybody must know
| the
| answer...
| Thanks for any help/advice offered.
| >
| >
|
| just need to use the global keyword when inside the function, it's
explained
| here:
| http://us3.php.net/global
|
Thanks for the quick reply, Johnny, but I've been looking at the page you
refer to all afternoon and it doesn't seem to work for me. For instance,
(and I'm only illustrating the specific problem I seem to have hereunder)...
------------------------------------
$variable;

function printsomething()
{
global $variable;

$variable = 'Test'.<b />;
echo $variable;
}

printsomething();
echo $variable;
------------------------------------

...only prints one line of 'Test' - I'd have thought it should print out two
copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
change/upgrade!)
Thanks and regards,
Charles

You're close. But you have to use the global keyword in the global
context, also. Not just in the function.

global $variable;

function printsomething()
{
global $variable;

$variable = 'Test'.<b />;
echo $variable;
}

printsomething();
echo $variable;

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 26 '06 #5
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:yt******************************@comcast.com. ..
| Charles O'Flynn wrote:
| "Johnny" <re*****************@hotmail.comwrote in message
| news:lsfSg.375$UJ2.143@fed1read07...
| |
| | "Charles O'Flynn" <ch*****@matchwalk.comwrote in message
| | news:12*************@corp.supernews.com...
| | As a complete newcomer (2-3 days) to PHP, although not to
programming in
| | general, I have 'dived in' to start a small project to read and
parse an
| | XML
| | data stream. I have already worked out most of the more specialist
| | aspects
| | of the job but am now completely stuck on something I would have
thought
| | were simplicity itself...
| | I need to have a large number of global variables visible inside
| | functions -
| | it's not possible to pass them into the functions themselves, since
| | although
| | they are user functions, the parameter type/count is fixed. Reading
| what
| | information I can find, I was under the impression that variables
| declared
| | at the head of the PHP block as 'global' would be visible inside all
| | functions. My problem is this: yes, it appears I can assign values
to
| | these global variables inside a function, (I think), but immediately
I
| | exit
| | the function, the data is lost. At first sight, I could be
assigning
| | values
| | to variables with identical names but local scope within the
functions,
| | but
| | when I performed an 'explode()' inside a function, assigning the
result
| to
| | one of my 'global' variables and then, on exiting the function,
tried to
| | 'echo' the result, the result was 'ARRAY' - the original global
variable
| | had
| | presumably been converted, since it started life as a scalar.
| | I don't really want to go to superglobals unless I have to - can
anybody
| | please tell me where I'm going so obviously wrong and how I can
correct
| | it?
| | This is such a basic problem, I can't help thinking everybody must
know
| | the
| | answer...
| | Thanks for any help/advice offered.
| | >
| | >
| |
| | just need to use the global keyword when inside the function, it's
| explained
| | here:
| | http://us3.php.net/global
| |
| Thanks for the quick reply, Johnny, but I've been looking at the page
you
| refer to all afternoon and it doesn't seem to work for me. For
instance,
| (and I'm only illustrating the specific problem I seem to have
hereunder)...
| ------------------------------------
| $variable;
| >
| function printsomething()
| {
| global $variable;
| >
| $variable = 'Test'.<br />;
| echo $variable;
| }
| >
| printsomething();
| echo $variable;
| ------------------------------------
| >
| ...only prints one line of 'Test' - I'd have thought it should print out
two
| copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
| change/upgrade!)
| Thanks and regards,
| Charles
| >
| >
|
| You're close. But you have to use the global keyword in the global
| context, also. Not just in the function.
|
| global $variable;
|
| function printsomething()
| {
| global $variable;
|
| $variable = 'Test'.<br />;
| echo $variable;
| }
|
| printsomething();
| echo $variable;
|
| --
| ==================
| Remove the "x" from my email address
| Jerry Stuckle
| JDS Computer Training Corp.
| js*******@attglobal.net
| ==================

Thanks, but I've tried that and it still doesn't work.
I'm getting the feeling PHP doesn't like me, although I like it well
enough...
Sep 26 '06 #6
Jerry Stuckle said the following on 26/09/2006 22:07:
Charles O'Flynn wrote:
>Thanks for the quick reply, Johnny, but I've been looking at the page you
refer to all afternoon and it doesn't seem to work for me. For instance,
(and I'm only illustrating the specific problem I seem to have
hereunder)...
------------------------------------
$variable;

function printsomething()
{
global $variable;

$variable = 'Test'.<b />;
echo $variable;
}

printsomething();
echo $variable;
------------------------------------

...only prints one line of 'Test' - I'd have thought it should print
out two
copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
change/upgrade!)

You're close. But you have to use the global keyword in the global
context, also. Not just in the function.
Umm, no you don't!
http://uk.php.net/manual/en/language...s.scope.global
>
global $variable;

function printsomething()
{
global $variable;

$variable = 'Test'.<b />;
echo $variable;
}

printsomething();
echo $variable;

--
Oli
Sep 26 '06 #7
Charles O'Flynn said the following on 26/09/2006 22:05:
I thought I'd just try out what I wrote above and loaded this up...

<?php
$loc_place;

function writesomething()
{
global $loc_place;

$loc_place = 'This is a test';
echo $loc_place.'<br />';
}

echo $loc_place.' again<br />';
writesomething();
?>

As I wrote earlier, I get no sign of any output from outside the function,
only inside...

This is a test
Well, in this code, $loc_place has no value assigned before
writesomething() is called. Depending on your error settings and
version, I guess the echo $loc_place.' again<br />' line might fail
silently; although in PHP 5 it just echoes " again<br />". I don't have
PHP 4 running to test the behaviour.
--
Oli
Sep 26 '06 #8

"Oli Filth" <ca***@olifilth.co.ukwrote in message
news:fE******************@newsfe1-win.ntli.net...
| Jerry Stuckle said the following on 26/09/2006 22:07:
| Charles O'Flynn wrote:
| >Thanks for the quick reply, Johnny, but I've been looking at the page
you
| >refer to all afternoon and it doesn't seem to work for me. For
instance,
| >(and I'm only illustrating the specific problem I seem to have
| >hereunder)...
| >------------------------------------
| >$variable;
| >>
| >function printsomething()
| >{
| > global $variable;
| >>
| > $variable = 'Test'.<b />;
| > echo $variable;
| >}
| >>
| >printsomething();
| >echo $variable;
| >------------------------------------
| >>
| >...only prints one line of 'Test' - I'd have thought it should print
| >out two
| >copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
| >change/upgrade!)
| >
| You're close. But you have to use the global keyword in the global
| context, also. Not just in the function.
|
| Umm, no you don't!
|
http://uk.php.net/manual/en/language...s.scope.global
|
| >
| global $variable;
| >
| function printsomething()
| {
| global $variable;
| >
| $variable = 'Test'.<b />;
| echo $variable;
| }
| >
| printsomething();
| echo $variable;
| >
|
|
| --
| Oli
Thanks, Oli
I'm getting the feeling, (although noone's spelling it out either here or in
any of the myriad books I've looked at for inspiration), that declaring a
variable as global inside a function will make it accessible outside the
function at the global scope; in other words, what I've done above is
declare two independent variables, the one outside the function over-riding
the effect of the one inside the function.. OK - I can test this very
quickly. But if so, how on earth do I get to access it within another
function, or does this automatically make it visible everywhere?
Of course, I could store the data within MySQL, thereby making it
persistent, but this seems like overkill. How does PHP make variables
accessible with 'real' global scope, not just 'global, except inside
functions', which for an old 'C' programmer like me, is not global at all?
I know, in theory about superglobals but again, this seems like overkill.
Or am I being silly?
Thanks,
Charles
Sep 27 '06 #9
"Charles O'Flynn" <ch*****@matchwalk.comwrote in message
news:12*************@corp.supernews.com...
|
| "Oli Filth" <ca***@olifilth.co.ukwrote in message
| news:fE******************@newsfe1-win.ntli.net...
|| Jerry Stuckle said the following on 26/09/2006 22:07:
|| Charles O'Flynn wrote:
|| >Thanks for the quick reply, Johnny, but I've been looking at the page
| you
|| >refer to all afternoon and it doesn't seem to work for me. For
| instance,
|| >(and I'm only illustrating the specific problem I seem to have
|| >hereunder)...
|| >------------------------------------
|| >$variable;
|| >>
|| >function printsomething()
|| >{
|| > global $variable;
|| >>
|| > $variable = 'Test'.<b />;
|| > echo $variable;
|| >}
|| >>
|| >printsomething();
|| >echo $variable;
|| >------------------------------------
|| >>
|| >...only prints one line of 'Test' - I'd have thought it should print
|| >out two
|| >copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
|| >change/upgrade!)
|| >
|| You're close. But you have to use the global keyword in the global
|| context, also. Not just in the function.
||
|| Umm, no you don't!
||
|
http://uk.php.net/manual/en/language...s.scope.global
||
|| >
|| global $variable;
|| >
|| function printsomething()
|| {
|| global $variable;
|| >
|| $variable = 'Test'.<b />;
|| echo $variable;
|| }
|| >
|| printsomething();
|| echo $variable;
|| >
||
||
|| --
|| Oli
|
|
| Thanks, Oli
| I'm getting the feeling, (although noone's spelling it out either here or
in
| any of the myriad books I've looked at for inspiration), that declaring a
| variable as global inside a function will make it accessible outside the
| function at the global scope; in other words, what I've done above is
| declare two independent variables, the one outside the function
over-riding
| the effect of the one inside the function.. OK - I can test this very
| quickly. But if so, how on earth do I get to access it within another
| function, or does this automatically make it visible everywhere?
| Of course, I could store the data within MySQL, thereby making it
| persistent, but this seems like overkill. How does PHP make variables
| accessible with 'real' global scope, not just 'global, except inside
| functions', which for an old 'C' programmer like me, is not global at all?
| I know, in theory about superglobals but again, this seems like overkill.
| Or am I being silly?
| Thanks,
| Charles
|
Problem now solved (from the point of view of this specific query). Thanks
to Oli, Norm and Johnny for taking the trouble to reply.
Regards,
Charles
Sep 27 '06 #10
"Charles O'Flynn" <ch*****@matchwalk.comwrote in message
news:12*************@corp.supernews.com...
"Charles O'Flynn" <ch*****@matchwalk.comwrote in message
news:12*************@corp.supernews.com...
|
| "Oli Filth" <ca***@olifilth.co.ukwrote in message
| news:fE******************@newsfe1-win.ntli.net...
|| Jerry Stuckle said the following on 26/09/2006 22:07:
|| Charles O'Flynn wrote:
|| >Thanks for the quick reply, Johnny, but I've been looking at the
page
| you
|| >refer to all afternoon and it doesn't seem to work for me. For
| instance,
|| >(and I'm only illustrating the specific problem I seem to have
|| >hereunder)...
|| >------------------------------------
|| >$variable;
|| >>
|| >function printsomething()
|| >{
|| > global $variable;
|| >>
|| > $variable = 'Test'.<b />;
|| > echo $variable;
|| >}
|| >>
|| >printsomething();
|| >echo $variable;
|| >------------------------------------
|| >>
|| >...only prints one line of 'Test' - I'd have thought it should print
|| >out two
|| >copies. BTW, I'm running under PHP 4.1.2 (and it's not mine to
|| >change/upgrade!)
|| >
|| You're close. But you have to use the global keyword in the global
|| context, also. Not just in the function.
||
|| Umm, no you don't!
||
|
http://uk.php.net/manual/en/language...s.scope.global
||
|| >
|| global $variable;
|| >
|| function printsomething()
|| {
|| global $variable;
|| >
|| $variable = 'Test'.<b />;
|| echo $variable;
|| }
|| >
|| printsomething();
|| echo $variable;
|| >
||
||
|| --
|| Oli
|
|
| Thanks, Oli
| I'm getting the feeling, (although noone's spelling it out either here
or
in
| any of the myriad books I've looked at for inspiration), that declaring
a
| variable as global inside a function will make it accessible outside the
| function at the global scope; in other words, what I've done above is
| declare two independent variables, the one outside the function
over-riding
| the effect of the one inside the function.. OK - I can test this very
| quickly. But if so, how on earth do I get to access it within another
| function, or does this automatically make it visible everywhere?
| Of course, I could store the data within MySQL, thereby making it
| persistent, but this seems like overkill. How does PHP make variables
| accessible with 'real' global scope, not just 'global, except inside
| functions', which for an old 'C' programmer like me, is not global at
all?
| I know, in theory about superglobals but again, this seems like
overkill.
| Or am I being silly?
| Thanks,
| Charles
|
Problem now solved (from the point of view of this specific query).
Thanks
to Oli, Norm and Johnny for taking the trouble to reply.
Regards,
Charles
Of course, there's always the $_GLOBALS array...

Norm
Sep 27 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Matt | last post by:
Greetings, What are people's thoughts on global variables in C++? Why are we taught not to use them in programming? Is it true that if you are running two copies of the C program one copy can...
4
by: Andrew V. Romero | last post by:
I have been working on a function which makes it easier for me to pull variables from the URL. So far I have: <script language="JavaScript"> var variablesInUrl; var vArray = new Array(); ...
12
by: David WOO | last post by:
Hi, I am a newbie on C++, I need to define some global variables which should be accessible to most classes. In the mean time, I don't won't the global variables be modified freely at most of...
2
by: Bryan Parkoff | last post by:
….I would like to know which is the best optimization to use global variable or global struct. I always tell C/C++ Compiler to turn on optimization. ….I use underscore between first name and...
17
by: MLH | last post by:
A97 Topic: If there is a way to preserve the values assigned to global variables when an untrapped runtime error occurs? I don't think there is, but I thought I'd ask. During development, I'm...
33
by: MLH | last post by:
I've read some posts indicating that having tons of GV's in an Access app is a bad idea. Personally, I love GVs and I use them (possibly abuse them) all the time for everything imaginable - have...
9
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
5
by: Sandman | last post by:
I dont think I understand them. I've read the section on scope in the manual inside out. I'm running PHP 5.2.0 Here is the code I'm working on: //include_me.php <?php $MYVAR = array(); global...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
112
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.