39,326 Topics

Member Avatar for
Member Avatar for rpv_sen

Hi I need an help on showing related post in an website. i want to display my related posts with help of keywords column. Below is my database structure id int(12) title varchar(250) content varchar(250) image_path varchar(250) type varchar(250) keywords varchar(250) can any one please help me. Thanks

Member Avatar for dom246
0
304
Member Avatar for dannybarh

Hi all, am trying to use bootstrap switch in my form. Am at a lost as to how to get the value of name="onoffswitch" from that field and insert it into mysql db, here is my code... div class="onoffswitch"> <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked> <label class="onoffswitch-label" for="myonoffswitch"> <div class="onoffswitch-inner"></div> …

Member Avatar for dannybarh
0
3K
Member Avatar for anestistsoukalis

I want to do what i describe on the title using php. Is it possible ? And how ? Something like this for example: http://www.pestaola.gr/ you can realize that there are pictures on menu bar. Thanks in advance.

Member Avatar for anestistsoukalis
0
178
Member Avatar for blueguy777

my actual code is: $agent_id=mysql_real_escape_string($_GET['memberid']); $result = mysql_query("SELECT id,ac_no,agent_name FROM ankali_slabpay WHERE agent_id=$agent_id ORDER BY id DESC LIMIT 1"); $row = mysql_fetch_array($result); $ac_number=$row['ac_no']; $agent_name=$row['agent_name']; ?> <?php $b = array(000350,000400,000450); //pre-defined installment amount values $replacement = "000000"; $cust_mast = '$C21'; $bank_name = 'KISAN SWARAJ'; $dfile = "READ ME CUSTOMERS.txt"; $fo = …

Member Avatar for blueguy777
0
126
Member Avatar for game4tress

When I insert data into the database, for instance, a new client, and after that query the clients in the database, the new client is not immediately shown in the list. For it to be listed, I have to clear the cookies and log in, again, into the site. Why …

Member Avatar for ehpratah
0
215
Member Avatar for vishal_WebDev

Hello, I have Error Like this when i open the table in phpmyadmin.. why this is happening with table ? please any solution for that... #145 - Table is marked as crashed and should be repaired Thanks

Member Avatar for vishal_WebDev
0
132
Member Avatar for tibor.marias

