39,393 Topics
![]() | |
Hi there, I've started to create a site for me and my friends, and I want to be able to have each of us upload an image, and store it in a database, and then have it display as a display picture on a profile page. I've been looking around, … ![]() | |
This is my main page where the user can choose a category from a drop down. I need that category selection to update my session variable so I can then send that variable to another php page execute a query and return the result in my div because I do … | |
Hi Everyone, I have been trying to work out how to add 20% vat to a total in php, but for some reason I am unable to. I have been using the following code, but I keep getting the same price for price_with_vat as I do for price_without_vat // price … | |
i just dowloaded a fiverr clone from http://phpvalley.com/phpvalley-micro-jobs-site-script/ but am unable to install it on my localhost.am told to change 644 to 777, but i dont know where or how. I rigth click on connect.php and tryed changing its propaties, but it too did'nt work... | |
if (!empty($_POST['twitnam'])) { $message = $_POST['message']; $TwitterUsername = $_POST['twitnam']; $tw_sql = mysqli_query($connection, "SELECT oauth_token,oauth_token_secret FROM TwitterUpdate WHERE uname='$TwitterUsername'"); $row = mysqli_fetch_array($tw_sql, MYSQLI_ASSOC); $oauth_token = $row["oauth_token"]; $oauth_token_secret = $row["oauth_token_secret"]; if (strlen($oauth_token) > 0 && strlen($oauth_token_secret) > 0) { $Twitter = new EpiTwitter($consumer_key, $consumer_secret); $Twitter->setToken($oauth_token, $oauth_token_secret); $status = $Twitter->post_statusesUpdate(array('status' => $message)); echo … | |
Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add … | |
I import a spreadsheet (csv) into my sqli database (keeps a track of all our firewalls) there are 10 excel columns , one for each connected network on the firewall. i would like all these columns to be imported as one entry in the database, so 1 database field would … | |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\firewall\php\allresults.php on line 3 The annoying thing is, I have used this multiple times on different applications, I dont know why it think the result is boolean? the exact same code works on a different database, I just cant … | |
need how to make an virtual learning class room in php and student teacher profile in php | |
Hello I am able to display the images that i am retrieving from the database as a list. But i want to know how i will be able to display the same images as a grid or table. I have posted my code below.Can you please let me know how … | |
Hi guys, OK, here is the issue I am having. Perform a search and when you click the submit button, it takes you to the page that displays the info. Now, when the user clicks the back button on the browser it tries to re-submit the info. I don't want … | |
hi all. i searched and i did find that someone was facing this same problem. Although i did what was told to him, i am still getting the same error. guide me? Error : Parse error: syntax error, unexpected 'exist' (T_STRING) in C:\wamp\www\ProjectCms\login.php on line 6 <?php session_start(); include("passwords.php"); if … | |
How can I delete the bold object from a Mysql column? 0: {print_ref:289, art_work:, status:New Artwork, supplier:A+A Kumas, customer:New Look, department:915,…} art_work: "" colorway_description: "11" colorway_version: "11" customer: "New Look" date_sent_to_supplier: "0000-00-00" date_strike_off_received: "0000-00-00" department: "915" dud: "1" fabric_base: "11" fabric_notes: [{notes:admin, user:1}, {notes:admin, user:1}, {notes:andre, user:2}, {notes:andrew, user:2},…] fullimage: … | |
i need help with this update and delete on this same form kindly help me with it thanks alot | |
for this particular pages i need <li><a href="about_us.php?abtid=2" title="About Us" onclick="function changetab();">About Us</a></li> <li><a href="contact_us.php" title="Contact Us">Contact Us</a></li> <li><a href="faq.php?abtid=4" title="FAQ">FAQ</a></li> <li><a href="terms_of_use.php" title="Terms Of Use">Terms Of Use</a></li> $abtid = $_SESSION['abtid']; $sql1 = mysql_query("SELECT st.`id`,st.Catagory, st.`title`, st.`description`, st.`keywords`,sft.id,sft.titles FROM `seo_title` st JOIN seo_footer_title sft ON sft.id=st.Catagory WHERE st.Catagory='$abtid'"); $result = … | |
hi all : i wanted to create w form that store all data in to a db for example : name surname date of birth gender comment afterthat i wanted to create a page just to call these data but not all (it's variable so sometimes i need to generate … | |
| |
hey guys! this is my first post to daniweb. and also i've not been so long on php. i m trying to manage customer transection records but stuck on one place and i need help.. here is my mysql table for transection of customer id-1 => +-----+------+----------+--------+------+-------| | svn | … | |
Hi all, I am very new to php and am slowly trying to get something together. I have a MySQL database with a table that has (among others) a field which is TINYINT called "field1". I have managed to be able to store a 1 or 0 in it from … | |
Hey I'm new to the website but I've been a friend of Dani for a little over a year and attend the DaniWeb meetups. I know I'll need coding help and as a noob I'll be seeking out the help of you experts in javascript w/ jquery & ajax, php, … | |
Hi People, I need to find invalid emails from the database. and display corresponding columns of those emails (name, phone, address etc) with proper pagination. I have a database with a table named csv_data_table. This table has fields NAME, EMAIL, PHONE, ADDRESS, DESIGNATION. I have to find invalid emails from … | |
I have created this script using a HTML form and a PHP script which allows the user to search through my database for an event using the Venue and category fields which are scripted as dropdown boxes and the Price and finally by event title, as shown via the code … | |
I want to include a boolean search box in my existing script in the vResume_screen variable. I have altered the table for hte full text search and need your help. if(!empty($_GET)){ $vResume_screen=$_REQUEST['vResume_screen']; $date_screen=$_REQUEST['date_screen']; $vFirstname=$_REQUEST['vFirstname']; $vLastName=$_REQUEST['vLastName']; $vJobTittle_screen=$_REQUEST['vJobTittle_screen']; $vVisa=$_REQUEST['vVisa']; $InterestP=$_REQUEST['InterestP']; $VErecruitername=$_REQUEST['VErecruitername']; $vLastName=$_REQUEST['vLastName']; $where_clause=array(); if(!empty($vResume_screen)) { $where_clause[]="resume_text like '%".$vResume_screen."%'"; } if(!empty($_POST['vIndustry'])) { foreach … | |
We have constructed our site using coral template, Issue is we are not able to check in the iphone simulator. It redirect to my browser itself . Kindly advice us regarding the following issue ![]() | |
I've just started using the PayPal classic API for a simple payment solution. The API obviously requires my paypal account credentials so visitors to the site can make payments into my account. My account credentails (username, password, signature key) are stored on the server in a simple configuration file. What … | |
while uploading i want to rename the image name to date and time.i have a code like this date_default_timezone_set('UTC'); $today = date("Y-m-d"); $_SERVER['REQUEST_TIME']; $dt = $today.'_'.time(); $uploadDir = '/upimg/logoimg/'.$dt.''; $filename = $_FILES['logoimage']['name']; $tmpname = $_FILES['logoimage']['tmp_name']; $filePath = $uploadDir . $filename; $result1 = move_uploaded_file($tmpname, $filePath); after uploading that image path is … | |
<form method="POST"> Color: <select name="Color"> <option> </option> <option name="red"> Red</option> <option name="royal"> Royal Blue</option> <option name="black"> Black</option> <option name="white"> White</option> <option name="yellow"> Yellow</option> <option name="navy"> Navy</option> <option name="green"> Green</option> <option name="gray"> Gray</option> <option name="blue"> Blue</option> </select><br> <input type="Submit" name="Submit"value="Save"> <?php if (isset($_POST['Submit'])) { $con=mysqli_connect("localhost","root","","inventory"); $result = mysqli_query($con,"SELECT * FROM color"); … ![]() | |
Hello, I would like to display a video file on my website. For example youtube video when someone click the small video icon then a larger video begin to open and showing a video file with a transparent black background. How to do so? Thanks in advance. | |
hey so im trying to save data but i get error: `You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE event_id = '8'' at line 1` this being the line: `$sql = mysql_query("INSERT … | |
Over the past month I have been working on a certificate generation system and one part I have still yet to get working is the part that probably is one of the easier parts. All I need to do is check the email that someone enters against the email of … |
The End.