39,323 Topics

Member Avatar for
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
130
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
251
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
745
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
610
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
200
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
248
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
363
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
478
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
302
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
Member Avatar for renierdbruyn

the following function "ranks" the applicants and writes them to the rank_results table in the database: function rank() { $rank = 0; $sql1 = "SELECT * FROM applicant_details"; $results = $this->db->query($sql1)->result(); $sql3 = "SELECT * FROM job_advert"; $job_advert = $this->db->query($sql3)->result(); foreach ($results as $applicant) { $applicant_age = $applicant->age; $applicant_id_number = …

Member Avatar for renierdbruyn
0
150
Member Avatar for pritaeas

I'm working on an ORM experiment, and I'm looking for ideas to help choose which path to take in it's development. I currently have an index showing how to use it, two interfaces, a database class, a table base class and two auto-generated classes (representing a database table). The first …

Member Avatar for pritaeas
1
322
Member Avatar for harry_2

Hi i m a professional website designer and interested in learn PHP for Future so can any one explain me where PHP required in website during development or design and what is the main topic which most required for Website Designer or developer I have knowledge about programing like c,c++ …

Member Avatar for Pilot122x
0
187
Member Avatar for Priti_P

Hello there, While submitting the form , though it is validated properly still it accepts ? in mobile number field **sometimes** while it is submitting to database It is not for everytime and at particular digit only so that I can find the issue, It comes rarely as sometimes like …

Member Avatar for AARTI SHRIVAS
0
64
Member Avatar for durgesh1

i need to modify this query $fields = array("lo.name", "lo.id", "lo.status", "lo.sales_status", "pt.name ptname", "lo.city", "st.name state", "co.name country", "lo.zip", "lo.phone", "lo.email"); $result = $select->selectQuery($fields, "locations lo","LEFT JOIN states st ON st.id = lo.state LEFT JOIN countries co ON co.id = lo.country LEFT JOIN location_types pt ON pt.id = lo.primary_type"); …

Member Avatar for pritaeas
0
91

The End.