39,326 Topics
| |
| I have a basic CMS running, the three main files are cpanel.php, where the user clicks the "edit" button, this then opens pageeditor.php page, where the changes can be made to the document within an iframe and then the user clicks "save", the data gets passed to the saver.php saving … |
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 … | |
The title is probably confusing, but here is what I am trying to do and failing miserably at: I want to display all the items from my db table named 'inventory'. Then, a user would select one item by clicking a 'Add to cart' image button. When the button is … | |
[CODE]class manage { private $entryId; function __construct($entryId) { $this->entryId = $entryId; } function deleteEntry() { //delete $this->entryId from database } } $m = new manage(23); $m->deleteEntry(); [/CODE] how this method delete entry from db deleteEntry(); how sql query works with this please help to understand | |
I am looking for a tutorial or advice wherein I can create a timer for my auction items. You can see those timers on the site like quibids.com The concept is like this. I post and auction and set an end time for the auction. When the auction is live, … | |
Hello, I have a problem with this script when i will check it in the browser, the output is : "Warning: mysql_query() expects parameter 1 to be string, resource given in C:\xampp\htdocs\doto\php\new_case.php on line 8 FOUT SELECT * FROM disp_type ORDER BY t_naam ASC Resource id #3" [CODE]<?php $host="localhost"; $username="TEST"; … | |
Hi there, I have a very basic CMS system that I wish to update within itself and on the same page to cut down the amount of pages it gives me. At present I have a content box and an edit button, this box is validated by JS and if … | |
Hi Frendz, I have a latitude and longitude points of particular place namely X. Now I want to check the given latitude and longitude point of a place namely Y is within a circumstance of a particular radius from that point X. How to check that? i'm using google map. | |
how to integrate hsbc payment gateway in php. please send any samples | |
| Hi guys! How you doing? Well I'm having a little headache...here is it :D [CODE]$emaillist=mysql_result($checkemail, 0); print_r ($pieces = explode(",", $emaillist)); //printing values for debugging $useremail_array=mysql_fetch_array($useremail_query); extract($useremail_array); print_r ($user_em); //for debugging if(in_array('$user_em',$pieces)) { ?> <div class="discussposttext"> <form action="more.php?id=<?php echo $id; ?>" method="post" id="jstest"> In reply to ID:<input type="text" name="inreplyto" /> … |
It is showing error about foreach loop. Error is: Warning: Invalid argument supplied for foreach() in D:\wamp\www\greenmusic\admin\sec.php on line 408[code]<form id="adminsform" name="adminsform" method="post" action=""> <input type="checkbox" name="master" onClick="checkedAll('adminsform')" value=""/> <?php while($row=mysql_fetch_array($result)) { ?> <input type="checkbox" name="musicid[]" value="<?=$row['id']?>" /> <?=$row['song']?> <?=$row['singername']?> <?=$row['songtype']?> <td width="15%"><?=$row['songtypeav']?></td> <?php if($row['songtypeav']=="Audio Song") { ?> <a href="sec.php?id=<?=$row['id']?>&act=play">Play</a><?=" … | |
Please guys i need help in log in form, i'm newbie at php and tomorrow is the submission of our case study. can somebody help me in log in form. i'll post a code below and tell me if this is correct, if no please provide the right answer, and … | |
| Hi all, I'm new and I currently am developing a website on fishing fred's fishing. The site is an experiment for a portfolio ect. There is a feature, the guestbook. The Guestbook is managed by a MySQL database and the PHP is responsible for creating and echoing the data. I … |
Hi Frendz, i received this error "Fatal error: Call to undefined function curl_init() in ....../xxxx.php But its working fine in other system. | |
Hey all, I need some help with Editing a Table in a Database using php/ Can someone point me in the right way to do this. Thanks in advance, :) | |
Hi everyone, I need some help now. Can anyone show me a script on how can shared folder (not folder on the server) open using php? I mean my server's IP is 10.10.10.1 and then some shared folder are on the IP 10.10.10.2. Now I want to access the shared … | |
Hello, I'm having a totally brain freeze on how to do something that I believe is relatively simple but I'm having such a stupid moment that I don't even know what to google at the moment. What I'm creating is a book catalogue for a school project. It opens to … | |
Hi. I am trying to allow users to upload images to site. It works on testing server but having trouble on remote server. GoDaddy. Here is the upload dir for testing server: [CODE]define('UPLOAD_DIR','C:/xampp/htdocs/MyStuff/images/');[/CODE] Not sure for remote server. | |
[B]select * from admin where company='a&b';[/B] it takes only this query select * from admin where company='a'; need urgent help. | |
Hey guys, I need some help with selecting 2 Tables from a MySQL database. Can anyone help. Currently I am using this, and I want it to be able to select from another table called Admin and Display the Admins under admins in my table. [CODE]<?php $host=""; // Host name … | |
Hi everyone, just wondering if its possible to include [CODE] <?php require "../includes/h.php"; ?>[/CODE] into the code below ?? [CODE] echo "<td valign='top'><div class='p'> <hr> add button menu here <hr></div></td>"; echo "</tr>"; [/CODE] I have tried a few different ways adding '..' for concactination to see if that works, but … | |
I'm working on a task for a client that I thought would be simple. A remote computer uploads a file upon some event. My site needs to display a flag/statement if that file exists. So, upon page load it checks if the file exists. That all works fine and dandy. … | |
Hello! I would like to fetch the numbers at the end of this URL; [url]http://example.com/profile.php?user=15[/url] Do anyone know how i can get that by PHP? | |
Hello, I have a very strange error. I recently installed a test environment on my laptop with IIS7/PHP5/MySQL on Vista Home Premium. When I tried to install phpMyAdmin I found that it somehow failed silently, in particular, config file could not get written even though no error was shown. To … | |
Hi there, Please can someone help me! I have recently been learning oop PHP. I have created a class for my database, which basically makes my life easier when doing queries. I have created a "where" method which basically when used will append to the select statement. For example: //class … | |
Hi I am having a problem with code i have created to delete a customer from my database, would be grateful if someone could tel me where i have gone wrong [CODE]<?php include ('db.php'); $cid=$_POST["cid"]; $cname=$_POST["cname"]; $cusadd1=$_POST["caddress"]; $cusadd2=$_POST["caddress1"]; $cusadd3=$_POST["caddress2"]; $ccounty=$_POST["county"]; $custpc=$_POST["cpostcode"]; $custele=$_POST["ctelephone"]; $cusemail=$_POST["cemail"]; print $cid; $str="delete from customer CustomerName='$cname',CustomerAddress='$cusadd1',CustomerAddress1='$cusadd2',CustomerAddress2='$cusadd3',County='$ccounty',CustomerPostCode='$custpc',CustomerTelNo='$custele',CustomerEmail='$cusemail' where … | |
I have a question regarding how i can make my my navigation display the "correct pages". I am trying to build a CMS, with php and Mysql. So far I only had a table, from the DB, called "pages". I made the following code, to make this work - And … | |
| I can't get the following code to work correctly: [CODE] <html> <head> <title>test</title> </head> <body> <?php $ip = $_SERVER['REMOTE_ADDR']; echo "<h1>" . $ip . "</h1>"; ?> </body> </html> [/CODE] It outputs this: [QUOTE]" . $ip . ""; ?>[/QUOTE] But when I create a php file and throw the php into … |
hi all, I am a new learner of php. I m currently working on my 1st php project.project is all about a website development.The site is still underdevelopment. I want to include counter in m website in order to know the number of visitors.I am continuously searching for a snippet.Please … | |
hey people. i want to create a page views counter. i know how to create 1 using php but what i want to create now is to create a very dynamic page views counter that update it's self when ever a new value is added to the database. what i … |
The End.