hi, you should change the connection params in your file that is used to connect to your database. Please see with the sever config what params to used for Mysql runnig on the server.
hi, you should change the connection params in your file that is used to connect to your database. Please see with the sever config what params to used for Mysql runnig on the server.
Ya thank you a lot! But i think im dropping this idea as i am new to that technology and that its my final year project, so im quite nervous on taking up that risk! Thanks a lot again
Dear friends, i am a university student competting for my bsc(hons) in IT! i suggested to have my final year project based on android, n for your info, i have never codded in android. im am supposed to give a suggestion by tomorow! and i would be completing my project by august!
What the program is to to do, it
1) automatically locate where you are in mauritius
2) you select your destional upon tapping on specific location in maritius
3) it will tel u the route you need to take to got thier...eg by car, the km and the duration u will reach their
4) you may also wish to select to go by public bus, which will then retrieve the info from a database, about the bus schedule using the actual time, and tell you the bus fare
My question is that be possible to be done on android, the map of mauritius with multple roads, and locations, and route?
Please help
thanks a lot
So post if you want to get feedback on your idea, or close thread nothing for discussion.
ok, herez the idea. But please note its now im on my first hello world in java. I wana create an application based on mobile technology namely android, that will track where you are actually, and by that you choose your destination upon a map, it will tell u the shortest route, or opt for using public bus, will tell your were, n how to travel to go there, with the approx bus schedule, and bus rates to b paid!
Sorry that is not the name of the game. You came up with some ideas and we can comment on it. For start have look on android market website and search for stuff to know whah people did...
Ok dr tkx! So i finally found an idea on which i wana develop.
hi i am a university student from Mauritius and i am going for my final year project for my course Bsc in Information Technology. I am good at php,mysql, but now i want to make use of java, android for my final project. So i am already on the track of learning them. I already installed eclipse, android emulator etc.. and completed my first tutorial which is the famous "Hello World".
My issue is that idont really know of what mobile and android are capable of! So, as you guyz are experts, i which if you could help me get some ideas on which i can start my development on android.
Hope you could help me in!
Thanks a lot.
hi, thanks for u precious helps... Now i need to know if it is possible to edit an online docx template and save it back to docx locally? wat i mean by template is that it enters specific values on the template as per a form entry
hi i wrote a code in php which enables login with session. So that i can retrieve info of the loged user. It works fine in Firefox but not in IE8. What is probably the matter?
$sql_posts = 'select * from posts limit "'.$start.'", "'.$limit.'"';
im getting error with this line ?what could be the matter..
plz help
hi guyaving the following problem, im having the following problems.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3264 bytes) in C:\xampp\xampp\htdocs\bestbuy\includes\SimpleImage.php on line 32
Y i am getting this error as the file isnt bigger?
when i try to upload file >2mb i get that error
here is the simpleimage code
class SimpleImage {
var $image;
var $image_type;
function load($filename) {
$image_info = getimagesize($filename);
$this->image_type = $image_info[2];
if( $this->image_type == IMAGETYPE_JPEG ) {
$this->image = imagecreatefromjpeg($filename);
} elseif( $this->image_type == IMAGETYPE_GIF ) {
$this->image = imagecreatefromgif($filename);
} elseif( $this->image_type == IMAGETYPE_PNG ) {
$this->image = imagecreatefrompng($filename);
}
}
function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) {
if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image,$filename,$compression);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image,$filename);
} elseif( $image_type == IMAGETYPE_PNG ) {
imagepng($this->image,$filename);
}
if( $permissions != null) {
chmod($filename,$permissions);
}
}
function output($image_type=IMAGETYPE_JPEG) {
if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image);
} elseif( $image_type == IMAGETYPE_PNG ) {
imagepng($this->image);
}
}
function getWidth() {
return imagesx($this->image);
}
function getHeight() {
return imagesy($this->image);
}
function resizeToHeight($height) {
$ratio = $height / $this->getHeight();
$width = $this->getWidth() * $ratio;
$this->resize($width,$height);
}
function resizeToWidth($width) {
$ratio = $width / $this->getWidth();
$height = $this->getheight() * $ratio;
$this->resize($width,$height);
}
function scale($scale) {
$width = $this->getWidth() * $scale/100;
$height = $this->getheight() * $scale/100;
$this->resize($width,$height);
}
function resize($width,$height) {
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());
$this->image = $new_image; …
i dun no why my mail server run in the local host but still cant use the mail () function the code is correct but still cant send any one help me pls
Are you sure your mail server is running? i dont think so! coz u are using localhost!
hi guyz im using phpmailer to send mails but into the message variable i cannot add an activation link? the link is send but is not hyperlinnked in any mails(hotmail,gmail etc)
here is my code:
$mail = new PHPMailer();
//$body = $mail->getFile('contents.html');
//$body = eregi_replace("[\]",'',$body);
$body = "Welcome $surname, $name \n You, or someone using your email address, has completed registration at www.maurimarket.tk. You can complete registration by clicking the following link:\n";
$body .="http://www.sellnbuy.tk/confirmation.php?".$activationKey."\n";
$body .="If this is an error, ignore this email and you will be removed from our mailing list. Regards, www.bestbuy.tk Team \n";
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "mail.com"; // GMAIL username
$mail->Password = "password"; // GMAIL password
$mail->AddReplyTo("mail.com","Admin");
$mail->From = "mail.com";
$mail->FromName = "Admin";
$mail->Subject = "Registration Maurimarket";
//$mail->Body = "Hi,<br>This is the HTML BODY<br>"; //HTML Body
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->WordWrap = 50; // set word wrap
$mail->MsgHTML($body);
$mail->AddAddress($email, $name." " .$surname);
Please help,
tkx
hi
i really need ur help guyz n im sure u'll b helping me as usual
i created a prog that converts currency to another one
now i want to get a graph of the changing rates .
i created a database in access and inserted the dates and each courrency combination rates. the thing is that i dnt know how to query data from vb.net
i know how to dfo using ADODB in vb 6 but here its different. i used oledb but it does wrk i dnt kknow how to apply sql query statement with it
plz help
tkx
hi, i got a database that has as fields date, rate 1 and rate2
i want to display the rate1 and rate2 as graphs. hoe can i do that to reatrieve data from msaccess and display it.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If (TextBox1.Text = " ") Then
MessageBox.Show("Value cannot be null")
End If
daRates.Update(DsRates, "rates")
End Sub
im using vb,net 2003 and access xp
i cannot save data and im using oledbconnection etc
all is fine
if i use the same code but instead of Update i put Fill, it displays the table...
can u tel me wats wrong y i cannot input data to the table?
Is your file in the same directory as where you applet is?
ya its in the same directory... plz help me, i neeed it quick help.....
/*********************************
* Program Name: Task2.java *
* Date: 27 Janauary 2008 *
* Programmer: Dhanandjay MOTAH *
*********************************/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Graphics.*;
import java.applet.Applet;
public class Task1 extends JApplet implements ActionListener
{
JLabel lab1; //label created
JComboBox comb1; //combo box created
JButton but1; //button created
public void init()
{
//creates a container pane
Container con=getContentPane();
//uses pink as backgroud color
con.setBackground( Color.pink );
// uses a flowlayout as layout manager
con.setLayout(new FlowLayout(FlowLayout.LEFT,10,10));
lab1=new JLabel("Please choose an image here:::>");
con.add(lab1);
comb1=new JComboBox();
//list of images
comb1.addItem("Lake");
comb1.addItem("Wood");
comb1.addItem("Tree");
comb1.addItem("Vienna");
comb1.addItem("Mauritius");
comb1.addItem("Canada");
comb1.addItem("Fireworks");
comb1.addItem("NewYork");
comb1.addItem("France");
comb1.addItem("Switzerland");
con.add(comb1);
//a picture in the button
ImageIcon image = new ImageIcon("exit.jpg");
//add a button with the button labelled
but1=new JButton("Terminate",image);
getContentPane().add(but1);
but1.addActionListener(this);
comb1.addActionListener(this);
}
//describes what hapens when actions are triggered
public void actionPerformed(ActionEvent actevent)
{
if(actevent.getSource() == but1)
{
lab1.setText("Program Terminated, Please Close the Viewer");
repaint();
}
else if(actevent.getSource() == comb1)
{
repaint();
}
}
//shows the selected inage from the combo box
public void paint( Graphics gr )
{
Boolean n=true;
super.paint(gr);
if (Image image = getImage( getCodeBase(), comb1.getSelectedItem().toString() + ".jpg"))
{
//draws the images at these coordinates
gr.drawImage( image,100,100,100,100, this );
}
}
}
plz how ken i add in this applet a FileNotFound exception
plz help
thanks a lot
hi,
i have the following codes i did
now i need top collect the output of these arrays to a third one, and then see what values are same..
plz help me in this code..
/*********************************
* Program Name: Task2.java *
* Date: 27 Janauary 2008 *
* Programmer: Dhanandjay MOTAH *
*********************************/
import java.io.*;
import java.util.Random;
import java.util.Vector;
public class Task3
{
public static class Thread1 extends Thread
{
int size = 5;
int arr1[] = new int;
public void run()
{
for (int i=0;i<arr1.length;i++)
//finds only positive number and between 0 to 100
Random r = new Random();
arr1=Math.abs(r.nextInt()%101);
System.out.println(arr1);
}
}
public static void main(String[] args)
{
new Thread1().start();
}
}
hi, i have to write a code where there will b two arrays which displays a list of 0 to 100 random numbers, then a third thread will take these twa values and find the ones common in the range 70-80 and sort them in ascending order and display it..
i dont have an idea of that plz help in...
hi, im new to java...and the rest like swing and all that stufss. i got a code but i want to change the applet a bit , i mean the way it is diplayed. ken u help. and yes i want wen i click exit button the applets closes and the browser too.
mport java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Graphics.*;
import java.applet.Applet;
public class Task1 extends JApplet implements ActionListener
{
JLabel lab1;
JComboBox comb1;
JButton but1;
public void init()
{
Container con=getContentPane();
con.setLayout(new FlowLayout());
lab1=new JLabel("Please choose an image here:::>/t");
con.add(lab1);
comb1=new JComboBox();
comb1.addItem("Lake");
comb1.addItem("Wood");
comb1.addItem("Tree");
con.add(comb1);
ImageIcon image = new ImageIcon("ajay.jpg");
but1=new JButton("Exit",image);
getContentPane().add(but1);
but1.addActionListener(this);
comb1.addActionListener(this);
}
public void paint( Graphics g )
{
super.paint( g );
Image image = getImage( getCodeBase(), comb1.getSelectedItem().toString() + ".jpg");
g.drawImage( image,100,100,100,100, this );
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource() == but1)
{
//lab1.setText("Thanks for using this program, close the browser! ");
//repaint();
destroy();
}
else if(ae.getSource() == comb1)
{
repaint();
}
}
}
tkx
ok, y did u resend me the code? i used a javascript for that
<script language="javascript">
top.location.replace("./a.php");
</script>
and its working fine! but the problem is that, it doeasnt do wen the username and password is not found! i mean the else part, y?
but i dont really know how to use them, could you plz explain in more clear words! plz
<head>
<?php
$db=mysql_connect("localhost","root","") or die ('Connection error'. mysql_error());
echo "ajay<br/>";
mysql_select_db("chat") or die ('Error connecting to database'. mysql_error());
echo "connected to database";
$fr_username=$_POST["txt_username"];
$fr_password=$_POST["txt_password"];
$result = mysql_query("SELECT username,password FROM login WHERE username='$fr_username' AND password='$fr_password' ");
while($row = mysql_fetch_assoc($result))
{
if($result!="")
{
echo "good";
}
else
{
if ($result="")
{
echo "bad";
}
}
}
mysql_close($db);
$date = date("a");
if ($date=="am")
{
$title="Good Morning";
}
else
{
$title="Good Afternoon";
}
?>
</head>
<title>met-ene-dialogue</title>
<?php echo $title ?>
<style type="text/css">
<!--
body {
background-image: url();
}
.style1 {color: #C13167}
.style2 {font-size: large}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="16%" bgcolor="#FFFFFF" scope="col"><img src="images/queascopf4.gif" width="124" height="145"/></th>
<th width="77%" bgcolor="#FFCCFF" scope="col"><p class="style1">WELCOME</p>
<p class="style1">TO </p>
<p class="style1">METE-ENE-DIALOGUE DOT COM </p></th>
<th width="7%" background="Drag to a file to choose it." bgcolor="#FFFFFF" scope="col"><img src="images/queascopf4.gif" width="124" height="145" /></th>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<th width="50%" bordercolor="#330033" scope="col" border = "5">MEMBERS LOGIN </th>
<th width="50%" bordercolor="#330033" scope="col">NEW USER? SIGN IN </th>
</tr>
<tr>
<td height="139">
<form action = "<?php $page?>" method ="post">
<p>Username:
<input type = "text" name = "txt_username"/>
</p>
<p>Password:
<input type = "password" name = "txt_password"/>
</p>
<p>
<input name="Submit" type = "submit" value="Submit"/>
</p>
</form></td>
<td height="139" align="center" valign="middle"><span class="style2">Sign in as new user </span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
hi! i need help! i created a code and sql db for store usere name and password, but i only doest the $result wen if found the username and password. help plz and also i …
tkx for the advise! i seek advice on ajax then! thank you a lot!
hi im creating a chat project in php! ive created a database that is used to authorize loggin! im having problem with the chat page itself. on the page therz a textarea and a form and submit button! im confused! i dont know whether to use a txt file to open save update the message or to use mysql! plz help and plz tell me how to automatically refresh page in php! tkx
hi, i can suggest u to use xampp, ive been using it since long and got no problems wid it! it includes phpmyadmin, apache mysql filezilla etc
hi every1.
im wrtting a chat system!,the problem i dont no how to insert the value of a variable into the db(mysql)
i no connection and insertion, but only data, nat variable, plz help
hi, tkx
bt i again need ur help guyz!
im using a form with post method! bt i want wen the username and password r correct it opens another page, else it comes back to the login!
plz
watinf
thkx
hi, im using msaccess as database. can u plz tel me how to delete records using vb (it should serch nad delete)
tkx
i use this in a form
dim alt_date as boolean
....code....
alt_date=false
end
now i want this alt_date value to be saved and go on to the next form, but by default, it always remains false, even if i change it to true in the previous one.
how ken i kal the alt_date actual value in another form, and change the state to true to false.
hi, tkx to welcome me in here!
i have wrttien a program in vb6 that uses ms access. the program is a attendance monitoring system, that uses the time to calculates hrs late and early of employees.
im having problem
i dnt know how to make validations in vb6 ex: if i wrongly enter a time e.g i insert a num, the program exitshlp plz