I'm not very knowledgeable with javascript.i'd found this code that allows me to add additional input fields to my form. works great but when i click the link to add fields the page scrolls goes back to the top and doesn't stay in it's same position. how would i modify the code to make the page...
i have 2 arrays 'my_names' and 'my_values'
my_names: Array
(
[0] => apple
[1] => peach
[2] => pear
[3] => banana
)
my_values: Array
(
[0] => red
[1] => pink
[2] => green
[3] => yellow
)
how would i merge them so values from 'my_name" become the keys for...
I'm not familiar with microsoft sql server, and have a few questions...
- i'm guessing MSSQL sits on a windows OS server only, and the application is not cross compatible with other OS's? Is there a linux version?
- is it possible to remote access MSSQL from an sql client? for example, an SQL...
I'm using curl to get links from other site pages
absolute URLs are all good, but when i come across relative urls... i'm trying to figure out the best way to convert the relative url into an absolute url
if the site were my own server there's different way's to get the base or full url, but...
hey jpadie,
i haven't yet tried your code example, but here's what i'd like to do (but do tell me if i should examine and think about your code first before i ask this question)...
is it possible in one query...
to get back a result where i can sort by two different columns?
which would save...
i need the full data set for a total sum, and i need the limited data set for looping through to display the top 10 values in a chart... i'm all ears if there are other efficient ways to do this, as well as consider something different that i might need to do later
just solved it with this... but i'll be back very soon with more questions!
$count = 0;
while ($count < 4 && $row = mysql_fetch_array($query)) {
//stuff
$count++;
}
what is the best way to limit the results of a while loop? i know i can do this as a 'for' loop, but reason i'm using a while loop is that i'm looping a mysql query like so...
while ($row = mysql_fetch_array($query)) {
}
what i'd like to do is limit the loop to 10 results, and the reason...
i'm full of mistakes today... sorry here's the corrected code but still returns the same error
$ftp_connect = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
$ftp_loggedIn = ftp_login($ftp_connect, $ftp_user, $ftp_pass);
if (true === $ftp_loggedIn) {
echo 'Success!';
}...
hey jpadie,
just 1 error remaining...
line 12 is this line... $ftp_connect = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
there were quite a few errors in my code (sorry!)... and i've cleaned it up like so, but still returns the error above...
$ftp_connect =...
I'm trying to connect to an ftp sever but getting the following error...
From what i've googled, it could be a setting that needs to be configured in the php.ini? if this is so, and based on my error can you advise what i'm meant to change, or maybe the code can be made to work without php.ini...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.