Search text file
I would like to search a text file for a date and then stop searching when the date changes. Eg search for 19-10 18-10 monkey 19-10 bananas 19-10 nuts 20-10 leaves Would return 19-10 bananas 19-10 nuts...
View Articlesearching array.
Hello If I have a multidimensional array <?php Array ( [0] => Array ( [id] => 40000 [type] => automatic [status] => error [colour] => o ) [1] => Array ( [id] => 50000 [type]...
View ArticleDynamic Table from MySQL
Hello, Here is what I would like to do, every weeks, I would like to do a check of who attended a meeting, for that, I would like to do a table in PHP from a MySQL database, the thing is this...
View ArticleTodoList script fails to find mb_strtolower()
This is more configuration I think, but I did not see a better place to ask. I'm totally new to PHP, have not written a line of code. Have set up Netbeans, and have successfully run the TodoList...
View ArticleNeed a help in using CSS with PHP File
Need a help in using CSS with PHP File I created a Php File to create Div's (three blue boxes) and I want to align the boxes to the centre of the browser in a same row. My Php File is...
View ArticleHelp with login function and redirecting
I have this code shown below. And i want to redirect ADMIN to one spessiffic page and all others to another page. I cant figure i out. Please help. <?php if($session->logged_in){ echo...
View ArticlePHP Change User Password Script using MD5 hasing
Hey All, I have built a website using PHP and MySQL where users have to log in to use the site. I'm now trying to create a page on the site where logged in users can change their password if they...
View ArticleGetting rid of white space in an array
Hi, I'm doing some web scraping and at the end I end up with an array. $list[] = array('link' => $link, 'types' => $types); Sometimes name is empty so I end up with an array like this: Array (...
View ArticlePHP help please :(
Anyone have any ideas on how to use PHP count?? Simple example would be good. My project requires me to do a count of how many classmates I have in different classes. Something like this: Class...
View ArticleHow to sum up the total and reflect it as a link.
Hi, Need some help as I am stuck at this stage. It is hard to explain clearly in words so i attached a ppt. Wonder can any php expert guide me on that or provide a coding for me to work on. not...
View ArticleLoading.gif image when pressing upload file button
Hello 'freaks' Im making a test website where i can press a button ( then the windows explorer menu pops up and i have to choose a file to upload ) and then when i press the submit button i want a...
View ArticleFor Each Unexpected Result
Hi, I have a foreach running on the results for SQL query, but only get two results appearing. I am expecting three to be displayed. Can anyone see any major problem with this? public...
View ArticleAlternative to Foreach
So I made a script to print letters on a curve, I already tried looking for an answer on google. Each had different skew values so I broke up the letters into an array and used array combine. I used...
View ArticleMYSQL Registration
I am very new to php and I need a registration. Very simple. About as basic as it can be. Again I am very new to PHP. I am working on a project, so if anyone would like to help they can get paid. Thanks
View ArticlePHPExcel Set cell with variable
I have this test script that is acting just like my production script except production script pulls from a SQL db. I want to set the cell placement using a variable based off the count of an array. In...
View ArticleAccomodating a new datatype in an old script
I had to change a datatype to accommodate a script change (done here) and while i know what i have to do, mysql is telling me i can't do it because of implode. The script is below if($companyTbl ==...
View ArticleSpent hours trying to figure out this array cannot get it
Hello, I cannot figure this out... I will leave out most of the code to not confuse you, but I have it almost working so I am just missing something. I have two arrays, one that contains the IDS that...
View ArticleNeed suggestion on reading ssl certificates through php
Hi Members, In our company everyone having a ssl certificate in browser, which has details about the employee number. I need to build a php application, it has to be automatically logged in based on...
View Articlerecursive functions in recursive function
I have a recursive function which is calling a recursive funtion. The 2nd recursive function have a weird issue, because when I use return-statement it returns to the function itself (probably because...
View ArticleQuery using like to trieve field value with additional parameters
I have two tables, mod_music_category has a field id which autoincrements and the other table, mod_music_entries has category_id field whose value is mod_music_category.id but enclosed with "b" and "e"...
View Article