32 Topics
| |
how do you extract all email addresses from a string and put each extracted email address as an element of a simple array? <?php // define and implement your php function here function get_all_emails($text_field) { // ---- Beginning of Green Section --- // create an empty array $emails = array(); … | |
so, im trying to make a simple funtion to see if there is a file in a folder. been looking everywhere but havent found one that worked out. annnnnnnnnnnnnd code snippet: ` WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind = FindFirstFile(_T"C:\\Dev-Cpp\\notes", &FindFileData); if (hFind == INVALID_HANDLE_VALUE) { cout << "No File found\n"; … | |
when i start my computer i get a empty messagebox named Explorer.exe. this is very annoying, can u suggest me what causes the problem? or any solution to get rid of this. | |
Hi. I just wanted to know if there is anyway to make a textbox recognise if there is text or not. I don't want it to be textbox1.text = "". Is there a legitimate way? | |
At a client with 100+ workstations, all running a simple logon script, two workstations are experiencing a strange problem. For testing and as an example, a simplified logon script is used: net use T: \\server\public set > C:\Temp\LoginEnv.txt This works on all but the two workstations, mapping the drive and … | |
Hey there! I am making something related to images... So, Using JavaScript and JQuery $(document).ready(function(){ $.fx.speeds.slow = 2000; $(".Gallery").hide().load("gallery.php").fadeIn("slow"); setInterval(function(){ $(".Gallery").hide().load("gallery.php").fadeIn("slow"); }, 3000) }); In this case I want to refresh the div(.Gallery) but I dont want to load gallery.php, In fact what I want is, Put the gallery.php code … | |
Hey guys, I was wondering if anybody knew of a method to check if an element in a object array was empty. for example, lets say I have the class "XYZ" class XYZ { int x; string y; }; then in main if i declared the object array: int main() … | |
Hello There! I am building a dynamic CSS document through PHP and was wondering if it is a big problem (for browsers or SEO or something) for me to leave *blank values* for some CSS attributes. If it is problematic, is it so much so that it is worth adding … | |
Hi, I have 7 variables...each vriable is having either of two values "0" or "1" e.g. a=0, b=1, c=1, d=1, e=0, f=1, g=0 Now I need the total of all these 7 variables but only which are having value "1" (in the above case b+c+d+f) My problem that it's dynamic...i.e … | |
select name, REPLACE(format, ' – ', '/') as format, CAST(price AS UNSIGNED INTEGER) as price, CONCAT('http://www.example.com/',url_key) as url, id, delivery, sku from Database1 where delivery <> 'finished' INTO OUTFILE 'test.txt' FIELDS TERMINATED BY '\t'; this query returns empty result while select name, REPLACE(format, ' – ', '/') as format, CAST(price … | |
Hello! What I am trying to do is assign the values from a mysql query and store them in an array. I have some code that queries the DB by using SHOW COLUMNS. I then loop through dynamically assigning the name of the DB field to input fields of a … | |
Hi, I have a database with lots of fields, some of which are still empty and are to be filled in at a later stage. Is there any way of writing an IF statement (or any other method) that will allow these empty records to be 'shown' in my textboxes … | |
I'm stumped as to why this might be happening. A website I had completed for a client over a year ago, was working fine until a couple of days ago when the web host went and moved the site onto a new server without warning any of their customers (myself … | |
hi friends.! need little help. I couldn't find the way to check a stack is empty before pop up a element. when my program is running its give a error. please help me guys.. thank you in advance.... | |
I am starting to try and manipulate some CSV file data. My first problem is the empty values (empty cells in a spread sheet). My boss sends me these files and when I open the in csv format Python gives me: "Denison, P14, , , , , $1600" I can't … | |
I have a reportviewer that prints a second empty page with the header only nothing in the body. I have searched for this issue and I learned that the Width of the report body should be equal to the page width minus the right and left Margins. So I have … | |
Hi Everyone- We are building a database that needs table(purchaser) to check table(paypal) for a matching telephone number. Table(paypal) has 'purchaser telephone' as PK and table(purchaser) has 'purchaser telephone' as FK. I can insert and see the data in both tables, but running a select query returns an empty result. … | |
In writing a CGI script, I have come across several errors. As I went through and fixed the errors, I seemed to get all of the syntax errors but as I completed the last ones, a long list of errors came up that I did not understand. In trying to … | |
Hi! Im pretty new to this whole thing with PHP and have looked at some examples to learn it. I currently made a site that for now, runs on WAMP localy. The thing is, i was wondering if this would be a good code to use on the upload.php site. … | |
I just downloaded a document containing some pointers exercises. The statement of One of its questions is as follows: [COLOR="Green"]Write a function that returns a pointer to the maximum value of an array of double's. If the array is empty, return NULL. double* maximum(const double* a, int size); [/COLOR] It … | |
I have an array set up to receive the names of forms when they open. The form name is sent as a Form not a String therefore when I run my code I cannot check for whether the field is empty in the normal way (ie. array(1) = "") as … | |
I can't work out why when i try to print the list(listProb....s) it prints the empty list, i'm not setting them to the empty list after this code or anything, and when i print the normDistProb's on their own it prints fine): [CODE]for i in range(0,12): listProbFog.append(normDistProb(dayValues[i], fogAve[i], fogVar[i])) listProbSnow.append(normDistPr...ob(dayValues[i], … | |
hi all!! here's the deal: i have this code [CODE] Sub SaveToTextFile() Handles Button1.Click Dim name1 As String = TextBox3.Text Dim st1 As String = TextBox1.Text Dim st2 As String = TextBox2.Text Dim br1 As String = "{" Dim br2 As String = "}" Dim desck As String = br1 … | |
Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount … | |
Hello, anyone has an idea of how to use php to check to see if a field in a mysql table is empty or has no values? i tried this $query="SELECT fieldId FROM table WHERE fieldName IS NULL" ; but this works only if the field in the table has … | |
Good afternoon, I have a problem... Else I wouldn't be posting here, right? My quandary is thus: I have an empty table in a database that I want a user to be able to fill. This will occur when employees are replaced for sick leaves, etc. I'd like to be … | |
Hi all, I am trying to call a 2D array from another class, and equate the 2D array to a 2D array in the class its at. However, I'm having some problems. I can call the 2D array from the class that I want to, but it seems like my … | |
Hi all, I'm actually equating a 2D array from a class to another class. I call it using method call. However, it seems like the 2D array is empty after I equate it to another 2D array in another class. May I know where is the problem? [CODE]import java.io.*; import … | |
Hi there...... I have received a domain from a customer which is showing me very strange things..... When I tried to login via FTP it showed me empty directory.... The server is apache and when I try to login via cpanel it gives me this error "Not Found The requested … | |
I have a drop-down list box which has to be populated from a database in mysql. I implemented the following code: [CODE] //DB Conn done here.. <td>College Name,id :</td> <td><select><option selected="selected">Choose a college...</option> <?php $query="SELECT nameid from college"; $result=mysql_query($query); while ($line = mysql_fetch_array($result)) { foreach ($line as $value) { echo … |
The End.