- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
61 Posted Topics
Hi All I have created a simple php rss feed with works fine. However what I would really like is for the rss feed to dynamically change based on a search form. i.e. User searches for all properties for Rent, of Apartment type only, clicks on the rss icon which … | |
Hi I had an field to upload pdf's only, which worked well. I want to add the option to add docs as well as pdf's and now it is not working: if (!empty($_FILES['pdf_main']['name']) && ($_FILES['pdf_main']['type']!="application/pdf" || $_FILES['pdf_main']['type']!= "application/msword")){ echo '<p class="white">Please check the certificate uploaded. It should be a PDF … | |
Hi I'd like to send one email to the registered user and a seperate email to the Administrator, with a separate body. I thought I could just duplicate the mail() but now neither email is being sent. Email 1 - Activation Email to the Registered User $to = "liz.banbury@gmail.com, ".$reg_email; … | |
Hi I have an 'edit_profile' form. I'm having several issues with this form . There are some fields which are working fine and some aren't. This 1st issue is regarding the textarea fields When the user updates their profile, any field, the textarea adds characters which are bye<br /><br /><br … | |
Hi My forgotpass.php function used to work. Suddenly it only works up until you get the message: 'An email has been sent to you with instructions on how to reset your password. <strong>(Mail will not send unless you have an smtp server running locally.)' However no email is sent. It … | |
Hi How do I strip the </ br> from the database when a carriage return is entered into the text area by a user? I get something like this: hello<br /> <br /> hello<br /> <br /> hello In addition when using the php mail() function, the text area also … | |
Hi Via the cpanel that my host provider has I can use PHPMyAdmin. This has the usual admin functions such as the ability to export the data from a specified table into Excel. My client needs to be be able to do this - but from the website. I have … | |
Hi I have a website which is ready to launch apart from one of the key request forms which is not working properly and I just can't understand why. I click 'submit' and the form stays on the screen. I get the following message: ***Warning: Invalid argument supplied for foreach() … | |
Hi I have a very strange issue with a page layout. I have created numerous pages based on a template layout that I created in CSS through Dreamweaver. All the pages look as they should in Chrome/Safari etc. All the pages EXCEPT 1 looks fine in IE. Please take a … ![]() | |
Hi I have successfully engineered a login.php system, complete with logout.php, forgotpass.php and the associated functions which go with that. My users can log in and log out of the system and go to the pages directed to them without a problem. I was then asked to create a second … | |
Hi I have 2 divs and would like the one with id="logo" to be directly on top of the div with id="bg shape" <div id="wrapper"> <div id="logo"><img src="meshomagic_logo.jpg" width="559" height="280" alt="meshomagic logo"></div> <div id="bg shape"><img src="images/logo_bg.png" width="1000" height="114"></div> </div> My CSS Styles are as such: #wrapper bg shape { position: … | |
Hi I have the following email script, which is working fine except none of the carriage returns work and the entire message from all the fields just goes in one line without any spaces. I've tried to look up carriage returns and didn't find anything different from \r\n Any help … | |
Hi I have the following script to upload an image to the server. Instead of the script producing a unique name for the image, I actually want to just replace one image with another..ie. overwrite an image which is already there, with another of the same name. I'm getting a … | |
Hi I have the following web page: www.createtime4u.com/index - Copy.html Most of the page is now pretty responsive to changes in the desktop size (I haven't added any media queries for mobile etc yet) However I'm really stuck on this CSS slideshow. Most of the CSS for this slideshow I've … | |
Hi I have the following basic CSS only webpage layout [www.createtime4u.kaiproductionservices.com/index.html](www.createtime4u.kaiproductionservices.com/index.html) which looks in-line cross Safari/IE browsers on a PC, but out of line on the ipad. Before I give out a ton of code has anyone got a good checklist of things I should be looking out for on … | |
Hi I have the following prepared statement for an UPDATE query: However I'm getting the following error message: Fatal error: Call to a member function bind_param() on a non-object in /home/dreamsin/public_html/DEV/edit_condo_review.php on line 467 All my columns are correct and match up and exist and I've used this prepared statement … | |
Hi I'm trying to re-do my code so that SELECT, INSERTS etc use prepared statements..... But I'm having a problem My original code which worked was: if (isset($_POST['submit1'])) { // Grab the profile data from the POST $condo_nm = mysqli_real_escape_string($dbc, trim($_POST['condo_nm'])); // Make sure a review doesn't already exist for … | |
Hi I currently have URL's looking like this when it is coming from a link: http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=4 I would like to hide the fact that recordID=4 How can I do this? Many thanks | |
Hi I have a single search field ' agent_name' in a form which is a dropdown field of data based on the concatonation of 2 fields: reg_fname and reg_lname When I do the SELECT Query though I'm getting a bit mixed up..... The data from reg_fname & reg_lname does not … | |
Hi I'm still retrospectively trying to edit all my interactions with the database to be in prepared statements. I'm having an issue with my registration form, with the passing of my $password and $activationKey. The code is: // $stmnt1 = $dbc->stmt_init(); $query = "INSERT INTO xxxxxxxxxxxxxxx VALUES (?,?,?,?,NOW(),?,?,?,?,?,?,?,?,?,?,?,?,?,?,'$activationKey')"; $stmnt = … | |
Hi I am a bit stuck on how to close a security issue. Basically if someone is looking at their profile and wants to edit it the URL will show the id of the user. Currently anyone can just change that number and have access to viewing and changing another … | |
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 … | |
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 { … | |
Hi I'm having problem getting what should be a simple INSERT using a preparared statement to work? Am I missing something? Many thanks require_once ('myaccess/dbc.php'); // $stmnt1 = $dbc->stmt_init(); if ($stmnt1 = $dbc -> prepare("INSERT INTO DEV_property_trades VALUES (?,?,?,?,?) ")) { $stmnt1->bind_param("sssss",$trade_name,$trade_number,$trade_email,$trade_list,$trade_details); $stmnt1->execute(); $stmnt1->close();Code blocks are created by indenting at … | |
Many apologies if this is the wrong forum. I looked through all the different forums and wasn't sure. Please let me know and I'll transfer this to whichever the appropriate forum is. I use PHP/MySQL for my website and have been using DW CS5 for Site Management/Connections. I've been trying … | |
Hi I'm having problems with putting an image - outofstock.gif into a table cell but only if prod_status == 'Sold' An empty image place holder shows - but without the actual image in it. Ideally I also wanted this whole table column to be a background to another table cell … | |
Hi I have a php page, in which I would like users to be able to 'renew' a product by clicking on a button 'renew' There are no form fields to post though, as information is just shown to the user via a recordset. So basically they see their product … ![]() | |
Hi I have a function which either updates or inserts a record into the database table, depending on what the user selects. However I need to manually refresh the page after the action has been done, as the status is not updating on the page. How can I force a … | |
Hi I would like the following action to happen without having to have a 'submit' button. This would avoid users having to go from one page to a second page and the action could just happen on the first page by clicking on the word? How could it be done? … | |
Hi When I load my renew.php page - the following warning appears. However when I click the 'renew' button in the page, the code below still works, but only when I click the 'renew' button twice. I can't find what is wrong with the code to cause the error message … | |
Hi I have a function 'checkfile'within my 'add a record'form which checks to ensure that the images which users are uploading with the form are within a certain size...in this case 32kb, which is specified within GW_MAXFILESIZE. What would actually be much more useful and user friendly is if when … | |
Hi I have 2 drop down fields in an array: The array works perfectly, (and is part of a longer form) but when I submit, the data disappears. I'm not that bothered about the 2nd drop down being sticky but really need the selection of the first drop down to … | |
Hi This is just a straight-forward dynamic field, but I still can't seem to get it to stay sticky....I have tried all kinds of things, including [CODE]if (!empty($add_area)) echo......[/CODE] or equivalent fieldnames... Any help would be really appreciated...many thanks [CODE] <label for="add_area"></label> <select name="add_area" id="add_area"> <?php do { ?> <option … | |
Hi Can anyone see what is wrong with this: [CODE]<?php echo date_format($row_rs_propdetails['add_date'],'Y-m-d'); ?>[/CODE] The error message I get is: Warning: date_format() expects parameter 1 to be DateTime, Any help would be much appreciated. Basically wanting to bring back the date in add_date column, but just the y-m-d with no time. … | |
Hi I know I have been going round the houses with this image resizing quite a bit...but still trying to do it. Some progress has been made. This is not using Imagick, as I have no idea about this library. So what the below code is now doing is picking … | |
Hi I have 3 image placeholders taken from a recordset. If the image URL is in the database table column then the image shows as you would expect. However if no image exists I want to force the code to pick up a blank image from location: propertyimages/dot.gif Current code … | |
Hello, I have set up a script to add paging to a search results page. Which on the first page works fine. The recordset calculates how many pages there should be depending on the number of results returned from my search and how many records I have set it to … | |
Hi I'm currently creating a property website and it allows users to submit upto 7 images/property. Currently on clicking the 'submit' button to Add A Propety my code checks for image size, file type and then moves the file from a tmp location to images/propertyimages file. All the images from … | |
Hi Firstly I apologise if this is the wrong forum. The code is a mix of PHP and Javascript, but my overall page is PHP. What I have is one dropdown box, which depending on what is selected produces the appropriate second dropdown box. This is all great and works … | |
Hi There. I have a property website, which already has some extensive search criteria for users to filter which properties they would like to see. I need to add to the search queries that fact that only properties which are within 21 days from the date they were submitted should … | |
Hi I'm trying to practise with this form, which will eventually be part of a much larger form. What I'm trying to do is to validate my reg_agent field in which a user can choose whether they are an agent or private. The validation is supposed to say that when … | |
Hi First I'm really sorry if this is the wrong area to post this query, but as my pages are all in php, I thought it may have something to do with it. I have just realised that the top part of my pages flicker when you move your mouse … | |
Hi I am hoping someone can give me some advice. I have a user_registration table with the field 'ID' as the user ID field. I have another file (property_details) which is for users to insert their own records. What I need to do is to automatically assign their ID from … | |
Hi Hoping someone has some experience with this. I have an insert record which works perfectly, until I try and encrypt the passwords and set the date to NOW() When I submit the form - the form does not complete successfully, however a record of some kind is inserted into … | |
Hi I've been using mysqli and recently moved a website to a new server hosting company. They have recently informed me that the version of PHP they use does not support mysqli. I'm not really sure about the why/why not's etc but could I just change all instances of mysqli … | |
Hello HOw do I format the output of my prices/numbers using number_format () In the code below I have the dynamic field from a recordset which shows the price. Currently the numbers are as such for example: 100000 and I would like them to be displayed as 100,000 or 1,000,000 … | |
OK I'm pretty sure this is an easy one. I've successfully made my list and checkbox fields sticky using selected=selected and checkbox=checkbox etc etc. I now have a very simple text field. What is going wrong is that the entire string within the value="" shows up as the initial value … | |
Hi I'm having problems with a query bringing back records where the price is between 2 different min and max options. My field in the db = prop_price and it is currently an integer (as I thought part of the problem might be the comma in the prices) I've pasted … | |
Hi I'm trying to write a query which when 0 is selected it brings back all the district_zones otherwise it just brings back the selected zone. It brings back the selected zone fine, but not all records which are not 0 I know it is my wildcard that is the … | |
Hi Can anyone tell me why my form will not post to itself when using these dropdowns. It will post successfully to another page though. I have tried both just putting in the file name which is rent.php and using the "<?php echo $_SERVER['PHP_SELF']; ?>" At the moment I am … |
The End.