39,395 Topics

Member Avatar for
Member Avatar for mpw5013

Good Afternoon, I'm almost done, but something is wrong. I have 19k records that I need to sort through in an array, but I can't figure out how to get the in between records. This works just fine: [CODE]$filterData = array( 'product_id' => array('lteq' => 6000) ); [/CODE] This doesn't: …

Member Avatar for diafol
0
151
Member Avatar for karthik_ppts

Hi Frendz, I have datetime field in database. now i want to filter out the record which are in today date using mysql query?

Member Avatar for karthik_ppts
0
149
Member Avatar for haimz

Hello, i want to paint somthing its meen that replace <?php $var = "hello"; ?> to somthing like: <?php [COLOR="red"]$var[/COLOR] = [COLOR="Green"]"hello"[/COLOR]; ?> i dont want to use hightlight_string i need other function thanks

Member Avatar for cereal
0
283
Member Avatar for weeon

"! > = " wrong not more the same as? ex: 4 not more the same as 9 thx's

Member Avatar for broj1
0
72
Member Avatar for Reliable

Hello Everyone, I'm trying to change the page content based on which link is pressed. Can someone tell em hwy my code doesn't work, please? Last error I got was a parse error on line 43. Thanks [CODE] <!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> <meta …

Member Avatar for P0lT10n
0
174
Member Avatar for aa06ron

Hi there, I need some help with this error/warning Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource here is the code: [CODE=php] include "connect.php"; include "comment.class.php"; $result = mysql_query("select * from comments order by id"); $comments = array(); while($row = mysql_fetch_assoc($result)) { $comments[] = new Comment($row); } …

Member Avatar for P0lT10n
0
135
Member Avatar for devindamenuka

hi all , I was developing a blog where in admin control panel i can view the new comments. i want to set the approval to view the comments in the blog. problem is I used radio buttons to set permision but it did n't work properly. I need to …

Member Avatar for P0lT10n
0
210
Member Avatar for DomainBeans

Hello! I've got a script that runs for most of the day in a screen on my centOS linux box, however I'd like a way to be able to stop and start this with a button within my panel (php). I've read about shell exec however I've not been able …

Member Avatar for P0lT10n
0
87
Member Avatar for idblack

Hi all, First i am sorry if this already asked somewhere before,i've searched it but didn't found any and i am a total beginner how to make a page visible for only some current time? let me say to complete a survey in given time in the admin page there …

Member Avatar for P0lT10n
0
141
Member Avatar for youvi
Member Avatar for 7kemZmani

I creat this form which contain dynamic table: [CODE]<form action="<?php echo $editFormAction;?>" method="post" name="form1"> <table cellspacing="0"> <tr> <th>#</th> <th>ORDER DESC</th> <th>ORDERING DEPT</th> <th>ORDERING SERVICE</th> <th>STATUS</th> <th>SENDING DATE</th> <th>DELIVERING NO</th> <th>DELIVERING DATE</th> <th>COMMENT</th> </tr> <?php do { ?> <tr> <td><?php echo $row_medi['order_no']; ?></td> <td><?php echo $row_medi['ORDER_DESC']; ?></td> <td><?php echo $row_medi['ORDERING_DEPT']; ?></td> …

Member Avatar for datadiary
0
191
Member Avatar for sid78669

I am starting out with PHP and in my project I'm trying to fetch XML data from a url and parsing it for data. Now the url that I use is being fetched from a webpage and hence I know that it is correct and it exists. Still, when I …

Member Avatar for sid78669
0
263
Member Avatar for jlbmiel

php code for calculating fines for overdue books your help will be much appreciated.. tnx

Member Avatar for IIM
0
51
Member Avatar for Sorcher

[CODE]$query = "SELECT * FROM image_share WHERE to='$username'"; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { echo '<tr> <td width="100%" align="left" valign="top"> <div style="border-bottom:1px solid #6F6F6F;"><span style="color:#C0B184;"><a href=""><img src="'.$row['image_sharelink'].'" width="150" height="137"/></a></span><br/> <br/> </td> </tr>'; } [/CODE] cant figure out why it wont work. I got my error display on E_ALL mysql_fetch_assoc(): …

