39,320 Topics
| |
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? | |
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 … | |
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>` … | |
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 … | |
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..? | |
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?? | |
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> … | |
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. … | |
Every time I try to reply to a post, I get an error "Message Field is Required" Wazzup? |
The End.