i am doing my final year at university and i am supposed to do a project dissertation. Can someone help me with a project topic. I would prefer a project that is inclined to php or web development

i joined a new organisation and was given a Total Control Enterprise Network Hub. which have the following :

[U]NIC[/U]
[LIST]
[]10/100 NMC NIC
[
]Dual 10/100 PC Ethernet NIC
[]Dual 10/100 PC Ethernet NIC
[
]Hiper DSP T1/E1 NIC
[*]Hiper DSP T1/E1 NIC
[/LIST]

[U]NAC[/U]
[LIST]
[]Hiper DSP Card
[
]Hiper DSP Card
[]Hiper DSP Router Card
[
]Hiper DSP Router Card
[*]Hiper DSP NMC
[/LIST]

and a RS232 cabe which have on one end RJ45 and on the other a DB25 which is connected to a female to female DB25 null modem.

My problem is that i dont know how to connect the Total Control Enterprise Network Hub to a pc which is running windows 2000 and use hyper terminal to check if there is communication.

I actually dont have the manual

try this :

hope its what you are looking for. I tried it and it works

Hie everyone.

Its been a year now using PHP and i think i do understand it now but dont understand what a PHP framework is and what it is used for, how it works, and if its necessary to use it.

try modify this code to suit what you want

[CODE]

$name= "record to delete"$sql = "DELETE FROM Users WHERE Name= '$name'"or die ("ERROR: Cannot not find user!");$result = mysql_query($sql) or die ("Error in query:$sql. ".mysql_error());

[/CODE]

try to use page redirection to the required page after user validation

You can try this code

[CODE]

if ($user="admin") { header('Location: admin.php'); } else { header('Location: ordinary_user.php'); } [/CODE] can u give us the code that u have so that we can see where u are getting it wrong try this javascript function which will be called with php code add this code in your inside the head tag but below the title tag [CODE] <script type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> [/CODE] and this code you will add it inside the body tag, but you have to first test if the cookie is not set. if not set thats when you put this code [CODE] <?php echo"<SCRIPT LANGUAGE='JavaScript'> MM_openBrWindow('yourpage.html','advert','status=yes,resizable=yes,width=500,height=400')</SCRIPT>"; [/CODE] where it says: your page- put the name of the page you want to be popped advert- just the name you want to give it status- is if you want it to show status bar resizable- is when you want it to be resizable width and height- thats the size of the pop up i have a website and it have a flash banner. the problem is that every time i open a link the banner will have to reload again. is there any way that i can use on my links so that when the link is clicked it will include a page (for axample information of about us, services) in the contents part of the page (below the banner) without making the banner to reload just like what frames do to concatenate in php you use a period/full stop change this line [CODE]echo "<p>",$lname, ", ",$fname, ", ",$dob;[/CODE]

to
[CODE]echo "<p>".$lname. ", ".$fname. ", ".$dob. ",".$reg_num;[/CODE]

You can also try this one.

for example on page1.php you can have a link that when clicked will pass variables to page2,php

page1.php

[CODE]
<?php
echo "<a href='page2.php?var1=1&var2=2&var3=3>"."link </a>";
?>
[/CODE]

page2.php

on this page you will retrieve the values using $_GET [CODE] <?php$var1=$_GET["var1"];$var2=$_GET["var2"];$var3=$_GET["var3"]; echo "$var1";
echo "$var2"; echo "$var3";

?>
[/CODE]

can you please be specific.

Do you want to put content from database into drop down or from a table. If from a table where is the content coming from

try this code it works for me

[CODE]

<?php
$host="localhost"; // Host name$username="root"; // Mysql username
$password=""; // Mysql password$db_name="forum"; // Database name
$tbl_name="test_mysql"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");$sql="SELECT * FROM test_mysql";
$result=mysql_query($sql);

?>

<form name="form1" method="post" action="">
<select name="Names" id="Names">
<?php

