- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
How do i read a txt file into a char array. what i have so far only give me blank lines String fname = "c:\\game.txt"; char data; int row = 2; int col = 4; char[] matrix = new char[row]; private void openFile() { try { FileReader reader = new … |
|
We are an IT company and we constantly get asked to install new software on computers. We are looking for a way to automate the sofware install process. We want something that will let us choose which software to install and not run without any interaction. |
|
I have a jpg image and when i do [CODE]<img src="images/logo.jpg" />[/CODE] it doesnt show up. if i put another jpg and call it logo.jpg it does. What could possibly be wrong with this jpg that html doesnt like it. |
|
I am looking for an open source software that i can sync my documents from my Windows, Mac and Linux machine. I have alot of pics/music and docs. There are alot of services online that do it but i have to pay for it. Is there a software already designed … |
|
how can i echo this code. when i echo it it prints out the html tags and <? php code ?> i want to echo the html code and interpret the php as php. [code] echo "<h2>Add Contact</h2> <form name=\"form1\" action=\"<?=$_SERVER['PHP_SELF'];?>?mode=added\" method=\"post\"> <table class=\"tableStyleClassTwo\"> <tr><td>Name:</td><td><div align=\"left\"> <input type=\"text\" name=\"name\" /> … |
|
Why am i getting this error: Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /Users/Joli/Sites/TestSite/index.php on line 47 [code] $conn = mysqli_connect("localhost","sql","password","db") or die("Query died: Connect"); $checkSql="select count(id) as eCount from address"; $result = mysqli_query($conn,$checkSql); $row = mysqli_fetch_assoc($result); if($row['eCount'] == 6){ $disable = 1; } [/code] |
|
I have a css that when i put my mouse over the image it displays the image bigger. the issue is that i have alot of images and when i scroll down the page the larger image displays on top and i cant see it. I want to position the … |
|
what is wrong with this form????? i can see the name and email but not the msg?? [code] <?PHP echo $_POST["name"]; //works echo $_POST["msg"]; //nothing prints out ?> [/code] [code] <form method="post" action="form.php" style="margin:0; padding:0"> <b>NAME:</b><br> <input name="name" type="text" class="form" id="name"> <br> <br> <br style="line-height:8px"> <b>E-MAIL:</b><br> <input name="email" type="text" class="form"> … |
|
im new to php why is this rss feed not working. all i get i a blank page. [code =php] $rss = simplexml_load_file('http://feeds.feedburner.com/linuxtoday/linux?format=xml'); foreach($rss->item as $item) { echo "<b>$item->title</b>" , "<br />",$item->description, "<br /><br />"; echo sprintf("<a href='%s' target='_blank'>Read more</a>", $item->link), "<br /><br /><br />"; } [/code] |
|
im new to java script. I am trying to make a time/date function update automatically. when i view the page i get the right time, but i have to refresh the browser in order to update it. How can i do it to automatically update itself. i want the clients … |
|
i have an html form with a text area. when use get or post to retrive the info the text is not correctly formatted meaning. the begining of new paragraphs are not working and indents either. it is just one big sentence. |
|
i have two values in a table and instead of returning the values it returns the word "array" twice. [code] $mysql = new sqlConnection(); $query = "SELECT DISTINCT status FROM status ORDER BY status"; $result = mysql_query($query) or die('Error, query failed'); while ($row = mysql_fetch_array($result)) { echo "$row<br>"; } $mysql->close(); … |
|
what is wrong with this code: when i do a $mysql = new sqlConnection("path.xml"); i get: Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "path.xml" in /Applications/MAMP/htdocs/ebenezer/scripts/sqlconn.inc on line 11 Fatal error: Call to a member function children() on a non-object in /Applications/MAMP/htdocs/ebenezer/scripts/sqlconn.inc on line 13 the … |
|
How would i write a function to accept X number of parameters for ex if i want to write a function to insert into a db. i dont know how many fields i will be inserting into the table? |
|
I have an html form when i submit it it goes to a php page. i want to change the action so the php execution happens on the same page. [code] <form method ="POST" action = "user.php"> <table align="right" cellpadding="10" cellspacing="0"> <tr> <td>EMail: </td> <td><input type="text" name="email" /></td> <tr> <td>First … |
|
my else statement is not executing it returns a black page. [code] while($results = mysql_fetch_array($user_name)) { if ($results['email'] == $Entered_UserName && $results['password'] == $Entered_PassWord) echo 'working'; else echo 'not working'; } [/code] |
|
Why doesnt this code work. I keep getting false even when i type in the correct username and password [code] $user_name = mysql_query("SELECT * FROM users WHERE username = '".$Entered_UserName ."' AND password = '".md5($Entered_PassWord) . "'"); $user_name_password = mysql_fetch_assoc($user_name); if($user_name_password === false) { echo 'false'; } else echo 'true'; … |
|
I have a macbook pro running snow. I cant get it to go to sleep in 32bit when i boot it up in 64bit it goes to sleep without a problem. I reinstalled the os and now it will not go to sleep in either 32 or 64 any ideas? |
|
i am writing a php program to read simplexml file. i get the following error Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/TestSite/sqlconnectstring.xml on line 1 here is the php file [code] include ('sqlconnectstring.xml'); class sqlConnection { var $server; var $user; var $pass; function __construct() { $xml = new SimpleXMLElement($xmlstr); … |
|
i have a class called sqlConn.php within the same directory as hiuser.php how do i call that class. [code] include('sql_Conn.php'); $sql = new sql_Conn; [/code] does not work i get Warning: include(sql_Conn.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/TestSite/hiUser.php on line 10 Warning: include() [function.include]: … |
|
I have a form that get processed by a php page and depending on what the user decides it will get summited to another php form. But the [code = php]<input type="text" name="fname" value="<?php 'echo $tesing';?>"[/code] part does not work inside php. if i try the code outside it works, … |
|
I am having dificulty setting up mac mail with an ms exchange server. i am able to recieve emails with no problem but i cant send. does anyone know how to setup the smtp part with an exchange server. |
|
i am trying to setup mac mail to work with exchange. i am able to recieve but not send. does anyone know the correct smtp settings for an exchange server? |
|
I want to incorporate a file browser into my windows app so users can select which file to copy. I am running vs2008. |
|
I have a tab delimilated txt file. how can i read only the second part of the file. ex 10.0.0.0 hostname date i want to read in the hostname only what function can i use to do this? |
|
I am trying to write a program that will monitor my routers and servers and notify me when they go down. I am looking for a way to ping the host and read the reply. The InetAddress.isReachable method is the only thing i could find but it uses the echo … |
|
I have a file that is tab separated. i read it in as an arraylist<string> how can i print out only the second section of the file? |
|
i have a 2d array. i know the position. how can i print it out. i just need to print out 1 single element not the entire array. |
|
I have a 2d char array and i need to find the position of a specific char in the array. what method can i use. return Arrays.binarySearch(this.matrixCopy, "S"); does not work it keeps returning -1 when there is an S in the array. |
|
i have a file with 2 int's i need to assign them to a variables. the int's are separeated by a space. what method can i use to read each int separeate and then assign it to a variable. |