39,316 Topics

Member Avatar for
Member Avatar for debuitls

Hi all, Just wondering if anybody can spot the syntax error with the below. [CODE] '<button type="button" onclick="window.location='bookview.php?id='. $row['bookingref'].'&hn'. $row['hotelname'].''">Book Now</button>' [/CODE] It works fine when I just append one row to the URL like this [CODE] '<button type="button" onclick="window.location='results.php?id='. $row['proposalid'] . ''">Book Now</button>' [/CODE] The button only stops workin …

Member Avatar for smartness
0
141
Member Avatar for Schoorsteen

Hi all, I had a short question, I am busy making an UML Class Diagram for my future text-based browsergame, and I was wondering if I do it right yes or no. Please give me your critic and comments. [URL="http://img87.imageshack.us/img87/667/umln.jpg"]Click here for the diagram.[/URL] Kind regards, Schoorsteen

Member Avatar for Schoorsteen
0
77
Member Avatar for Froger93

Hey guys, I have been working on some code and have struck a problem, I tried to make the code as easy as possible to edit at a later date. The issue comes when I include a config file from a directory for a certain page, this config file decides …

Member Avatar for SAMAEL
0
165
Member Avatar for Barefootsanders

Hi all. I'm attempting to output all of the possible combination from "a" to "zzzz" and I'm wondering if theres an easy way of doing that. As an example output would be ... a b c .... z aa ab ac .... az ba bb ... and so on.. Is …

Member Avatar for Barefootsanders
0
232
Member Avatar for StrikeFreedom

hi I'm trying to find a way to create a dynamic form from mysql database and update multiple rows from it. For example let's say I have a database with email and the owner's name. How do I build the script to make php grab the data from the db …

Member Avatar for guru12
0
3K
Member Avatar for sam023

i was wondering how i can convert my fetch data from database into XML..!! actually i want to use idea on pagination..!! when first time user search for data...!! a XML file will creating containing data from database..!! and further data will be listed from XML instead of database..!!! can …

Member Avatar for diafol
0
93
Member Avatar for SCRAWL

Over on my site, I have a list of PS3 and Xbox 360 exclusive games: [url]http://scrawlfx.com/ps3-360-exclusives[/url] However, each item in the list is colored differently depending on whether it's solely exclusive to the console, exclusive to the console but has a PC version, or exclusive to PS3 or 360 but …

Member Avatar for codejoust
0
106
Member Avatar for EpicDewd

Hi everyone. I have a php mysql class and was wondering how I declare a varialbe kinda thing. Here is the code in the mysql class.... [code] <?php // class stuff public function fetch_array_from_query($query) { $this->debug_write("Fetching array from given query"); if(!$this->is_connected()) $this->setup_connection(); $result = $this->query($query); $this->debug_write("Finished fetching array from given …

Member Avatar for Schoorsteen
0
114
Member Avatar for Mahsa_C++

Hello to all, I'm just starting off learning PHP programming.As for the beginning i managed to download Apache 2.2 and PHP 5.3.0 , but i gave up frustrated after browsing several pages googling how to add the PHP to the Apache so that the server uses the php interpreter and …

Member Avatar for Mahsa_C++
0
322
Member Avatar for jen140

Good day. I want to create a small app that would take out the content from a rss feed and posteriorly from the url . I know that would be easily done in perl with regular expressions, but in php it seams a bit more difficult. So i want to …

Member Avatar for jen140
0
110
Member Avatar for click here

i want the best php class to work with mysql hi i want the best and the simple php class to work with the mysql thanks

Member Avatar for smartness
0
193
Member Avatar for julio gomez

Hi, I have a corn.php file that runs automatically every day and one of the functions is to send an e-mail to certain users. The problem is that the e-mails are being sent twice. I can't find anything wrong with the cron file, but checking the access_log.processed file of the …

Member Avatar for julio gomez
0
155
Member Avatar for tekwriter

I have inherited a website that was abandoned by it's designer, the guy started with a CMS called Simple Content Management. The core of the system works fine and i am figuring out all the ins and outs of the admin slowly, but surely. My issue is his page nav …

Member Avatar for SAMAEL
0
230
Member Avatar for cwarn23

Hi and I have been looking around and found that google has a few search api's but haven't yet found one that returns the results as a javascript/ajax array. Is it possible to at least get the google api to send the results to my website as a variable/array in …

Member Avatar for cwarn23
0
187
Member Avatar for karthikanov24