Dear Sirs, I would like to update some information in my MySQL through a PHP syntax, but it won't work. I'll show you my code. while($info = mysql_fetch_array( $data )) { if ($info['author'] === $user_data['username']) { print '<div class="registerleft"> <form action="" method="post"> <ul> <h2>A tulaj</h2> <li> Vezeteknev<br> <input type="text" name="first_name" …

Member Avatar for pritaeas
0
157
Member Avatar for Shikha_1

<?php require("Dbconnect.php"); //echo "<table id='t1'>"; $cls=$_GET['class']; //$count=0; echo $cls; $qry ="select cls_section_id from class where Class_name='$cls' "; $result=mysql_query($qry); while($row=mysql_fetch_array($result)) { echo $row['cls_section_id']; } ?> http://localhost/ediary/school%20%20diary%20system/subjectassign.php?class=%20NURSERY-A therefore $cls has value=NURSERY-A and when i am querying it does not result anything and instead of $cls if i use 'NURSERY-A' directly then output …

Member Avatar for Shikha_1
0
103
Member Avatar for jerry717

Hello, So I have a PHP page where I can enter my name, address, phone #, etc. I have some of these fields designed to be required information. If I do not enter something in the required fields, then information I have in other fields are lost when I submit …

Member Avatar for diafol
0
279
Member Avatar for Kishore Patra
Member Avatar for Rishav_1

iam creating a question paper for students where multiple questions are there with 4 choices per question and on submit butto i want to validate the given answers from answers save in the database. i have no any idea thathow to do it can anyone tell me the solution with …

Member Avatar for ehpratah
0
141
Member Avatar for everton.retweets

Hi Everyone. A real noob question here, Sorry in advance. I have found a php function online - public function ft_xss($str, $charset = 'ISO-8859-1') { /* * Remove Null Characters * * This prevents sandwiching null characters * between ascii characters, like Java\0script. * */ $str = preg_replace('/\0+/', '', $str); …

Member Avatar for everton.retweets
0
205
Member Avatar for Kazeemsho
Member Avatar for JorgeM
0
260
Member Avatar for everton.retweets

Hi Everyone... I have been digging around the web for the last two days trying to fix this problem myself, but have come to the realization that I need some help. I have a mysql query that selects all country names from my country db, (works as described) I then …

Member Avatar for phorce
0
748
Member Avatar for MWEB

Hi everyone , I'm trying to login to a site and it does not work , I don't see the problem .. $user = 'user'; $pass = 'pass'; $url = 'http://ecat.elit.ro/Default.aspx'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POSTFIELDS, 'ctl00$ContentPlaceHolder1$LoginControl$tbLoginUser='.urlencode($user).'&ctl00$ContentPlaceHolder1$LoginControl$tbLoginPass='.urlencode($pass).'&ctl00$ContentPlaceHolder1$LoginControl$btnLogin=Intrare'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, …

Member Avatar for MWEB
0
622
Member Avatar for jennstudent

Hi guys, I have a page that contains elements (filenames of uploaded images) that dynamically update the database upon clicking and dragging them to reorder. Most of this is working wonderfully. Part of this functionality is based upon each record having a recordID column (apart from the primary key column). …

Member Avatar for jennstudent
0
218
Member Avatar for blueguy777

how to convert install_amt to comma delimited array $select = mysql_query("SELECT ac_no,cust_name,install_amt,GROUP_CONCAT(install_amt) FROM ankali_slabpay WHERE agent_id=$agent_id GROUP BY ac_no"); $a=array(); while($row1 = mysql_fetch_assoc($select)){ $installment = $row1['GROUP_CONCAT(install_amt)']; $a=explode(",",$installamt);

Member Avatar for diafol
0
5K
Member Avatar for bobyx

Hello.I want to add my own slideshow that I saved it on one of my hard disk partition[E:]before,on the top of my web pages. I used joomla version 1.5.11.Would you please tell me how can I do that? Thanks

Member Avatar for bobyx
0
201
Member Avatar for harry_2

Hello Friends, Thank you for coming in this Disscussion thread. I need some helpp for you guys, Yeasterday some one ask me a question. The Question is why we use mysql_query in php. I don't have any answer of that Question. please tell me why we use mysql_query? Thank you …

Member Avatar for jkon
0
249
Member Avatar for tibor.marias

Hello everybody, I want to insert some data with an array to my mysql database, but it won't work. These are my codes, what could be the problem? register.php: if (empty($_POST) === false) { $required_fields = array('first_name','last_name','number','district','street', 'house_number', 'appointment_date', 'comment', 'anchor'); foreach($_POST as $key=>$value) { if (empty($value) && in_array($key, $required_fields) …

Member Avatar for tibor.marias
0
146
Member Avatar for siddharth_3

I'm trying to build google+ sign in feature. I'm able to get all the user data from google+, how can i insert this data into database? I know js is client-side language and it is needed to be done on server side....... my code: <span id="signinButton"> <span class="g-signin" data-callback="signinCallback" data-clientid="My-client-id" …

Member Avatar for bradly.spicer
0
335
Member Avatar for blueguy777

Array1 = array(000,400,000,500) Array2 = array(300,400,450,500) if the values of Array1 matches with Array2 values then the matching values of Array2 should be replaced with 000 i.e. Array2 = array(300,000,450,000) somebody help me. thanks in advance

Member Avatar for blueguy777
0
240
Member Avatar for mmcdonald

Hi all, I'm still playing around with OOP and to be totally honest really enjoying it! I can't believe I haven't made the switch from procedural earlier... Something I would like to know is, how can I set default arguments for methods / functions? What i'm getting at is, if …

Member Avatar for mmcdonald
0
169
Member Avatar for gurupts

i have two tables (they are fixed, not going to update any more) in my databae "phoneadd" phone_nos----name(primary id),home,office,college,friend. Examble: john 87954 45698 78965 12365 martin 45698 78962 45789 45789 trull 47896 14587 85632 14563 addresses----name(primary id),address Examble home first street,new town office second street,old town college thrid street,maxi world …

Member Avatar for tpunt
0
303
Member Avatar for JazzibAli

This is a part of addtobasket.php file i want to change the normal submit button with my stylish one but dont know how to do. here is code... ...require("header.php"); echo "<form action='addtobasket.php?id=". $_GET['id'] . "' method='POST'>"; echo "<table cellpadding='10'>"; echo "<tr>"; if(empty($prodrow['image'])) { echo "<td><imgsrc='./images/image_not_found.png' width='50' alt='". $prodrow['name'] . "'></td>"; …

Member Avatar for minitauros
-1
364
Member Avatar for jobo.td

I just created an empty HTML5 project and could not run it through the new Chrome netbeans Connector feature. I have added the netbeans connector extension to my chrome browser, but I keep getting this warning "Could not access Url through external browser. Check browser configuration." I have the latest …

Member Avatar for rohan.verma.52012
0
479
Member Avatar for mmcdonald

Hi all, I've literally JUST dived into OOP and it's a totally different world. I've written some pretty awful code just to grasp OOP basics. The following code is all in the same file and runes fine, there are no warnings, errors, notices and so forth yet it doesn't work …

Member Avatar for mmcdonald
0
305
Member Avatar for cmhampton

Hello all, I am trying to build a client to consume a webservice, and have run into some strange issues. Here is my code: $securityCode = "A7D5B7D8-73E2-44D2-A6F8-4ACFB91843BF"; // The security code has been changed to an invalid code to prevent unwanted "visitors". $ProphecyConnect = new SoapClient("http://test.prophecyhealth.com/ProphecyConnect/ProphecyConnectXML.cfc?wsdl"); try { $params = …

Member Avatar for cmhampton
0
1K
Member Avatar for gogs85

Dears, how to make dynamic webpage with php for example: website.com/pagename website.com/gallery website.com/page4/page6 How to do in code how to call pages?

Member Avatar for JorgeM
0
264
Member Avatar for NitsPatel

hello, Any One have a knowledge about My Desktop Real Estate Agent Website "www.desktop.com.au". How I Retrive Data From My Desktop Property Listing To My Website . Thanks Nits

Member Avatar for pritaeas
0
93

The End.