39,402 Topics

Member Avatar for
Member Avatar for missy_mi

i have and error : mysql_fetch_array() expects parameter 1 to be resource, boolean what should i do??where is the problem..??please suggest..Thank you in advance..

Member Avatar for broj1
0
180
Member Avatar for hwoarang69

getting a error at $item_id_g'. its bc of the quotes <?php echo" <button type='submit' onmousedown='func('$item_id_g');'>test</button> "; ?> i also tried this but didnt work <?php echo" <button type='submit' onmousedown="func('$item_id_g');">test</button> "; ?>

Member Avatar for broj1
0
119
Member Avatar for AARTI SHRIVAS

<html> <head> <title>Contact form</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> <script type="text/javascript"> $(document).ready(function() { var RecaptchaOptions = { theme : 'custom' }; Recaptcha.create('your public key', 'recaptcha_image', RecaptchaOptions); Recaptcha.focus_response_field(); $('#submit_button').click(function() { $.ajax({ type: 'POST', url: 'coustomer_rgistration.php', data: $('form#myform').serialize(), dataType: 'json', beforeSend: function() { var resp_field = $('#recaptcha_response_field').val(); var name = $('#name').val(); …

Member Avatar for AARTI SHRIVAS
0
545
Member Avatar for Venter

hi actually iu'm fetching 5 question id from db and saved in an array. now i'm fetching questions and their respective options from database. so i'want to save the option in seesions or cookies when ever user selected. this is my code for fetching questions & ANSWERS. public function display( …

Member Avatar for broj1
0
2K
Member Avatar for Motifaithed

Hi Guys, I'm working on a project and modifying it's code, I'm new to php, what I want is to speed up the process of the program, before it works like this, there is a page containing all the ID of purchase request, then there is a link to another …

Member Avatar for LastMitch
0
258
Member Avatar for cereal

Hello, when I try to enter to the **PHP forum** (but also in the others under **Web Development** section) I get redirected to a malformed url: http://www.daniweb.com-development/php/17 I tried also with curl: curl --head http://www.daniweb.com/web-development/php/17 HTTP/1.1 301 Moved Permanently Date: Tue, 18 Dec 2012 15:31:11 GMT Server: Apache/2.2 Location: http://www.daniweb.com-development/php/17 …

Member Avatar for diafol
2
268
Member Avatar for dark_storm83

I am trying to setup a custom image hosting solution for a phpbb forum. I know there are ways to host images on the forum but for my purpose I must use an external website to host the images. I already have a custom image hosting script written and functioning …

Member Avatar for diafol
0
286
Member Avatar for JokerTime

Hey all, iam new at PHP and i have a question. I do a select-query in mysql. $sql = "SELECT name, street, city, y,m,d, email FROM player WHERE `name`= '".$name."' or `city`= '".$city."' or `y`= '".$y."'"; The result i paste in a table like this. while($row = mysql_fetch_array($result)) { .... …

Member Avatar for broj1
0
204
Member Avatar for amyl

I need to include a simple contact form in either the sidebar or footer of an existing website so it appears on every page. This is not a WordPress site, I have seen there are several plugins for WordPress. I need a different solution. I am thinking a php include …

Member Avatar for amyl
0
239
Member Avatar for ganesh641

One of my server has $_SERVER['HTTP_CONNECTION'] is set to close need to set it to keep-alive in my phpinfo() any idea where to change that?

Member Avatar for ganesh641
0
451
Member Avatar for divyakrishnan

Hi.. I used the following code to download a file from fedora 14 FTP configured(VSFTP) to local machine(Fedora 14). The same code worked fine in windows machine. In fedora machine it listing all the files,but not downloading the files.Showing the error like following "There was a problem". <?php $countfiles = …

Member Avatar for pritaeas
0
204
Member Avatar for sethwcaton

I'm using the exact code snippet (Step 1 of the Simple Version) from this page hosted by the developers of BreezingForms for Joomla!, modified only to have the correct table and field names, and the name of the select list in the form: http://crosstec.de/media/kunena/attachments/59203/BreezingFormsscriptdev.txt All I want to do in …

Member Avatar for pritaeas
0
589
Member Avatar for honhito.troy

Why do I get the following error? and How to fix? Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in/home/gaogier/public_html/pages/monsters.php on line 217 If i add the or die part, I get this message. You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for pritaeas
0
123
Member Avatar for dancks

My code technically works, as it registers the user, but it won't keep the user logged in. (yes, once a registration is successful, they should be logged into their new account). It should go right to the index page on success and have the user logged in. On failure it …

Member Avatar for Zagga
0
2K
Member Avatar for daniel.conlinjr.1

add user.php <?php include '../_class/_class.php'; $obj = new modernCMS(); //Setup connection vars $obj->host = 'localhost'; $obj->username = 'root'; $obj->password = ''; $obj->db = 'cms'; //connect to db $obj->connect(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <link href="css/main.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>DCJR …

Member Avatar for daniel.conlinjr.1
0
522
Member Avatar for GraficRegret

Here is my code: <html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>inner_pages</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> .divTagContent { background-color: #F9FBFA; height: 367px; width: 691px; overflow: auto; } .divScrollLinks { background-color: #F9FBFA; height: 370px; width: 205px; overflow: auto; } </style> <script type="text/javascript"> function MM_swapImgRestore() …

Member Avatar for GraficRegret
0
145
Member Avatar for gogs85

How to show some content from other sites on my web sites, and when other site change content then change also in my website? Please help!

Member Avatar for diafol
0
160
Member Avatar for shahai.ali

hi i have a table in which m storing some data like in the following: table => uploads string_file and file_name and m trying to select the string_file. the data for this column is like in the following; ab323892,416a75f4, e732ced3 and blah blah. and following is the query that m …

Member Avatar for diafol
0
194
Member Avatar for gurlzlubme

I'm using phpbb forum and I would like to know how I can allow my members to incorporate a blog rss feed? Thank you in advance!

Member Avatar for broj1
0
250
Member Avatar for shilu2

<div id="hedar_main"> <div id="hedar1"> <?php include('menu.php')?> </div><!--end of header1 --> </div><!--end of header-main --> </div><!--end of header --> <div class="rightdiv"> <?php include('local_auth.php')?> <?php include('news.php')?> <div class="midal_right"> <center><div class="divimg"><img src="images/home_img1.jpg" /></div></center> <center><div class="divimg"><img src="images/home_img2.jpg" /></div></center> </div><!--end of midal_right --> </div><!--end of rightdiv --> <div id="futter"> <div id="futter_main"> <div id="futter1"> <?php include('footer.php'); …

Member Avatar for shilu2
0
347
Member Avatar for Venter

actually i'hd saved the form data in local by using sysphus a jquery plugin and this is my code to save the form data in local storage.is it possible to retrive the all data at once using php Or jquery. can u please help me to retrive the stored data …

Member Avatar for gon1387
0
2K
Member Avatar for panatda.tokhume

<html> <head> <title>Nutrient</title> </head> <body> <? $filName = "resource.txt"; $objWrite = fopen($filName, "w"); $objConnect = mysql_connect("localhost","u52030177","guillaume") or die("Error Connect to Database"); $objDB = mysql_select_db("u52030177"); $strSQL = "SELECT * FROM Nutrient"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); //$link = mysql_connect("localhost","u52030623","u52030623"); //mysql_select_db("u52030623"); mysql_query("SET NAMES UTF8"); //$sql = mysql_query("select * from …

Member Avatar for panatda.tokhume
0
179
Member Avatar for hwoarang69

this part is i am un sure what its doing. while($row = mysql_fetch_array($sql)) { $id = $row["id"]; } why cant i do this? $row = mysql_fetch_assoc($item_query); $id = $row['id']; this is my login in script. full code //BINARY for case sensitive $sql = mysql_query("SELECT user_id FROM user WHERE user_name='$username_p' AND …

Member Avatar for pritaeas
0
128
Member Avatar for kshahnazari

Im trying to open a txt file to write into it . heres the warning : Warning: fopen(C:\inetpub\wwwroot\testFile.txt): failed to open stream: Permission denied in C:\inetpub\wwwroot\get.php and heres the code $fh = fopen("C:\\inetpub\\wwwroot\\testFile.txt" , 'w'); fwrite($fh, "PHP"); what am I missing ?

Member Avatar for pritaeas
0
108
Member Avatar for 4BoredomDotCom

I didn't post this in the regular IT jobs folder because this is strictly PHP/MySQL. I am creating an online community (friend/dating/boredom site) which will rival those such as myspace.com and facethejury.com. At current time the whole user database is complete, which includes the ability for users to create profiles …

Member Avatar for pritaeas
0
302
Member Avatar for eyeda

i'm trying to make an autocomplete that will display the name of files in a folder. The autocomplete is ok except the part that it only display for the last file name. your help and suggestions much appreciated! =) code to open the folder and list the excel file names. …

Member Avatar for eyeda
0
890
Member Avatar for Young Teck 06

Its not a BETA or RC release, but it is up right now. Unsupported and still under work, phpBB 2.1.2 (Version for phpBB 2.2 testing board) is up right now. It has a sleek smooth new interface with a new profile backend. If your looking forward to a great User …

Member Avatar for happygeek
0
581
Member Avatar for harikris2007

Hello friends, In drupal 7 I have created a new form in theme.inc as follows: <?php function mymodule_example_form($form, &$form_state) { $form['Looking For']['PropertyCategory'] = array( '#type' => 'select', '#title' => t('Looking For'), '#options' => array( '' => t('Any'), Commercial => t('Commercial'), Residential => t('Residential'), ), ); $form['Type of Property']['PropertyType'] = array( …

Member Avatar for harikris2007
0
726
Member Avatar for arcticM

is it possible to automaticly generate unit tests without the skeleton generator? or is there a way to install the skeleton generator for php versions lower than 5.3?

Member Avatar for arcticM
0
145
Member Avatar for DominatorPools

HI Everyone. I am not new to programming, but I have just started to work with vB. I have been around vB.com and vB.org and neither really have a good how-to on starting your our hacks and using the vB page shell. Maybe, I missed it... But, I want to …

Member Avatar for LastMitch
0
150
Member Avatar for paulc79

Hi everyone, When I type http://clontarf.girlsacademy.com.au/News-2012-Academy-Awards-53.html into my web browser I get the following error message: "Not Found The requested URL /News-2012-Academy-Awards-53.html was not found on this server. Apache/2.2.22 (Unix) mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.3.13 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 Server at clontarf.girlsacademy.com.au Port 80." How can I fix this? Cheers …

Member Avatar for alanwdaniweb
0
242
Member Avatar for hbmarar

I am getting 425 http error unable to connect to remote system in the LAN whish has the application server and database server running..... i tried to ping from the reverse....but got request timed out.. i tried the loopback to local testing but would carry out remote testing ....from LAn....some …

Member Avatar for LastMitch
0
90
Member Avatar for ridge321

I have a linux box which i am trying to install PHP on bit the problem lies after i succesfully configure php and try to run make it tells me there is no make file and indeed when i check it i see that there is no make file only …

Member Avatar for LastMitch
0
173
Member Avatar for Antonbomb22

How would i go about parsing an atom feed in php? and how would i construct one also;)

Member Avatar for LastMitch
0
82
Member Avatar for flixx

Hey Guys: Is there a good tutorial out on the web, that explains the proper procedure for installing and setting up PHP on winnt4 web server running IIS. If not then is ther a good book or a procedure that one should follow. I've searched high and low, contacted the …

Member Avatar for LastMitch
0
192
Member Avatar for overload8219

Hi i have this code to create a photo gallery on my website. [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0"> </head> <body bgcolor="#FFFFFF"> <div align="center"><center> <?php $a = '0'; $filepath = "thumb"; $url_path = "main"; $dir = dir($filepath); echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\" width=\"75%\">"; while($entry=$dir->read()) …

Member Avatar for LastMitch
0
224
Member Avatar for ultracoder

Are you a freelancer or programmer for hire? Join, post & bid for projects free. Thousands of skilled programmers, skilled freelancers to choose from. Ultracoder is a developer oriented outsourcing site. Skilled programmers will bid to complete your project right now. Computer Based programs, Training, Web Services, Language Specific programs, …

Member Avatar for LastMitch
0
234
Member Avatar for AllenGarner

I am trying to Upload a csv file then split it up into an an array and build a query to insert it into a mysql table I have succeeded in getting this to work with one exception when I come across a field seperated by commas and enclosed by …

Member Avatar for LastMitch
0
341
Member Avatar for sam1

can you plz show me the simple mutli poll handler example thanks alot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Member Avatar for LastMitch
0
182
Member Avatar for LONGWAY

I get these errors: Warning: fopen(tmp/::name.hsh) [function.fopen]: failed to open stream: Invalid argument in ... Warning: fwrite() expects parameter 1 to be resource, boolean given in... Warning: fclose() expects parameter 1 to be resource, boolean given in ... **Can anyone advise me what is the problem?** Tough is a permission …

Member Avatar for LONGWAY
0
466
Member Avatar for rave169

Hi, Our group has two servers allocated to us. One is the production server (IP Address "X") and the other is a development server (IP Add "Y") (which is the local version). We use Sybase. We initially work on the Development DB and then do a weekly update on to …

Member Avatar for LastMitch
0
118
Member Avatar for jdmml

I have a PHP webpage and I would like to make it so that when a user accesses it, the computer does not make any temporary files so that every time it acceses it, it has to connect to the server and rerun the script. Is this possible and if …

Member Avatar for LastMitch
0
96
Member Avatar for divyakrishnan

HI.. I need a progress bar foe downlaoding a file from host serevr using CURL The downloaded script is working fine. can anyone suggest code for a progress bar for curl downlaod?

Member Avatar for LastMitch
0
3K
Member Avatar for kalathankam

how can i remove the scripts from tinymceeditor? <script id="__changoScript" type="text/javascript">// <![CDATA[ var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true;c.src = ( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})(); // ]]></script>

Member Avatar for LastMitch
0
74
Member Avatar for rjony321

Hello,I am using PHP Codeignetor. and I can't retrive row/single data information from table.But here data save successfully. here is the CI_Model code: public function selectItinfoByUserId($user_id) { $this->db->select('*'); $this->db->from('tbl_add_it_ins_course'); // table name $this->db->where('user_id', $user_id); //$this->db->where('contact_status', 0); $query_result = $this->db->get(); $result = $query_result->result(); return $result; } /* End Model*/ Here Is …

Member Avatar for cereal
0
318
Member Avatar for faizan.saleem.96

Hello, I have this php form designed in dreamweaver. when you search any bpv (bank payment voucher) file in this form it will fetch the pdf file link from my local hard disk folder. currently my local folder name is bpv and it has all the pdf files in it. …

Member Avatar for faizan.saleem.96
0
138
Member Avatar for cussel

> hey guys, how to convert PDF document to plain text or .txt in php with keep formatting?

Member Avatar for cussel
0
173
Member Avatar for ZER09

i got problem in setting the reCapcha it tank auth when i try to change it theme color, the recapcha image now is showing on the top of the form. this is the code i edit auth.php function _create_recaptcha() { $this->load->helper('recaptcha'); // Add custom theme so we can get only …

Member Avatar for ZER09
0
119
Member Avatar for divyakrishnan
Member Avatar for diafol
0
444
Member Avatar for daniel.conlinjr.1

Hey guys I cant seem to figure out what is going on with my cms I have started on making an admin panel and I have done it befroe and now I cant remake it to where it is working correctly? Can I get some help please? this is my …

Member Avatar for daniel.conlinjr.1
0
209

The End.