39,316 Topics

Member Avatar for
Member Avatar for Jfunch

I'm trying to convert my code for querying and accessing user login info and putting into session varibles to using a prepared statement to do the same thing, but I can't figure it out. Original: [CODE] $query = "SELECT id FROM customer WHERE username='$username' AND password='$password' LIMIT 1"; $result = …

Member Avatar for hag++
0
140
Member Avatar for navp

I am making a html form on a website and then that form should be forwarded to an email. I am having a hard time with this. Dead line is near and i do not know what to do. Below is the code: PHP code: [CODE] <? if ($_POST){ if …

Member Avatar for navp
0
224
Member Avatar for joshmac

I have an options table setup like so: [CODE]option_id option_name option_value 1 sitetitle SimpleCollab 2 siteurl http://example.com/ 3 sitepath /home/user/MAMP/htdocs/pm 4 enable_registration 1 5 enable_query 1[/CODE] Then my php code is as follows: [CODE]function get_pm_option( $option ) { global $pmdb; $result = $pmdb->query( "SELECT * FROM " . DB . …

Member Avatar for diafol
0
142
Member Avatar for davy_yg

page-news.php [CODE] <?PHP /*-------------------------------------------------------------------------------------- @Desc : Simple and Cool Paging with PHP @author : SachinKRaj - http://blog.sachinkraj.com @updates : http://blog.sachinkraj.com/how-to-create-simple-paging-with-php-cs/ @Comments : If you like my work, please drop me a comment on the above post link. Thanks! ---------------------------------------------------------------------------------------*/ function check_integer($which) { if(isset($_REQUEST[$which])){ if (intval($_REQUEST[$which])>0) { //check the paging variable …

Member Avatar for blocblue
0
256
Member Avatar for jerry4all

I've been all over looking for how to get this done. below is the script I use to parse sms to my provider's API.however I've been having issues deliver a more than one page sms. I later found out there's need to add a UDH to each page to concatenate …

Member Avatar for jerry4all
0
152
Member Avatar for extjac

Hello, I wanted to ask the full time PHP developers how important you think MVC Pattern is. Are you coding all your projects with MVC? Would you have any recommendation in terms of PHP frameworks?

Member Avatar for mschroeder
0
169
Member Avatar for showman13

OK, Now that I know how to add minutes to a datetime field... I need to be able to take a specific date time as in NOW... Then add 30 days to it, and have record that date at 19:00:00 as an expiration date time I start by capturing the …

Member Avatar for diafol
0
542
Member Avatar for cr7489

i have a db that stores film and film reviews and using php i have created a system where the user can search for a review and then a list of reviews appear, i want to create a button with each review so that when selected the individual review can …

Member Avatar for cr7489
0
209
Member Avatar for Danny159

Hey guys, I need a bit of help... I have the following.... [CODE] <input name="title[1]" type="text" id="title[1]" size="30"> <textarea name="desc[1]" id="desc[1]" cols="50" rows="5"></textarea> <textarea name="keywords[1]" id="keywords[1]" cols="50" rows="5"></textarea> <hr> <input name="title[2]" type="text" id="title[2]" size="30"> <textarea name="desc[2]" id="desc[2]" cols="50" rows="5"></textarea> <textarea name="keywords[2]" id="keywords[2]" cols="50" rows="5"></textarea> <hr> [/CODE] Thing I want to …

Member Avatar for phper
0
87
Member Avatar for Susmita_Sikder

Hi all, I have WampServer2.2a-x32 and VirtueMart_1.1.8_eCommerceBundle_Joomla_1.5.22 but during installation the message given: [CODE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM CHARACTER SET `utf8`' at line 29 SQL=CREATE TABLE `jos_banner` ( `bid` …

Member Avatar for Susmita_Sikder
0
119
Member Avatar for cskinittest

<?php session_start(); if(isset($_POST['next'])){ $a=$_POST['a']; } if(!isset($a)){ $a=0; } $q = $_SESSION['q']['a']; include('dbconfiguration.php'); $sql1="SELECT * FROM question WHERE question_id='1' LIMIT 1 OFFSET 0 $q"; $result=mysql_query($sql1); echo $sql1; echo "<form method='post' action=''>"; while ($row = mysql_fetch_array($result)) { echo $row['Question']. "<br/>"; echo "<input type='radio' value='answer1' name='answer'>" .$row['optionone']; echo "<input type='radio' value='answer1' name='answer'>" .$row['optiontwo']; …

Member Avatar for baig772
0
146
Member Avatar for dany12

Hello to evryone my name is Dany and I want to get involved as volunteer in web project that is based on php mysql xhtml html css or any other web thenologies with the ondition to have php in it. Any advice or contact with developers that need help is …

Member Avatar for cereal
0
192
Member Avatar for muralibobby2015

i have one cookie. in this i stored all urls. now i want to display these urls in iframe. but i have only one iframe in a page. for this now i want to put <next> and <prev> buttons to go next url. i was done this using jquery but …

Member Avatar for phper
0
81
Member Avatar for mynameisfish.22

I am currently developing a small site to keep me amused in the nights I can't sleep. I have decided to create a forum with php and sql using databases to store posts etc. I have been experimenting with different ways of having the forums get to certain point and …

Member Avatar for pritaeas
0
159
Member Avatar for jetlife76

Hi guys, i am currently working on a project that queries an inventory database through the use of radio buttons, for example; If the first button FOR THE Item(HAMMERS)is clicked, the output should be the name of the item, the number sold and the total profit(calculations) into a table. the …

Member Avatar for jetlife76
0
133
Member Avatar for winnzor

When i click a button [CODE]<input id='delete' type='button' name='delete' value='Delete' onclick='deletePost(<? echo $id;?>);'>[/CODE] I want it to go to this function which is sent to my delete php code [CODE]function deletePost(id){ $('.content-num' + id).hide('slow'); $.ajax({ type: "POST", url: "/func/delete.php", data: "id="+ id, success: function(){ }}); alert(id); } [/CODE] Im new …

Member Avatar for vsmash
0
245
Member Avatar for tarunfuture

I am using javascript for form validation but after click on submit its showing me the alert but after cancelling the alert box it is processing and sending me to the next page

Member Avatar for tarunfuture
0
204
Member Avatar for fredy91

hy all, I want to make code for download multiple file in php so I make in zip file. my code work and can create sip file but when I want to open the zip file appear error message like this " the archive is either is unknown format or …

Member Avatar for fredy91
0
3K
Member Avatar for fmjnax

Hi all, I'm sorry if the thread title doesn't make much sense; I'm quite new to AJAX (well, to web programming as a whole. I'm more of a SQL/client-server developer). Anyway, I'm having some trouble getting some code to work. What I'm doing is I am dynamically loading a list …

Member Avatar for fmjnax
0
242
Member Avatar for jetlife76

Hi guys, i am currently working on a project that queries an inventory database through the use of radio buttons, for example; If the first button FOR THE Item(HAMMERS)is clicked, the output should be the name of the item, the number sold and the total profit(calculations) into a table. the …

Member Avatar for jetlife76
0
77
Member Avatar for Martin C++

Hello, I have a PHP page called summary.php and I m trying to make the jquery script to post piece of data when <select> is modified. This is my code atm [CODE=js] <script> $("select").change(function () { page_id=$(this).attr('id'); alert(page_id); $.post("#", {id:page_id}); }) .change(); </script> <?php if(isset($_POST['id'])){ die("YES!"); } echo $_POST['id']; ?> …

Member Avatar for Martin C++
0
200
Member Avatar for ibn_sumal

Hello guys I'm trying to do something very basic but can't figure it out so far. I have a form and just want to display [U]all the user's comments one after the other[/U] in the same page once they have submitted them. It does show a user's comment however when …

Member Avatar for ibn_sumal
0
2K
Member Avatar for jeevanism

I am not sure is this place to post this. may in JavaScript section. My requirement is that I have to disable user input like clicking menu links when some functionality in the website is going on . in better words, when user Upload a large file, it will show …

Member Avatar for StephNicolaou
0
69
Member Avatar for lastgame2007

<br /><b>Warning</b>: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. …

Member Avatar for diafol
0
90
Member Avatar for fredfletcher

Hello, I tried many different combinations to get this to work, but with no success. As always, I try my best and spend a lot of time in trying to get something to work before I ask for help on something. My question is, how can I pass parameter from …

Member Avatar for fredfletcher
0
159
Member Avatar for rich2710

Hello, I'm hoping if someone could help me with this, I don't think it's to complicated but I'm still having some problems. I have the following code which takes the keywords 'oxford' and 'oxfordshire' for $query and ultimately searches for items with these words in on eBay(UK). I have another …

Member Avatar for diafol
1
217
Member Avatar for emclondon

Hello guys, I am trying to learn working with Web services using PHP. I have found many methods to access and consume these services, but I've come to know Soap Client and cURL are the best way to do it. I decided to work on an API provided by a …

Member Avatar for diafol
0
294
Member Avatar for accra

hi, i get this error when i run my script [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\xampp\htdocs\autogh\admin\userindex\scripts\banner.php on line 13[/CODE] this is my mysql statement [CODE]$banners_num = "select * FROM banners WHERE DATE_ADD(todate, INTERVAL numDay DAY) > NOW() AND position='top_banner'"; [/CODE] Am trying to …

Member Avatar for accra
0
161
Member Avatar for danielbala

Hi.. I want to implement a program for identifying spam emails using an algorithm naive bayes in php.. How to implement this..can anyone help me.. Thx in Advance

Member Avatar for danielbala
0
79
Member Avatar for himanshu.1691

i type the following code.... it runs properly....data gets fetch but i am not able to display it in a textbox.... it simply remains blank....whereas i am able to fetch the data outside the form tags here is my code: here i can see name =himanshu outside the form but …

Member Avatar for emclondon
0
186

The End.