hi In the following function, to modify a product in a shopping cart, [CODE]function modifyProduct() { $productId = (int)$_GET['productId']; $catId = $_POST['cboCategory']; $name = $_POST['txtName']; $description = $_POST['mtxDescription']; $price = str_replace(',', '', $_POST['txtPrice']); $qty = $_POST['txtQty']; $images = uploadProductImage('fleImage', SRV_ROOT . 'images/product/'); $mainImage = $images['image']; $thumbnail = $images['thumbnail']; //echo $thumbnail; …

Member Avatar for karthikanov24
0
105
Member Avatar for arunajasmine

Hi, i am having a query like [CODE]$report_attrid=$this->Report->find('all',array('conditions'=>array('Report.report_id'=>$report_id,'Report.user_id'=>$userId))); foreach($report_attrid as & $reportattrid): $reportattrid['Report']['attr']=$this->Attribute->find('all',array('fields'=>array('Attribute.id','Attribute.label'),'conditions'=>array('Attribute.id'=>$reportattrid['Report']['attribute_id'],'Attribute.form_id'=>$report_form_id),'order'=>'Attribute.sequence_no')); $reportattrid['Report']['value']=$this->Result->find('all',array('fields'=>array('Result.label','Result.value','Result.submitter_id','Result.submitter'),'conditions'=>array('Result.attribute_id'=>$reportattrid['Report']['attribute_id'],'Result.form_id'=>$report_form_id),'order'=>'Result.id')); endforeach; $this->set('Report_attrid',$report_attrid); [/CODE] 1.the first one for $report_attrid will gives me the all the datas needed for my report as id Report_id title form_id attribute_id 1 1 r1 24 69 2 1 r2 24 72 2.And …

Member Avatar for smartness
0
116
Member Avatar for davidjennings

Hi all, I am trying to pass values to the cart. When I select add to cart the values show up in the url but does not direct the user to the shopping cart. url output. http://214.146.126.103/streetwise/result.php?itemname=CITROEN&returnurl=http%3A%2F%2F214.146.126.103%2Fpassenger.php&price=123.00&storeid=xxxxx&quantity=1[/url] [code=php]//passing variables from db $m_id=$row{products_make}; //echo $m_id;// test out put valid $p_id=$row{products_price}; //echo …

Member Avatar for davidjennings
0
173
Member Avatar for srihari3d

error:...cannot send session cache limiter... headers already sent by php....can any one give me the solution?..........when ever login with username & password...the session is not stored in the first time....but the next time login the session is stored with the username....what is the prblm?.....i m sending code also...... <?ob_start(); session_start();?> …

0
45
Member Avatar for smartness

I need a mysql user authentication class with only 3 user "levels" 1. Admin 2. Registered (or normal) user 3. Guest I tried phpclasses.org but couldn't find a good one (maybe i didn't try hard enough :-O ) So any suggestion is welcome! :)

Member Avatar for pritaeas
0
46
Member Avatar for JerieLsky

Hi guys, i don't know what 's causing this php error: [QUOTE]403 Forbidden. You don't have permission to access /Duplicate of Edited Site/< on this server.[/QUOTE] Need help. This problem actually occured when i clicked the submit button from a certain form. Thanks in advance. This is code: [CODE]<html> <head></head> …

Member Avatar for ivatanako
-1
198
Member Avatar for JerieLsky

I'm just new in php actually and this is the problem that i have been encountering lately. I actually have one .html file and .php file, on the .html file I created a form which looks like this: [CODE]<table cellpadding="0" cellspacing="5" border="0" width="500" align="center"> <form name="FAQ" method="post" action="question.php"> <span style="font-family: …

Member Avatar for ivatanako
0
230
Member Avatar for AdventDeo

Ok so I have two separate AJAX function that I want to combine but have no idea how. The first 2 files are to call up a table with cells in the form of text-boxes, and the last 2 files are linked dropboxes. What I want to do is to …

Member Avatar for AdventDeo
0
118
Member Avatar for j_limboo

Echo google problem Please advice you inputs are greatly appreciated [CODE]<?php if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; /* applying logic and creating a new variable to it*/ $logic = "~resume (filetype:pdf OR …

Member Avatar for j_limboo
0
99
Member Avatar for j_limboo

Got stuck How to make $newUrl a hyperlink in a different html page new to php code [CODE] <?php if (!isset($_GET['p']) || empty($_GET['p'])) { $_GET['p']=0; } if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; …

Member Avatar for j_limboo
0
252
Member Avatar for click here

hi iam tried to send mail but see how it appear iam use mail function when i make 2 line the message appear line one [COLOR="Red"]\n[/COLOR] line 2 and how i can make it go to the inbox and not spam and its appear some time strange how can i …

Member Avatar for almostbob
0
124
Member Avatar for j_limboo

[CODE] <?php $ser = $_GET['q']; $logic = "~resume (filetype:pdf OR filetype:doc OR filetype:rtf OR filetype:htm OR filetype:html) skill -jobs -apply -submit -required -wanted -write -sample"; str_replace ("skill", "$ser", $logic); echo $logic; ?> [/CODE] I am not able to replace skill please help New to PHP Please advice Thank You

Member Avatar for smartness
0
75
Member Avatar for jay_412

hey guys,,could you help me bout my problem? I want to make a function and i want to preselect its ID's not its values,, this is my code [QUOTE] function getVisibility(){ echo "<option id=0>Inactive</option> <option id=1>Active</option> <option id=2>Active on Website</option> <option id=3>active on churchwide calendar</option>"; } [/QUOTE] I want to …

Member Avatar for smartness
0
101
Member Avatar for j_limboo

echo $_GET[x] changing it into variable... any code sugessions Please advice new to PHP some inputs first change $_GET[x] to variable and then echo

Member Avatar for j_limboo
0
120
Member Avatar for charliesindex

Hi, I am developing an application that requires uploading multiple files. Number of files can be very large eg 200. I like to know if there is a restriction on number of files in multiple file upload. I am aware that there is a size limitation of 2mb, is that …

Member Avatar for charliesindex
0
34
Member Avatar for somedude3488

Got bored and made a function that handles filling strings similar to mysqli bind_param. It actually gets used a lot in my code. Figured someone else might find it useful. Example usage: Using question marks as place holders [code] $str = 'Hello, my daniweb user name is ? and my …

Member Avatar for somedude3488
0
151

The End.