Member Avatar for IIM
0
106
Member Avatar for saifphp

Hi all, I have a Website developed by PHP4.3.2 and Microsoft Access2000 Database. The Site is running under IIS5 in Windows Server2000. Now I have changed the OS from Windows Server2000 to Server2008 and IIS is 7.5 here. I have configured PHP with FastCGI. But, When I run my site …

0
71
Member Avatar for rayidi

Dear Friends, Am developing a sms based website. i bought the gsm modem. problem how to connect the com port through php and querying the gsm modem with AT Commands ?? Please help me out [COLOR="Red"]Modem:- Visontek 82GH USB MODEM It supports at commands. [/COLOR] Note:- Am sending sms and …

Member Avatar for vattana ybm
0
2K
Member Avatar for TheNinjaForce

Im confused on how to get pgpMyAdmin I went to the website and downloaded the phpMyAdmin-3.4.3.2-all-languages.7z I opened it and all I see is a bunch of files now what?

Member Avatar for trbograndnat
0
177
Member Avatar for obimobs

guys i need some help!.. my friends are having their project on web developing?? How can i create a Login System with this database?? [B]tbl_stud[/B] st_uname = logmein st_pw = 123 type_id = student [B]tbl_prof[/B] pr_uname = pro pr_pw = 321 type_id = prof [B]tbl_admin[/B] ad_uname = adm ad_pw = …

Member Avatar for dean8710
0
110
Member Avatar for mosesmn

Am getting: Parse error: syntax error, unexpected T_DNUMBER $post_xml = "<?xml version="1.0" encoding="utf-8"?><PesapalDirectOrderInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Amount="".$order_total."" Description="".$transaction_details."" Code="".$code."" Type="".$type."" PaymentMethod="".$payment_method."" Reference="".$reference."" FirstName="".$first_name."" LastName="".$last_name."" Email="".$email."" PhoneNumber="".$phonenumber."" UserName="".$username."" xmlns="http://www.pesapal.com" />"; $post_xml = htmlentities($post_xml); If I use single quotes the error dissappears but it does not function the way i would like it …

Member Avatar for mosesmn
0
156
Member Avatar for manzoor.ilahi77

Please suggest me for live video streaming as i am trying create a website in which I can update the video live for religious perpose

Member Avatar for diafol
0
164
Member Avatar for utthu

I have attached the screenshot of my output. I guess, the syntax is wrong. Please help.! [CODE]<?php //initilaize the mysql user name and password //Database Config $dbHost='localhost'; //Database server $dbName='db'; // Name of the database $dbUser='root'; // Database username $dbPass=''; // Database password $source = mysql_connect($dbHost, $dbUser, $dbPass); if (!$source) …

Member Avatar for diafol
0
365
Member Avatar for kpatel4991

Hello Everyone, I am Karan Patel from India.I am presently a Computer Engineering student.I am in my 5th semester. I want to develop an application in PHP.So will you please guide my all the required knowledge to do that? I have knowledge of HTML,CSS,Javascript and Joomla CMS. So what should …

Member Avatar for diafol
0
92
Member Avatar for Rahul1996
Member Avatar for weeon

Hi All.... how to search by price range [CODE] ---------------------------------------- id price | range_type | min | max ---------------------------------------- 1 | A1 | 1 | 100 2 | A2 | 101 | 200 ---------------------------------------- 3 | B1 | 151 | 250 4 | B2 | 251 | 400 ----------------------------------------- [/CODE] …

Member Avatar for weeon
0
112
Member Avatar for obimobs

guys i need some help!.. my friends are having their project on web developing?? How can i create a Login System with this database?? [B]tbl_stud[/B] st_uname = logmein st_pw = 123 type_id = student [B]tbl_prof[/B] pr_uname = pro pr_pw = 321 type_id = prof tbl_admin ad_uname = adm ad_pw = …

