39,326 Topics

Member Avatar for
Member Avatar for refresher

hi, does anyone would help me fixing my code, i got a problem in my search bar, when i want to click the add to cart button of the product searched or the items there's nothing happened, all i want is to add the product search in my cart. hope …

Member Avatar for pritaeas
0
208
Member Avatar for filipgothic

can someone explain me where is problem in this code it need to send this data to database table called anketa [CODE]<html> <head><title>Anketa</title></head> <body> <form action="insert.php" method="post"> Mesna zajednica <select name="mesto"> <option value="donji_grad">Donji Grad</option> <option value="karadjordjev_dud">Karadjordjev Dud</option> <option value="plavinac">Plavinac</option> <option value="seone">Seone</option> <option value="ladna_voda">Ladna Voda</option> <option value="lestar">Lestar</option> <option value="zlatno_brdo">Zlatno Brdo</option> <option …

Member Avatar for filipgothic
0
1K
Member Avatar for Valkyrian

Hi, My products (records) are selected with a number of pages. Then I use navigationbuttons like first | next | previous | last, to the next or the previous. like [CODE]<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>"> <input name="faktura_datum" type="text" id="faktura_datum" value="<? echo $date; ?>" /> First</a></strong></span></span> | <a href="<?php …

Member Avatar for Valkyrian
0
341
Member Avatar for trektrak

Hello.. I would like to know if this is possible. Which I assume YES it is possible. Since I add column (CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP), so I want to pulling the data from mysql table out to html php table filtered by the current time on the machine (computer system). …

Member Avatar for pritaeas
0
52
Member Avatar for emidevil

I really dunno wats wrong here. the firts query works but the second does not . please help... There a these connected files: save.php [CODE]<?php include_once("classes/jewelry/item.class.php"); $inum = $_POST['ItemNo']; $i=new item(); $i->ItemNo = $inum; $i->ItemName= $_POST['ItemName']; $i->CapitalPrice=$_POST['CapitalPrice']; $i->SalePrice=$_POST['SalePrice']; $i->Category=$_POST['Category']; $i->Description=$_POST['Description']; $i->save(); include_once("classes/jewelry/stock.class.php"); $j=new stock(); $j->ItemNo = $inum; $j->NumStored= $_POST['Nload']; $j->NumSold= …

Member Avatar for cossay
0
575
Member Avatar for Virangya

hi, i've been trying to solve this but no luck. This is my code [CODE]$replace1 =str_replace('hreflang=\"'.$arr['variantslang1hid'].'\" lang=\"'.$arr['variantslang1hid'].'\"','hreflang=\"'.$arr['variantslang1'].'\" lang=\"'.$arr['variantslang1'].'\"',$replace1);[/CODE] it should replace but no. i'm not escaping "" properly. how can i solve this? help much appreciated!

Member Avatar for Virangya
0
248
Member Avatar for Jfunch

I'm trying to make a prepared statement to query a customer database and set their user session variables. When I try to run it I get this error. Fatal error: Call to a member function bind_param() on a non-object in C:\wamp\www\HW2\user_login.php on line 57 Can someone help me with why …

Member Avatar for veedeoo
0
148
Member Avatar for shielaolid

Hello there, can anyone can help me with my problem, i want to update a record, but im getting an error. this is my code [CODE]<?php // connect to the database include('connect-db.php'); // check if the form has been submitted. If it has, process the form and save it to …

Member Avatar for vaultdweller123
0
107
Member Avatar for hallianonline

I have problem that i want to replace a posed value of form with the correct name but not getting the proper text I am only getting the form values i.e. [B]pbs[/B] and [B]gs[/B] <?php include "connect.php"; $school=$_POST['school']; if ($idevice =="pbs") { $tb_school = "Public School"; } else { $tb_device …

Member Avatar for veedeoo
0
100
Member Avatar for trektrak

Hello Guys, I really need your ideas on this one... Ok, I'm only familiar with php and simple html coding. I'm designing simple book loan database. Consist of two sql tables (a very simple one) table 1 book_in table 2 book_out Ok.. Let say, every book is determined by a …

Member Avatar for vaultdweller123
0
121
Member Avatar for jacksantho

In the address bar, i am getting the clean URL. I want to parsed it out.please help me out. [url]http://example.com/folder/test.php?stuid=xx44[/url]

Member Avatar for vaultdweller123
0
97
Member Avatar for hallianonline

Hello thanks for helping me before. I have a issue and I need its complete solution if someone can help me in this I have a simple php which contains html script and which have iframe included in it. I want its java scrpt embedded code so that users can …

Member Avatar for vaultdweller123
0
194
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
258
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
154
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
170
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
558
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
193
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
83
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
134
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

The End.