while($rows=mysql_fetch_array($result, MYSQL_ASSOC))

{

echo"<option>". $rows['name']."</option>"; //to display names from database in field called name } mysql_close(); ?> </select> </form> [/CODE] nav33n commented: Thanks for the rep man. I am not good enough though. I m still learning. +1 i have this code which is supposed to increment a counter on page [CODE] <?php //create a file called counter.txt and upload it to your server //now open the file$fp = fopen("counter.txt" , "r");
//read in the current count
$count = (int)fread($fp, 1024);
//increment the count by 1
$count++; //close the file fclose($fp);
//image display, get the lentgth of the count

echo"<table cellspacing=0 width =4% cellpadding=0 row=1 column=".strlen($count); echo"<tr>"; for ($i = 0 ;$i < strlen($count) ; $i++) {$imgsrc = substr($count,$i ,1);
//display the image(s) note our images are in a folder located at
//images/count1/ change this to your location
echo"<td width=2%>";
echo "<img src =\"images/count1/" . $imgsrc . ".gif\">"; echo"</td>"; } echo"</tr>"; echo"</table>"; //open the counter file$fp = fopen("counter.txt", "w");
//write the new count to the file
fwrite($fp,$count);
//close the file
fclose(fp); //include("grcounter.php"); ?> [/CODE] it is reading from text file and display the value from file but it is failing to update the file with the new value which is an increment of the counter use the following code: i have just included the first row and hope you will not have problems with the rest: [CODE] <?php echo "<table cellspacing='4' cellpadding='4' border=1 align=center>"; echo"<tr>"; echo"<td>Day</td>"; echo"<td>Time</td>"; echo"<td>Unit</td>"; echo"<td>Lecturer</td>"; echo"</tr>"; echo"</table>"; header("Content-type: application/octet-stream"); replace excelfile.xls with whatever you want the filename to default to header("Content-Disposition: attachment; filename=excelfile.xls"); header("Pragma: no-cache"); header("Expires: 0"); ?> </p> </body> </html> [/CODE] [COLOR="Red"]please if found this code helpful, can you add my reputation[/COLOR] there is this code [CODE]var1='done'
header("Location: index.php?$var1"); [/CODE] and now want to pass the value in the variable$var1 and store it in another variable in index page

How do you provide email service on mobile phones.I want a system that sends email from cell to cell and also from computer to cell and cell to computer without limiting the file size.What infrastructures and things need to be put in place.

i have this code:

include('DB_connection.php');
$result = mysql_query('select * from login');$count = mysql_num_fields($result); for ($i = 0; $i <$count; $i++){$header .= mysql_field_name($result,$i)."\t";
}

while($row = mysql_fetch_row($result)){
$line = ''; foreach($row as $value){ if(!isset($value) || $value == ""){$value = "\t";
}else{
# important to escape any quotes to preserve them in the data.
$value = str_replace('"', '""',$value);
# needed to encapsulate data in quotes because some data might be multi line.
# the good news is that numbers remain numbers in Excel even though quoted.
$value = '"' .$value . '"' . "\t";
}
$line .=$value;
}
$data .= trim($line)."\n";
}
# this line is needed because returns embedded in the data have "\r"
# and this looks like a "box character" in Excel
$data = str_replace("\r", "",$data);

# Nice to let someone know that the search came up empty.
# Otherwise only the column name headers will be output to Excel.
if ($data == "") {$data = "\nno matching records found\n";
}

# This line will stream the file to the user rather than spray it across the screen

# replace excelfile.xls with whatever you want the filename to default to

echo $header."\n".$data;
?> 

the problem is that it is displaying everything in the first field

code in login page is:

how do i get the data from the variable in index page after redirect from login page

i mean the TLD (top level domain) with '.zw'.

want to put a serch engine on my site that will find all TLD ending with 'zw'

i have a problem when i am running asp files on linux server running apache. The pages wont open or process the data

Is there a free script that i can use to search any website that is in my own country.

here is the whole program:
line in bold when debugged is giving the value of currunt->words as Could not watch this variable

[code]

include <iostream.h>
include <stdlib.h>
include <stdio.h>
include <conio.h>
include <string.h>

struct doc_words
{
char words[30];
int numWords;
struct doc_words *next;
};

struct doc_words
current;
struct doc_words check;
struct doc_words
newNode;

//char *calloc();

struct doc_words getmem()
{
struct doc_words
p;
//p = malloc(sizeof(struct doc_words));
p = (struct doc_words*)malloc(sizeof(struct doc_words));
if(!p)
{printf("out of memory");
return(0);
}
else
return(p);
}

void AddWords( char text[30])
{

char temp[30];
strncpy(temp,text,29);
do
{
[B] if (current->words==temp)[/B]
{
current->numWords++;
break;
}
check=check->next;
}while (check!=NULL);
else
{
newNode=getmem();
strncpy(newNode->words,text, 29);
break;
}

}

void extract_words_from_file()
{

char word[30];

FILE *ifp;

if ((ifp=fopen("C:\collins_tirivamwe\DSA\text.txt","r"))!=NULL)
{

while (fscanf(ifp,"%s",word)!=EOF)

{
printf("%s",word);
}
fclose(ifp);
}
else
printf("error");
}

{
printf("words in list");
struct doc_words *current= head;
while (current!=NULL)
{

printf("%s\n",current->words);
current=current->next;
}

}

int getCount()
{
int count=0;
struct doc_words *current= head;
while (current!=NULL)
{
count++;
current=current->next;

}

printf("\n %d",count);
return (count);
}

/
int getCount(char word[30])
{
int count=0;
struct doc_words
while (p!=NULL)
{
if (strcmp(p->word,word)==0)
{
count++;
p=p->next;
}
else
{
p=p->next;
}
}
return(count);
}

*/

int main()
{
int p=0;
extract_words_from_file();

p=getCount();
// printf("\nnumber of words are %d",p);
system("PAUSE");
return 0;

}
[/code]

temp has value of : "is"

check->value has avue of: Could not watch this variable

i tried that but when debugging i am having this error

An Access violation(segment fault) raised in your program.

the line of code crushinhg the program is:

[QUOTE] if (strcmp(check->words,temp)==0)[/QUOTE]

the function first search a word from the linked list. if found it then increment the numWords (number of words in listfor that word) and if not found it shoud create a new node for the word.

the code is:

[CODE]void AddWords( char text[30])
{

while (check!=NULL)
{
if (strcmp(check->words,text[30])==0)
{
check->numWords++;
break;
}
else
{
newNode=getmem();
strncpy(newNode->words,text, 29);
}
check=check->next;

}[/CODE]

i am having this compiler error:

[COLOR="Red"]Warning] passing arg 2 of strcmp' makes pointer from integer without a cast [/COLOR]

for this line of code:

[CODE]if (strcmp(check->words,text[30])==0)[/CODE]

i finally got it right my mistake was here:

[CODE]int getCount(char word)[/CODE]

it should be:

[CODE]int getCount(char word[30])[/CODE]

herer is the code of the list:

[CODE]struct doc_words
{
char words[30];
struct doc_words *next;
};[/CODE]

and the code of the function:

[CODE]int getCount(char word)
{

 int count=0;
struct doc_words *p = head;
while (p!=NULL)
{
if (strcmp(p->words,word)==0)
{
count++;
p=p->next;
}
else
{
p=p->next;
}
}
return(count);
}

[/CODE]

i have this line of code and want to compare the word from the linked list with the one supplied by user.

the code is:
[CODE] if (strcmp(p->word,word)==0)[/CODE]

and i am having this error:

[COLOR="Red"]passing char' to argument 2 of`strcmp(const char , const char )' lacks a cast[/COLOR]

thank you so much, it is now saving in the list.