199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SimonIoa

Hello i want to retrieve only one row from an mysqli statement. The catch is that i use the `$row=mysqli_fetch_array` in a `while()` to loop the data. But i need a row to run as variable before the while begins This is what i mean $query=mysqli_query($db,"SELECT a_id,a_title,a_desc,a_url,a_img,a_uid,a_times FROM table WHERE …

Member Avatar for SimonIoa
0
651
Member Avatar for JohnT1

Hello, I created a small windows service in VB.net, intended to run on a MS Windows server 2012, which uses the EventLog.WriteEntry Method to write entries to a custom log file. All works as intended, however, I am wondering if there would be a better way to write to the …

0
255
Member Avatar for davidbcn

how to send mails individually instead of sending to all recipients together? my code is: function SendMail($msg,$subject,$addresses) { require "class.phpmailer.php"; //Fetch from email here foreach($addresses as $key=>$val){ $email = test_input($val); if((trim($email)=='') || (!filter_var($email, FILTER_VALIDATE_EMAIL))){ unset($addresses[$key]); } } $addresses=array_unique($addresses); $row = FetchAllsettingsCustomMailchmp(); //end fetch $mail = new PHPMailer(); $mail->PluginDir = ""; …

0
313
Member Avatar for Dmennite

Everything I have found shows how to add a row to a database for new images... I am trying to update an existing row with a longblob field to store a logo and cannot seem to grasp what to do Any help would be greatly appreciated

Member Avatar for Ehab_1
0
2K
Member Avatar for SimonIoa

Hello, i have a problem. I want to do two things First, explode an array to retrieve the ids from a row on the table e.g. 1,5,23 and then use a variable to call a Mysql statement. Here is my code public function Show($times) { $q=mysqli_query($this->db,"SELECT to_uid_fk FROM table WHERE …

Member Avatar for SimonIoa
0
366
Member Avatar for norEdz

how to do this? write a c++ program that given the name of a text file reads that file and counts the number occurrences of each alphabetic letter in the text. treat upper and lower case instances of a letter as the same letter. hint: look up tolower()---testing the case …

Member Avatar for David W
0
11K
Member Avatar for loserspearl

I am trying to make a Java program that uses a tree to collect folder and file information about a directory and display it to the user. Essentially a java version of the tree DOS command. The user inputs a path to a folder and the command window will spit …

Member Avatar for JamesCherrill
0
428
Member Avatar for James_43

Hi all, I am tying to have a page header transparent with the background blurred behind it. So far, for some reason, the blur overlay is only blurring the logo in the header, but nothing else?? my HTML is: <div class="overlay-blur"> <div class="page-header"> <img src="http://test.com/wp-content/uploads/2015/11/Strong-Links.jpg" class="logo"/> </div> </div> And CSS: …

Member Avatar for James_43
0
686
Member Avatar for me vicky

Can anyone please tell me what is the problem in my code: void Laptop::show() { Computer::show(); cout<<"weight is="<<weight<<endl; cout<<"height is ="<<height<<endl; cout<<"length is ="<<length<<endl; cout<<"width is ="<<width<<endl; } I am unable to call Computer::show(); function in Laptop::show(); function.Compiler says to use . or -> operator i am unable to understand. …

Programming c++ storage
Member Avatar for David W
0
365
Member Avatar for amacss

I am currently taking this course, and I am struggling with the application of code at points. Does anyone know where I can find a good site for tutorial purposes?

Member Avatar for ddanbe
0
303
Member Avatar for OtepTheThird

Hi Guys, I've got a xampp since day one, as i used this for local development, strangely happen yesterday when i started it, i cant view my localhost even the phpmyadmin though the xampp is up and running and the most annoying part is when i open my browsers (GC, …

Member Avatar for OtepTheThird
0
4K
Member Avatar for Thomasio

There´s another post about this, over 3 months old, but there they are dealing with port settings which isn´t the problem, so I´m making a new thread. I send out 50+ emails in a loop via PHPMailer - SMTP. For testing purposes I send them all to myself, so I …

Member Avatar for cereal
0
502
Member Avatar for Adhya_1

So, my teacher gave me this assignment to write a program to enter a four digit number Andries each digit of the number in a separate line. For example, if a user inputs 1234, the output should be: 1 2 3 4 I'm stuck. Please help ASAP. We have learnt …

Member Avatar for Lucaci Andrew
0
259
Member Avatar for divinity02

hiya all i am doing a program here on switch case, have a fair idea on switch case but the lecturer now decides to teach us it the program goes like this. have to find the retail price, commission and enter the employee id num but i having some problems …

Programming java
Member Avatar for ObSys
0
200
Member Avatar for savedlema

Greetings! I have been using the code below to restore backups of mysql database taken utilizing the mysql dump for a few years, but suddenly, this does not restore database backups anymore. Is there any change within mysql? code: Dim myProcess As New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.UseShellExecute = False …

0
141
Member Avatar for shabbir04

Hello Everyone, I have a problem with the change password box, code is working and when i submit the form its showing "Record updated successfully" but when i check the database i find its old password in database . May anyone help me please.. Thanks in advence. <?php require_once("checklogin.php"); include …

Member Avatar for shabbir04
0
314
Member Avatar for kavinsac

Hi, I'm Kavin, I guess I've always been a bit geeky. I'm currently working on my first website and learning HTML and CSS. I'm also quite keen on photoshop. I also want to learn PHP, MySQL and video editing at some point, but for now I'm still quite busy with …

Member Avatar for diafol
0
574
Member Avatar for laguardian

Hey guys! I'm currently working on a simple matching game. The game has 3 difficulties: easy, medium, and hard. When the game starts up, it is already set to the easy difficulty with 12 tiles. Medium difficulty displays 20 tiles and hard difficulty displays 30 tiles. I've figured out how …

Member Avatar for laguardian
0
215
Member Avatar for AntonyRayan

Hi, I am new to this concept. Can anyone give me an example and ideas for google map plotting? In a google map, I want to show all the trucks based on latitude and longitude of the trucks. After showing all the trucks,I want to see a particular truck`s report …

Member Avatar for Bill_14
0
273
Member Avatar for Tiger_2

Hi, I am a student with a basic knowledge of C#. For my project, I would like to build a logic gate simulator that could teach someone about the basics of Gates. I have seen this done before and always wanted to have a go myself. My starting point, I …

Member Avatar for ddanbe
0
477
Member Avatar for divinity02

this all (especially j) but anyone can make their input it is me again, me and my games and them, i am currently trying to build this game but this one is a counting numbers game. am sure you all must have come across it at some point time. i …

Programming java
Member Avatar for JamesCherrill
0
372
Member Avatar for Niana

I have in my program an object of a class. When I try to print it out I am getting "Address@33909752" - guessing it is a hash code. I also tried to override toString method, but still didnt help Address address = new Address(city, country, houseNo, street, postCode); Is there …

Programming java
Member Avatar for JamesCherrill
0
153
Member Avatar for James_43

Hi all, I'm very very new when it comes to JavaScript, but I understand it's what I need to solve my problem. Basically, I have a PHP script that takes a while to process (several minutes). This script is linked from my homepage and when the script finishes it redirects …

Member Avatar for James_43
0
11K
Member Avatar for showman13

I am thinking about installing an SSL cert on one of my domains but only want to use it on a few specific pages where people enter their personal information. Before I purchase the wildcard SSL and install it, I wondered if anyone could point out any pitfalls to be …

Member Avatar for jwenting
0
266
Member Avatar for Niana

I am having trouble getting value from getter. I am trying to access the getter method from another class but it returns null. In my Registration Class I have a constructor and getters. In my Client Class I have set the values using Scanner. I would like to create Report …

Programming java
Member Avatar for Niana
0
2K
Member Avatar for LibraryCode

I have a jbutton ,which once clicked ,counts the clicks: int clicked ; private void jButtonScanActionPerformed(java.awt.event.ActionEvent evt) { clicked++; } My question is how to attach this click output(once the button is clicked ) to jtext field to see the click count? private void jTextFieldParcelIDActionPerformed(java.awt.event.ActionEvent evt) { }

Member Avatar for LibraryCode
0
268
Member Avatar for sandhya1987

Dim DB As New ADODB.Connection Dim rs As New ADODB.Recordset Dim RST As New ADODB.Recordset Dim adoConn As ADODB.Connection Private Sub Command1_Click() Adodc1.RecordSource = "INSERT INTO STUDATA(UserName,Password,Course, Gender,Country) Values ('" & TxtUn & "',' " & TxtPw & " ','" & ChkC.ischecked.tostring() & "','" & ChkCC.ischecked.tostring() & "','" & ChkJAVA.ischecked.tostring() …

Member Avatar for Taywin
0
329
Member Avatar for raj208851

I always get errors in c programming while using if and else as " expected expression before else". Why do this error display?

Member Avatar for Taywin
0
790
Member Avatar for laguardian

Hello guys! I'm trying to create a countdown timer for a memory app. The user is given about 5-10 seconds to look at the gridview of pictures then the countdown timer starts. I was wondering how I can achieve this. The code below shows the countdown timer which starts at …

Member Avatar for laguardian
0
1K
Member Avatar for Latrell_vie

Im working on a menu for my website.The idea is that on click on a menuselection the menucard scrolls to said portion of the menu. I tried different approaches,sofar only $(function MyFunction() is working,but i need sth more general where i can include a parameter into the function like function …

Member Avatar for Chris_33
0
269
Member Avatar for lewashby

The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> I'm getting the error 'Invalid argument supplied for foreach()' when I run this page. Can I not break out of …

Member Avatar for lewashby
0
507
Member Avatar for CreatorZeus

SO im trying to generate and 8 x 8 table while($a <= 8) { echo "<tr>"; while($b <= 8) { echo "<td> tell me </td>"; $b++; } echo "</tr>"; $a++; } and i cant tell whats wrong

Member Avatar for Chris_33
0
207
Member Avatar for Violet_82

Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background …

Member Avatar for Violet_82
0
5K
Member Avatar for libreriaeben

I am trying to create a method entitled rolledOneOnlyOnce that takes in two integers as parameters and returns a Boolean. This method must be public and static. In this method, the integer parameters represent the values currently on each of the Game’s die (die1,die2 respectively). Here, you will want to …

Member Avatar for JamesCherrill
0
151
Member Avatar for jerome2467

hi i got a bank account project and i dont know how to figure out this problem i need to be able to transfert money from checking account to saving account if someone can help me with an exemple ,because i am a bit lost thanks by advance

Member Avatar for Sudarvizhi_1
0
6K
Member Avatar for Aeonix

**Full error:** *xengine.js:2 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode* I have **no framework**. This is pure flat HTML, CSS and JavaScript. HTML goes on like this (up to relevant moment): http://pastebin.com/s8s2KLmt And the JavaScript (starting from line 1, no additional files, entire …

Member Avatar for minitauros
0
427
Member Avatar for hallianonline

Hello I have created a installer package of my project build in Visual Basic 6.0. I have using Advance Installer for making package. every thing works perfectly on other systems but a minor problem in my project i am facing which is very hard for me to resolve is I …

Member Avatar for Minimalist
0
2K
Member Avatar for OtepTheThird

Hi, Im working on project right now in webdevelopment. im trying to view a PDF file in a browser which is the filepath was stored in database and the actual file save was in folder inside my webfolder and could retrieve/view by its ID. here's some of my code <?php …

Member Avatar for OtepTheThird
0
4K
Member Avatar for Jambaly

I am desgining a userform in ArcMap, but I don't know how to sum up numeric values in a textbox (txtBox1) in another textox (txtBox2). Can anybody provide me with a vba code for that!

Member Avatar for Vicky_4
0
4K
Member Avatar for James_43

Always get really confused when dealing with timezones... I have a string `8/11/2013`, which I apply the following code: $firstDate = new DateTime($rawData[$backdate][0]); $firstDate = $firstDate->format('d/m/Y'); The issue is that PHP seems to think that the '11' is the day, when it's actually the month (I'm in NZ). When I …

Member Avatar for James_43
0
199
Member Avatar for major_lost

Rev Jim: I need to get a random file name from a specific directory (folder) each time this routine is called. I was given these steps on another website, but I need to be shown how this is done. Can you please assist? Get the files - Directory.GetFiles or DirectoryInfo.GetFiles …

Member Avatar for Reverend Jim
0
1K
Member Avatar for efe.osato.5
Member Avatar for best4earn

Its showing same result 1280*800 and above but when i change screen resolution to low like 1024*768 class="right" goes down. how can i fix this . Testing screen resoluition at http://quirktools.com/screenfly/#u=http%3A//www.design.earnandearn.com/&w=1280&h=800&a=1 <div class="slider-bg"> <div class="container"> <div> <div class="left"> <h3>Making Money the Easy Way in</h3> <h2>Our Social Network</h2> <p> Achieve your …

Member Avatar for best4earn
0
208
Member Avatar for Enee

I have a problem!! I am trying to convert pascal code to VB and am stuck. Pascal: TYPE Elements = SET of 1..255; Xpath = ARRAY[0..50] of BYTE; VAR Path0,Path1,Path2:Elements; Path:Xpath; So, Elements is defined as a base set of numbers 1 through to 255 (inclusive). Path0, Path1 and Path2 …

Member Avatar for divya.jeeta
0
1K
Member Avatar for AntonyRayan

I know how to find number of working days for an academic year. But I want to know working days of each and every month from june to april of next year,seperately. How to do?

Member Avatar for Taywin
0
100
Member Avatar for Nick_11

char patron10(int m , int n ) char patron10(int m , int n ) { for ( int = 0 ; i < m ; i++) cout<< "." ; int a = 0 ; while (True) { cout<< 10*a ; if (10*a >= n) break ; for ( int i …

Programming c++ python
Member Avatar for Taywin
0
268
Member Avatar for overwraith

Hey I have a question, how many people actually use telerik? Does anybody have experience with it, and what are your opinions on it? To me it is just another third party library that nobody knows, but I want an opinion on it from actual seasoned developers. I have worked …

Member Avatar for overwraith
0
291
Member Avatar for gogs85

Hi I have problem to get data when insert with ajax. I have ajax.js file and here is this code: $('#text-content').keypress(function(e){ if(e.which == 13) { if($('input#enter-click').prop('checked', true)) { $('#live-send').click(); e.preventDefault(); } } }); $('#live-send').click(function(){ var message = $.trim( $('#text-content').val() ); if($('#text-content').val()!="") { $.ajax({ type: 'POST', dataType: "json", url: './includes/conversation.php', data: …

Member Avatar for pritaeas
0
303
Member Avatar for v1shwa

Hello, I'm a python beginner & I'm learning it on my own. So, I've few (dumb) questions about it. - Where should I host a python project on linux? I'm sure there'd be multiple choices. So, Where would you host it & on what circumstances? - I understand that `virtualenv` …

Programming python
Member Avatar for v1shwa
0
579
Member Avatar for calypso11

Write a select statement that will display student id, student last name and the number of courses a student has been enrolled. You will need to join two table, use a COUNT aggregate and a GROUP BY clause in your SELECT statement. That is the question. I've written the following …

Member Avatar for Amr.Mohammad87
0
208

The End.