39,326 Topics
| |
Hi, I've been reading into testing my PHP code particularly unit testing using PHPUnit. The problem I have is that most of my code is procedural with not even many functions. I have read that unit testing is more suitable for OO PHP however i have seen that many people … | |
Hello all, so I was tasked with looking into a way to rewrite our dynamic url's to something more user and seo friendly. I have absolutely no exprience in this area so it's been a lot of googling and trial and error. However; I've reached something of a wall in … | |
I am a new user in PHP and currently developing a blogging web-site using PHP. I have designed a simple design of Create Blog page using HTML syntaxs, created database fields in MySQL as 1) Blog-Id 2) User-Id 3) Blog-title 4) Blog-text. Now if I am supposed to give interface … | |
Hi everyone, I need a wee bit of help with the following. I am calling all country names from a db table and echo-ing out each country name in a list format. $query = "select * from countries order by Country Desc"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ … | |
Please what is the best programming language and IDE that can be used in the development of WML web applications for mobile phones? | |
Hi all i am working on a third party recruitment site in wordpress. Site basically acts as intermediary between candidate and employee. Is there any plugin to manage employees and employers in wordpress?? | |
I need to retrieve a valeu from a select in html like on this [Link Anchor Text](http://www.saxoprint.co.uk/shop/folded-leaflets.aspx/) and calculate the price can anyone help me? | |
Hi I've read through the posting regarding 'actions on a link' but as my function is not in javascript I didn't want to confuse the conversation. I was wondering how/if it is possible to call a function from a text link, button, image etc via something like this: <?php if … | |
Hello I'm not sure how this is possible but I want to enter a wildcard(?) into a php variable.. like this, <?php if($_SERVER['HTTP_HOST'] == '*.domain.com') { //do something } ?> Notice the * I basically need it to match if its any subdomain of domain.com Possible? | |
Hi, I'm getting this error Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Adult\index.php on line 155 Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\Adult\index.php on line 261 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Adult\index.php on line 301 … | |
Alright everybody! Here's a whopper for you. I've looked over this for the longest time and just can't figure it out. I want to update my database with the user's information when they save the html form. I'm guessing there's like a quotation mark or comma misplaced or something, and … | |
Hey guys, i need Your suggestions(help). i created a social network website not long time ago,now i want to put the News feed in the home page like the Facebook one. That is if a friend posts status,add friends,uploads photos,video,join groups,Commented something etc to appear in the home page. Please … | |
I am working on a website where users can post items. I would like to provide them a custom analytics for ther items. So that the item owner can figure out how many people visited their item. I did some research in Daniweb, most of suggestion were made about google … | |
okay....my cookies and session varibles are not working on my handheld...but its working on my computer...i have checked my handheld using phpinfo(), it does accepts cookies...in desperate need to idea...kindly guide me please invoice.php <?php session_start(); //starting session $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password … | |
I am writing a site where I will have a news feed of updates on the front page. I have a table that will store the posts. Its fields are post_id, topic, body, and dateposted. I would like for it to search through the table and get the ten latest … | |
I am new in PHP developing a site,Online Graduate Curriculum Vitae System, and a have the following forms to complete with PHP,: -Personal infomation -Desired employment -Occupational field -Work Experienc -Education and Training -Languages -Personal skills and competences -Additional information and aennexes ...then you save your complete CV that can … | |
well Guys i am not sure if what i want is atleast possible or not. what i want is to write a script in php, which will crawl through all my hard drive for all files and folders irrespctive of the file type and pick the emails address up and … | |
Maybe I'm doing this wrong, but here's what I'm trying to do. Ok, so how do I send the URL to a new page? Right now I understand the writing ajax to a div, replacing the contents of the div, appending it etc. But what about if I am using … | |
Sir i want to know what is process of ecommerece paypal website procedure how can i config paypal with our site plz tell me in detail | |
I can’t make the assets work with the code provided by the contributors the only way i can get my css is with a method discovered by someone else on this ciforum `<?php $this->load->helper('html'); $this->load->helper('asset'); echo link_tag(css_asset_url('default.css'));?>` and now I need a similar method or a solution to include my … | |
Hello guys, I've been playing around with php / sql programming like 6 months now. I would love to know what is the most basic security that I need to apply for php programming ... well at least the basic.. Well if you can list down .. and some snippets … | |
i want to give this type of coding in my website plz tell how can i give 404 error page like in this url http://www.google.com/m.php | |
Hi Does anyone know how to make this dynamic field 'sticky'. The code as it currently stands does not keep the chosen item showing in the field if there is an error in the form. It just default back to nothing Many thanks <select name="condo_nm" class="maintextnopad" id="condo_nm"> <?php do { … | |
An appropriate representation of the requested resource /admin/offers.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. i am getting this error while i m trying to update on my form | |
Hello, I need to display 2 images and 2 corresponding radio buttons so that a user can select one choice and then submit. After submit, it should be posted to the server where some image metadata (size, etc.) will be stored in a db and the previous 2 images will … | |
Hi, Pretty new to php so would like some advice on how to insert linefeed to the text area. here is my senario the query: $polQuery = "SELECT * FROM users WHERE user_id='$userid' AND status='active' LIMIT 1"; $polResult = smart_mysql_query($polQuery); $polTotal = mysql_num_rows($polResult); if ($polTotal > 0) { $row = … | |
SELECT * FROM onlinepg as pg, pg_rooms as rooms WHERE pg.pg_id=rooms.pg_id and pg.status=0 AND ( rooms.roomtype='Sharing Basis' ) How I can write above query in PHP.. so that I can run successfully on mysql. | |
I'm having a bit of trouble on a web framework, I know that you can use a web application framework to build websites, but what language can you use to build a web framework?? c#, java, php do you use the Zendphp framework or cake or something smilar to building … | |
The problem I'm having is that the line = header('location: loggedin.php'); is not bringing jumping to the loggedin page when I enter the correct Username and pword. Can someone see where my problem is? <?php $error = ''; session_start(); //connect to db $connectdb = mysql_connect("","",""); //select database $selectdb = mysql_select_db("") … | |
Hi all, Have a nice day.. I want to know that way to backup our SQL data from server. Any suggestion for me? |
The End.