39,320 Topics

Member Avatar for
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
366
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
461
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
299
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
180
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
168
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
148
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
Member Avatar for mjones11

I had this working fine under php 5.2 but my hosting company upgraded to 5.3 and now its broken. I get an erro of Fatal error: Call to undefined method PDF::FPDI() in /home/freedoms/public_html/admin/phptopdf/html_table.php on line 45 Not sure why, any help is appreciated. html_table.php <?php //function hex2dec //returns an associative …

Member Avatar for mjones11
0
1K
Member Avatar for Dani

Soooo ... quick question :) I need to do some HTML parsing with regex :) I currently use `$output = preg_replace('/>\s+</', "> <", $output)` to strip whitespace between any two HTML tags. What can I do to strip whitespace only between paragraph tags. For example, only between `</p>` and `<p>` …

Member Avatar for Dani
0
413
Member Avatar for shlokka

hi everyone.... i have a script i made that chooses a random name from a database i need to output many names on the page the code is used on, one name for each comment shown on screen.....i tried a few things but the code below is resulting 10 names …

Member Avatar for diafol
0
123
Member Avatar for abhi10kumar

Hi I would like to create a pop up screen to load from my home page to encourage subscriptions to my newsletter. I can also send email as well as save into a table..?

Member Avatar for fobos
0
22
Member Avatar for pratik1

HOW TO FIND A GIVEN KEYWORD FROM A website?? Hi i ve included a search box in the header section of the website.....now how can I use the php code to search a given keyword from the whole website content??

Member Avatar for pritaeas
0
46
Member Avatar for Angelojoseph17

I have a drop down box which has two values, when either is chose a seperate text box or another drop down box is opened. However it part works with the second option but not the first one. can someone have a look: php/html code: <tr><td> Choose Delivery Type </td> …

Member Avatar for Angelojoseph17
0
154
Member Avatar for danielsikes

Hi, I am trying to copy a directory from one spot on my server to another spot on my server. I have copied the directory successfully, but suppose I delete a file in the "parent" directory. I want the "child" directory to be exactly the same as the parent directory. …

Member Avatar for pritaeas
0
239
Member Avatar for mortyBox
Member Avatar for pritaeas
0
71

The End.