39,320 Topics

Member Avatar for
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
116
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
191
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
307
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
210
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
182
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
87
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
114
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
Member Avatar for branding4you

is there a way to trigger the form post action="add_enquiry.php" where i wrote I WANT TO ADD FORM DATA TO MYSQL AND SEND EMAIL My form used to work without problems, it added data to mysql, the sent that data in nice html email to me, THEN I added CAPTCHA …

Member Avatar for branding4you
0
172
Member Avatar for sawjuk

Hello, Guys Please help me.. 1.which are the popular CMS (like joomla,drupal) now in use with most popular websites? 2.which are the popular frameworks(like codeigniter) now in use with most popular websites? I wish to work with php,but i have only mere knowledge about php,frameworks,etc..please quote your suggestions based on …

Member Avatar for diafol
0
132
Member Avatar for jacob21

SELECT * FROM admin where company='test & test' I am running this query but getting error due to [B]&[/B].while printing Its showing SELECT * FROM admin where company='test ',not accepting & in sql query Can we run using & in query need suggestion.

Member Avatar for jacob21
0
249
Member Avatar for rajeesh_rsn

Hi friends, I just want to rewrite my url using htaccess [ICODE]www.site.com/movie-discussion.php?movie=name&page=2[/ICODE] to [ICODE]www.site.com/movie-discussion/2-name.html[/ICODE] I got the following code [ICODE]Options +FollowSymlinks RewriteEngine on RewriteRule ^movie-discussion/(.*)-(.*)\.html$ movie-discussion.php?thread=$1&page=$2[/ICODE] but it is going to the "movie-discussion" directory and as a result the css, javascirpt files which linked to this page is not working …

Member Avatar for vibhaJ
0
79
Member Avatar for McLaren

Hi, I am tryingto create the wordpress plugin and have written this code: [CODE] <?php /* Plugin Name: OSCommerce Productu rodymas Plugin URI: http://www.google.lt Description: Pluginas produktu roymui is OScommerce parduotuves Author: Darius Version: 1.0 Author URI: http://www.google.lt */ ?> <?php add_action('admin_menu', 'my_plugin_menu'); function my_plugin_menu() { add_options_page('My Plugin Options', 'My …

Member Avatar for McLaren
0
110
Member Avatar for narensen

Hello everybody i am new to PHP and trying to learn more and more. now i am trying to make a reservation system i solved my date time problem but now i am stick on comparing two date from my form with two dates on my database here is my …

-1
74
Member Avatar for monta2020

i have created a web page and placed some text boxes on it, now i'm looking to create an error massages when a person enter a wrong input the error massage will tell him/her to enter the right one and also if he/she left a text field empty and clicked …

Member Avatar for phpbeginners
0
247
Member Avatar for xxreenaxx1

[CODE]SELECT * FROM question LEFT JOIN answer ON question.Que_ID=answer.Que_ID AND question.Que_Answer1=answer.Ans_Answer1 AND question.Que_Answer2=answer.Ans_Answer2 AND question.Que_Answer3=answer.Ans_Answer3 AND question.Que_Answer4=answer.Ans_Answer4 AND question.Tes_ID=7 AND answer.Use_ID=1[/CODE] This should only show record that are use_ID=1 and Tes_ID =7. But in MySQL, there are data for test ID=8 and etc. isnt it only suppose to be 7.

Member Avatar for xxreenaxx1
-1
72

The End.