39,326 Topics

Member Avatar for
Member Avatar for Lioshenka

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 …

Member Avatar for Akash Saikia
0
163
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
140
Member Avatar for flynismo

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 …

Member Avatar for flynismo
0
120
Member Avatar for joomphp

[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

Member Avatar for ariese
0
82
Member Avatar for never_rain

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, …

Member Avatar for ariese
0
231
Member Avatar for jenthevb

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"; …

Member Avatar for ariese
0
417
Member Avatar for Chubbymouse

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 …

0
75
Member Avatar for karthik_ppts

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.

Member Avatar for karthik_ppts
0
158
Member Avatar for vigneshmohan
Member Avatar for pritaeas
0
38
Member Avatar for TechySafi

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" /> …

Member Avatar for TechySafi
0
160
Member Avatar for ahsan1

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><?=" …

Member Avatar for pzuurveen
0
117
Member Avatar for Jake.20

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 …

Member Avatar for Jake.20
0
193
Member Avatar for Spik31

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 …

Member Avatar for Spik31
0
309
Member Avatar for karthik_ppts

Hi Frendz, i received this error "Fatal error: Call to undefined function curl_init() in ....../xxxx.php But its working fine in other system.

Member Avatar for karthik_ppts
0
94
Member Avatar for Joshua Kidd

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, :)

Member Avatar for Joshua Kidd
0
80
Member Avatar for lyrico

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 …

0
73
Member Avatar for dyingatmidnight

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 …

Member Avatar for tomato.pgn
0
144
Member Avatar for phpDave

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.

Member Avatar for phpDave
0
227
Member Avatar for jacob21

[B]select * from admin where company='a&b';[/B] it takes only this query select * from admin where company='a'; need urgent help.

Member Avatar for chrishea
0
44
Member Avatar for Joshua Kidd

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 …

Member Avatar for chrishea
0
111
Member Avatar for LloydFarrell

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 …

Member Avatar for chrishea
0
107
Member Avatar for webdi

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. …

Member Avatar for diafol
0
2K
Member Avatar for Sorcher

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?

Member Avatar for Sorcher
0
66
Member Avatar for Valmian

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 …

0
192
Member Avatar for jatpatel1

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 …

Member Avatar for diafol
0
213
Member Avatar for carebear23

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 …

Member Avatar for carebear23
0
183
Member Avatar for klemme

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 …

Member Avatar for klemme
0
96
Member Avatar for chudapati09

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 …

Member Avatar for diafol
0
88
Member Avatar for maunica

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 …

Member Avatar for hellojohnatan
1
115
Member Avatar for Awah Mohamed

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 …

Member Avatar for makman99
0
107

The End.