39,326 Topics

Member Avatar for
Member Avatar for BenzZz

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 …

Member Avatar for BenzZz
0
504
Member Avatar for dyingatmidnight

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 …

Member Avatar for blocblue
0
164
Member Avatar for samidha

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 …

Member Avatar for pritaeas
0
217
Member Avatar for DaveyMoyes

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)){ …

Member Avatar for DaveyMoyes
0
452
Member Avatar for imolorhe

Please what is the best programming language and IDE that can be used in the development of WML web applications for mobile phones?

Member Avatar for peter_budo
0
65
Member Avatar for baig772

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??

0
73
Member Avatar for dany12

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?

Member Avatar for baig772
0
421
Member Avatar for ebanbury

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 …

Member Avatar for Biiim
0
65
Member Avatar for Clarkeez

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?

Member Avatar for Biiim
0
369
Member Avatar for HemZone

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 …

Member Avatar for pritaeas
0
469
Member Avatar for jdgieschen

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 …

Member Avatar for joshmac
0
302
Member Avatar for mrcniceguy

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 …

Member Avatar for joshmac
0
164
Member Avatar for oksam

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 …

Member Avatar for JorgeM
0
91
Member Avatar for gopi17

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 …

Member Avatar for gopi17
0
151
Member Avatar for fuggles

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 …

Member Avatar for KMon
0
76
Member Avatar for Madriganoh

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 …

Member Avatar for dricks
0
155
Member Avatar for dalip_007

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 …

Member Avatar for pritaeas
0
200
Member Avatar for ebolt007

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 …

Member Avatar for stbuchok
0
431
Member Avatar for ak47carbon

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

Member Avatar for peter_budo
0
64
Member Avatar for dany12

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 …

Member Avatar for baig772
0
92
Member Avatar for trektrak

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 …

Member Avatar for dany12
0
172
Member Avatar for ak47carbon

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

Member Avatar for veedeoo
0
118
Member Avatar for ebanbury

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 { …

Member Avatar for ebanbury
0
715
Member Avatar for tarunfuture

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

Member Avatar for vibhaJ
0
76
Member Avatar for abhishek2301

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 …

Member Avatar for vibhaJ
0
131
Member Avatar for DGULLIVER

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 = …

Member Avatar for niranga
0
181
Member Avatar for abhi10kumar

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.

Member Avatar for abhi10kumar
0
177
Member Avatar for Mxlfa

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 …

Member Avatar for baig772
0
169
Member Avatar for j23

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("") …

Member Avatar for baig772
0
149
Member Avatar for HasNor

Hi all, Have a nice day.. I want to know that way to backup our SQL data from server. Any suggestion for me?

Member Avatar for HasNor
0
110

The End.