39,323 Topics

Member Avatar for
Member Avatar for rajeevphp2011

we are want to pass value in url when we click om menu in <?php wp_nav_menuservice(array('menu' => '27')); ?> function click on menu , current output in url: [url]http://localhost/daffodilsite/?page_id=540[/url] and we want in url: [url]http://localhost/daffodilsite/?page_id=540&cityid=3[/url] please help me how to pass cityid in url thanks Rajeev Dhar

Member Avatar for blocblue
0
104
Member Avatar for godwinaka4life

Hello everone, I am designing a website with php for different users. And I will like to give each user a unique page according to what their input in the form is, I want to MySQL database to save the information and retrieve it each time a user login into …

Member Avatar for simplypixie
0
88
Member Avatar for Will Gresham

Very simple question, looking on google brings up plenty of MySQL resources on triggers but I can't find the answer I am looking for. What I want to know is; When I perform a query on a database from PHP, Does MySQL provide any way for PHP to know a …

Member Avatar for mschroeder
0
213
Member Avatar for godwinaka4life

Hello Everone, Can any one know where I can get a script for community websites, if you know please don't hesitate to reply this message, Thanks for reading this post. And greater thanks for your reply to this post.

Member Avatar for diafol
0
48
Member Avatar for lovelylaya

Hi I recently installed XAMPP and tried my first test page by creating a sub-folder in htdocs namely password_test which containts 2 files: password.txt and an index.php. While trying to execute i get the following: file:///C:/xampp/htdocs/password_test/ -------------- Index of C:\xampp\htdocs\password_test\ Name Size Date Modified [parent directory] index.php.txt 129 B 11/18/11 …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for OnIIcE

Hello, I am looking for a way to stop variable scope leakage. I have a class with a function to include a page something like this: [CODE] class functions{ function getView($viewTheme, $viewType, $viewTask, $viewFunction, $pageID=null, $itemID=null){ $baseView = ROOTME.DIR_VIEWS.$viewType.'/'.$viewTheme.'/'.BASE_VIEW_DIR.$viewTask.'/'.$viewFunction.'.php'; if(file_exists($baseView)){ include($baseView); } } }[/CODE] My problem is, I am now …

Member Avatar for pritaeas
0
129
Member Avatar for davy_yg

product_preview.php [CODE] <?php // EDIT / DELETE MODE $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; if(!empty($_POST['id']) && !empty($_POST['mode'])){ if(!$_POST['mode'] == 'edit'){ $output = mysql_query("SELECT * FROM kategori WHERE id=".$_POST['id']) or die(mysql_error()); $data = mysql_fetch_array($output); $kategori = $data['nama_kategori']; echo $kategori; } elseif(!$_POST['mode'] == 'delete'){ $output = mysql_query("DELETE * FROM produk WHERE …

Member Avatar for ThLFR
0
68
Member Avatar for varoluscu_prens

Hi There; I have a MS-SQL server and I have Turkish names in my table. User enters names and I send it to SQL server, print result to output. However, my PHP code process and prints text as a UTF-8, and send it to MS-SQL and print it to output.However …

Member Avatar for diafol
0
163
Member Avatar for triltaison

I have some code that I use to display random images, which it draws from a list of possibilities. My problem is that I want to be able to echo the name of the randomized image as text below it. If someone could help me figure out how to do …

Member Avatar for niranga
0
182
Member Avatar for opjjuly

hey guys, i have quiet a number of .css and .js files on my website <head></head> pages. how do i compress them with gzip?

Member Avatar for opjjuly
0
894
Member Avatar for reco21

how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site.

Member Avatar for reco21
0
197
Member Avatar for phpDave

Hi, I'm looking to build a payment button using Amazon Simple Marketplace Payments. Here is some code: [CODE]<input type="hidden" name="recipientEmail" value="email_address yahoo.com" >[/CODE] I would like value to be a variable but having trouble making this happen or finding info on how to do this. Any help would be awesome.

Member Avatar for phpDave
0
110
Member Avatar for Canea