Member Avatar for leakbali
0
111
Member Avatar for mehrantahir

Hi everyone, First time i am going to work on the search.please help me how i make search in my site,the website is about the products,i want the user search for the products by city name, [B][U]Requirements [/U][/B] The simple search give result of the products in the selected city,the …

Member Avatar for rayidi
0
168
Member Avatar for utpal23

I am confused........... I have made a project . No problem in localhost but whenever I try to execute in my domain server it shows : Warning: include_once(body/login/logIn.php) [function.include-once]: failed to open stream: No such file or directory in /mounted-storage/home36c/sub003/sc29343-BHKZ/progekt.com.utpal/helora/body.php on line 68 You can check : [url]http://utpal.progekt.com/helora[/url] I have …

Member Avatar for ko ko
0
301
Member Avatar for banmikko

I nedd some help regarding pagination. whenever i searched for a record, the pagination didnt work but it still show the results. here are my codes index.php [CODE] <html> <head> <title>Paginating Your Data with AJAX and Awesome PHP Pagination Class</title> <form action="index.php" method="post" name="searchdb" id="searchdb"> <table> <tr> <td><tr> <input type="text" …

0
48
Member Avatar for ryan_vietnow

hey guys,does anyone here know some tutorial on how to upload video files?tutorial in Adobe is quite confusing.Thanks..

Member Avatar for mina gharache
2
166
Member Avatar for mangel.murti

hi guys ,, i want all th and corresponding td value like Beds=>7 , Baths=>8 , House Size=>12000 sq ft [CODE] <table cellspacing="0" class='abc'> <tbody> <tr> <th>Beds</th> <td>7 bed </td> <th>Baths</th> <td>8.5 bath </td> </tr> <tr> <th>House Size</th> <td>12000 sq ft </td> <th>Lot Size</th> <td>2.62 Acres </td> </tr> <tr> <th>Price</th> …

Member Avatar for mangel.murti
-1
136
Member Avatar for brandonboyce

I am populating a table with information from a database, one of the values is a rating 1, 2, 3, or 4. I made it so that depending on the value in the database the radio button with the corresponding value is selected. But I am having problems figuring out …

Member Avatar for devindamenuka
0
3K
Member Avatar for alfredferg

hello to all, how to make global data from mysql example: data1 from table data2 from table ... i want to make the data[] global so that i can call anywhere in the page. i'm using php thanks,

Member Avatar for Stefano Mtangoo
0
153
Member Avatar for antonyruban

I write a upload code in php no problem in php but i want to select a multiple files(images) in single form tag(<Input type=file>) is it possible then how? help me

0
58
Member Avatar for sosooo25

Hi there,In my webpage I am comparing between the correct answer and the user's answer. if both are equal I want the score to increase by one. But the code is not working any hint??? [CODE]$sql22=mysql_query("select * from player where email='".$_SESSION['touser']."'"); $score1= mysql_fetch_array($sql22); $score=$score1['score']; echo $score; $sql10=mysql_query("select * from image"); …

Member Avatar for divyakrishnan
0
69
Member Avatar for Rahul1996

Hey guys, I have a function called showAll, which has 2 arrays as it's arguments. I declared it as follows: function showAll($dayarray, $distinctShifts) both arguments are returned in other parts of the code, so why is it giving me missing argument errors for both of them? Please give me some …

Member Avatar for diafol
0
94
Member Avatar for heshanm

Hi all, t to upload files to my server. Here i have created a coding. This only allows me to upload pictures. How can i amend my coding to upload word and excel files also... [CODE] <?php $db=mysql_connect('localhost','root',''); mysql_select_db('bank'); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == …

Member Avatar for mschroeder
0
141
Member Avatar for an00p

Hello Friends, I want the following issue to be resolved: 1. page results.php shows the users list (sql query results). This page also stores all user_id to an array $_SESSION['user_ids']. And when I click to view details of a user, user_view.php shows the details of that user. 2. I want …

