- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
IT university student
- Interests
- Reading computer magazines and books, watching movies which features computer geniuses or hackers,playing…
- PC Specs
- compaq presrio SRAP -ntel pentium processor 515: 2.93 GHz,i MB L2 ache,533MHZ FSB,90nm -memory :512MB…
24 Posted Topics
Re: 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 … | |
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 … | |
Re: try this : [url]http://www.webmastergate.com/php/paginate-query-results.html[/url] 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. please help | |
Re: 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] | |
Re: 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] | |
Re: can u give us the code that u have so that we can see where u are getting it wrong | |
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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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"; … | |
Re: 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); … | |
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++; … | |
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 … | |
code in login page is: [CODE]header("Location: index.php?$page");[/CODE] how do i get the data from the variable in index page after redirect from login 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. | |
Is there a free script that i can use to search any website that is in my own country. | |
i have a problem when i am running asp files on linux server running apache. The pages wont open or process the data | |
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]) { check=head; while (check!=NULL) { if … | |
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] | |
can someone please help me to write a code in c to do the following: 1)read words from a file 2)store the words in a linked list 3)read the words and display 4)count the number of words in list | |
my name is collins tirivamwe.i am a zimbabwean.iam currently a university student studying IT.i love programming very much.hope and promise to contribute and share what i know with you. |
The End.