Hello, working on an Opencart website using Wamp and Windows7. Having trouble with Php settings _please view screenshot_ [URL=http://imageshack.us/photo/my-images/408/phph.png/][IMG]http://img408.imageshack.us/img408/1097/phph.png[/IMG][/URL] I've seen going through several sites with no solution so far; any help you could provide would be greatly appreciated. regards, C.

Member Avatar for Canea
0
135
Member Avatar for amsane

hi, I am changing my html web pages for website. my eclipse project is inside www directory. But I don't see html changes when I open web pages. I restarted server as well as eclipse many times. Still, the same result. Any Help, suggestion please?

Member Avatar for diafol
0
624
Member Avatar for shella

Hi all. I'm working on a project where I'm supposed to store some PDF into a website. I'm usibg PHP/MySql. Actually these PDF are very personal and I need to be sure that no one can access the PDF even if this is on an address like [url]www.site.com/document.pdf[/url]. I need …

Member Avatar for niranga
0
220
Member Avatar for jsquadrilla

Hello, Currently I have a PHP Script that screen scrapes a website for data, and store it into a MySQL table. I'd like to set this up to run in intervals during the day. Right now, all I do is open the link in my browser and it runs the …

Member Avatar for pritaeas
0
264
Member Avatar for DarkBerzerk

lets say it in example,i had column, which its rows contain numbers increasing -10,-9,-8,-7,....-1, those rows got bugged and changed into 1,2,3,4,.....10, that was example, the real one is over 40,000 rows, and it was -2147483629,-2147483630,-2147483631,....etc and it turned into 1000000001,1000000002,1000000003,.... how to make script that scan for 1000000001~1000000050 (for …

Member Avatar for DarkBerzerk
0
90
Member Avatar for narekm

HI. I want to dig deep into PHP and OOP so I have been told that Zend is a very popular framework so I want to learn . Can you give me some (not many) resources for learning the beginning Zend and step by step go deep into it ?

Member Avatar for pritaeas
0
60
Member Avatar for kay19

Well, doing a beginner project. I've 100% finished with adding items to the DB. However, having stuck trying to use the "search" button to retrieve the DB list, as well updating errors. Objective, input last name, click on search, and find the results based on the last name input. Here's …

Member Avatar for kay19
0
178
Member Avatar for azdonald

Good day, I'm trying to build an online quiz for my website. i want to do it oop style but i'm having problems in certain areas but i'll need help. this is the class code [CODE]class Quiz{ // method to get the questions and answers public function getQuestion(){ $host="localhost"; // …

Member Avatar for mschroeder
0
124
Member Avatar for mayreeh

i nid to set a generated password to email, a link to the mail for user to change to a better password, now the generated password shold expire after few hours how do i do...at the moment am genearting the password effectivly, problem is settimng it expire...how do i do

Member Avatar for mayreeh
0
70
Member Avatar for Szabi Zsoldos

Hello, I have this weird issue with my simple upload form for different files. [CODE] <form enctype="multipart/form-data" action="mesaje_furnizori.php" method="GET"> <table> <tr><td align="right">Va rugam selectati &raquo; </td><td><?php echo $selectare; ?></td></tr> <tr><td align="right"><td><input type="file" name="file" id="file"/></td></tr> <tr><td align="right" colspan="2">Fisiere suportate (.*gif,*.jpg,.*jpeg,.*png,.*bmp,.*doc,.*docx,.*xls,.*xlsx) Marimea maxima de: <strong>5MB</strong></td></tr> <tr><td colspan="2"><textarea name="mesajTrimis" cols="70" rows="15"></textarea></td></tr> </table> <input …

Member Avatar for Stefano Mtangoo
0
201
Member Avatar for klemme

Is it possible to run to functions at the same time when using onchange? Now i have this one: [CODE] <select name="hovedside_id" onchange="hentPosition(this.value)"> [/CODE] Using ajax i get updated another dropdown list with db info from this function just above. I return the data to a span tag with an …

Member Avatar for klemme
0
572
Member Avatar for moshe12007

hello i have problem with my code i try to delete user but i have some problem with that i cant to delete it... [CODE] if((mysql_num_rows($resultAdmin))) { if(mysql_num_rows($result) > 0) { ?> <table align="left" border="2" cellspacing="0" cellpadding="3"> <tr><td>Name</td><td>Email</td><td>Phone</td></tr> <?php $str = ""; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $name = …

Member Avatar for vimalnath53
0
84
Member Avatar for Stefano Mtangoo

Hi, I want to parse PHP entities (classes, variables functions methods and properties) and save information on database (function signature, variable name et al). I'm trying to see alternatives for how I can archieve that with any language (the technique). So far I'm thinking of using regex to match stuffs …

Member Avatar for Stefano Mtangoo
0
191
Member Avatar for davy_yg

banner_manager.php [CODE] include ("includes/koneksi.php"); //$_REQUEST['simpan'] = isset($_POST['simpan']) ? $_POST['simpan'] : ''; $link = isset($_POST['link']) ? $_POST['link'] : ''; $gambar = isset($_POST['gambar']) ? $_POST['gambar'] : ''; $id = isset($_POST['id']) ? $_POST['id'] : ''; //SIMPAN DATA if (isset($_REQUEST['simpan'])){ $id = $_REQUEST['id']; $link = mysql_real_escape_string($_REQUEST['link']); $gambar = $_REQUEST['gambar']; } //Cek apakah ada file …

Member Avatar for Stefano Mtangoo
0
302
Member Avatar for swilliamrobert

Hi, I have a problem to split and get the value in string. here example output --_BeginData_ payeeId=xxxx channelId=ECEP billAccountNo=exb111109-315262 billReferenceNo=TOPUP20111109200257 amount=42 paymentRefNo=61417686 transactionDate=20111109 transactionTime=194843 userFullName=KHOR JO FENG status=S --_EndData_ In above example, i need output for payeeId=xxxx, billAccountNo=exb111109-315262, billReferenceNo=TOPUP20111109200257 and etc., so i want value after the equal. It …

Member Avatar for diafol
0
184
Member Avatar for simplyhuman
Member Avatar for Stefano Mtangoo
0
100
Member Avatar for trektrak

Hello, I need help on this... I try to insert image from mysql into my php table.... but the output inside the image table are unknown characters [CODE]�Sm��.�l1�ZQm�M�Խok�*����5l��0P9���f�����I� �$A�3tu4Z��Jǽ�_t/�&��[�{Ro������;�� �:��I%�y�ҩ?u\�t_��Ǡ]�����N�>�B��z�9���ҥ��=hƬկdw��~��hY4�E����f%����MC�� 1���I�P@zP&r����j���֩��k޺8�a�p��bSMyt���Co�Q$��?�ZF*�S�9����حR����������x�h�9$�J \�m,[�6�^C��ct�q�U%��K$%�8����4����le�niX���\B �!s9n�;�1��F~t�䎪:�E�+�7R[���"! �1ZݞzQ�>(�zSxѹ 5�⺞��mG%��֦�k �����/��9]_�4���!4 ���}���hI�����

Member Avatar for niranga
0
5K
Member Avatar for kissu

Is there's any way so that I could prevent the embedded iframe page to load itself ( because I have placed a Jquery timer in it which redirects to a page which calculates and displays Score of the candidate, in my Quiz application ) even if the page on which …

0
67

The End.