Member Avatar for diafol
0
167
Member Avatar for bjeffries

If anyone is familiar with wordpress and the plugin shopp I am having an issue and no one on any other forum can seem to help me. I am running the plugin shopplugin which is a shopping cart. I want to the featured product to show up on the index …

Member Avatar for bjeffries
0
179
Member Avatar for knitex

So with my code below im really stumped on whats happening. I've looking on the internet and looked at a bunch of code and it seems to be similar to mine but i have no clue why mine isnt working. when you click on the next(or any page) link it …

Member Avatar for diafol
0
93
Member Avatar for devindamenuka

hi all, I was developing a blog where I used classes. but I met a problem when I try to include config.php to my classes and use global variables in the methodes. Normally without classes it works pretty much well. here is the code [code]<?php /* * To change this …

Member Avatar for ddymacek
0
302
Member Avatar for mpw5013

Good Morning, I'm receiving a SOAP error when I try to pull all of my products (20k) into an array. So, I want to limit the script and only grab 1/3 of the database. How would I do that? Here is the code that is erroring: [CODE]$products = $client->call($session, 'catalog_product.list', …

Member Avatar for ddymacek
0
130
Member Avatar for trbograndnat

I have two tables.Each has an identical field titled vin. In both tables I've removed all primary keys. I've gone to the relationship view and made sure nothing was selected under the dropdown for foreign key. I've gone to the database designer view, and there are no relationships being shown …

Member Avatar for Stefano Mtangoo
0
600
Member Avatar for rinjin07

Hey all, I'm a total IT beginner and have been trying to figure out how to put raw html with css and javascript in the header on an article in Joomla 1.7? I heard about this JCE thing but no idea how it works. If someone could explain it to …

0
103
Member Avatar for Buppy

Hi, I have a form (using cake form helper) and it's validation rules. The problems is that the errors does not show. I can see it validates correctly - the data is not being saved, the fields has their .required class added, and also when i check the $this->Model->invalidFields(); it …

0
59
Member Avatar for mwenyenia07

Hi all, I want to create a horizontal and vertcal menus(sub-menus too) like those displayed on the home page of Daniweb site using PHP .can somebody help me sample code please.

Member Avatar for divyakrishnan
0
132
Member Avatar for ahasan_al_rabbi

<html> <head> <title>test page</title> </head> <body> <?php echo "<h1>hello there</h1>"; ?> </body> </html> or, <?php echo <<<EOT <html> <head> <title>test page</title> </head> <body> EOT; echo "<h1>hello there</h1>"; echo "</body></html>"; ?>

Member Avatar for almostbob
0
122
Member Avatar for vaultdweller123

hey guys anyone know here how to browse image from server? currently the code <input type="file" name="file" id="file" /> is browsing from my computer. I want it to browse from the server, is it possible? thanks in advance

Member Avatar for urtrivedi
0
421
Member Avatar for Ichcha

hi am beginner in php.. please help me.. rough explanation: user will select orgname and the following code will get the orgname and import data from mssql. i wanted to filter those data according to groupname and count number of users access to the system in month basis according to …

Member Avatar for Ichcha
0
467
Member Avatar for shamim0754

Hellow,I need to help for desinging a online based education website.what thing I considered of this site.I plan my site will be remain advanced login system,exam system,tutorial but I need more concept that i can do and how can i do this.thanks

Member Avatar for Nahiyan
0
89
Member Avatar for johndohmen1963

Hi i got the folowing code to delete files and directories [CODE] if(isset($_POST['wissen'])) { $albid5= $_POST['album_id1']; $albnam = $_POST['albumbeschrijv']; $error = "Es ist ein Problem mit der Datenverbindung aufgetreten,<br />probieren Sie es bitte später noch einmal<br />oder nehmen Sie Kontakt mit dem Webmaster auf."; $connect = mysql_connect("localhost","bla","bla1") or die ($error); …

Member Avatar for johndohmen1963
0
215

The End.