39,393 Topics
![]() | |
I am starting to use Flash Builder for php to make an app. I have started with this very good example suggested by a user. [http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(php)_application.htm](http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(php)_application.htm) On Step 11 running the PHPUnit i am getting this error PHPUnit_Framework_Error_Warning:mysqli_connect()[<a href='function.mysqli-connect'>function.mysqli.connect</a>]:MySQL server has gone away I am understanding that it cant connect … | |
Good day! I have a page let say page1.php and page2.php. In page1.php, I have build menus which names are taken from MySQL database like the code Ive made below: <ul> <?php do { ?> <li><a href="fullwidth.html"><?php echo $row_rec_tourismmenu['menuname']; ?></a></li> <?php } while ($row_rec_tourismmenu = mysql_fetch_assoc($rec_tourismmenu)); ?> </ul> I want … | |
Hi Daniweb,I'm trying to modify and upgarde My codes from Native mysql to mysqli. My trail seems to be somehow good as I got My hands with the Php Manual Documentation so forth. The Only point I got stuck is where I implimented the mysql's mysql_affeted_rows() and so changed it … | |
Hi, I am trying to load arabic forms in smarty. But whenever I copy data to a tpl file the arabic lanaguage changes to ?????. Is there any help where I can find how to load arabic forms.I have searched but could not find any help regarding loading the arabic … | |
hello i want to crop my image by selecting the face and mark its coordinates but unable to find that can anyone help me out | |
Hi all, i have web application and login form. i would like when i exit (logout) it automatically logs out from all devices (or browsers or PC). Can anyone help me? | |
I have category table and product table.I retrieved item name from category table.Product table has id,image,title,category,description.If I choose one item from category,I want to display image concern with it. This is my code. | |
I just installed ZEND STUDIO to make a mobile application out of my php files. Does anyone knows any good tutorial or examples? | |
i need this to clarify . .. // Parse error: syntax error, unexpected '=', expecting ')' in /home/dsyslabs/public_html/users/canapprove/core/test_sup_form/index.php on line 9 | |
update_image.php if($image_width > $data2['maxwidth'] or $image_height > $data2['maxheight']) { echo '<br>'."Image is too big".'<br>'; echo $image_width.'>'.$data2['maxwidth_bn'].'<br>'; echo $image_height.'>'.$data2['maxheight_bn']; exit(); } Successfully upload pictures Image is too big 995>1000 229>240 I wonder why the condition pass? It suppose to be too small instead of too big. | |
Hello i need little help overhere im confuzed getting user data from mysql database i want to update the `payCheck` column in the database but that column is located in the `receiver` or `where (in the code)` field i have this code please someone help me... <?php require 'connect.php'; require … | |
Hi folks, I have a situation that's most easily explained via example, I think. So here goes. Let's say I have the following URLs: 1. /page.asp?id=123 2. /page.asp?id=123&category=ABC 3. /page.asp?id=123&category=ABC&var3=X&var4=Y I need these pages redirected. Currently links 1, and 2 redirect correctly. Option 3 though can have an arbitrary number … | |
When I remove or comment out the alert statement it fails. $(document).ready(function(){ $('#div_db, #div_tables, #div_data, #div_nav').hide(); $("#div_db").load("generic_get_dbs.php"); $('#div_db').show(); alert('line 5'); }); | |
------------------------------------------------------ Main code: ------------------------------------------------------ public function forum_detail_info($post_id) { $data = array(); $this->load->library('pagination'); $config['base_url'] = base_url() . 'welcome/forum_detail_info/'; $config['total_rows'] = $this->db->count_all('tbl_forum'); $config['per_page'] = 3; $this->pagination->initialize($config); $data['about'] = $this->welcome_model->about_info(); $data['about'] = $this->welcome_model->about_info(); $data['forum_post_info'] = $this->welcome_model->select_all_forum_post_info($post_id); //---------------more $this->load->view('website/include/header', $data); $this->load->view('website/master_page', $data); $this->load->view('website/include/footer'); } ---------------------------------------------- I want code: ---------------------------------------------- public function forum_detail_info($post_id) { $data … | |
dashboard.php <table border="1"> <tr> <!-- <tr> --> <?php $i = 1; if($pager->paginate()) { $result = $pager->paginate(); while($data = mysql_fetch_assoc($result)) { ?> <td></td> <td><a href="dashboard.php"><img src="images/<?php echo $data['newfilename']; ?>" height="150px" width="150px"><?php $filename = $data['newfilename']; //echo $filename; $_SESSION['class'] = $data['class']; //$_SESSION['echo $filename']; ?><br><br><?php echo $data['class']; ?></a> <a href="#" onclick="doSomething();">Click Me!</a> <?php if($i … | |
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/wwwjjtex/public_html/contacts.php:2) in /home/wwwjjtex/public_html/contacts.php on line 2 AND my code is margin-left: 94px; margin-top: -66px; margin-left: 94px; margin-top: -66px; max-width: 100%;"/></a></h1> <nav> <ul class="menu"> <li><a href="index.php">home</a></li> <li><a href="about_us.php">about as</a></li> <li><a href="product.php">product</a></li> <li><a href="<?php session_start(); if(isset($_SESSION['login_user'])){ echo … | |
Ranking for the best server side language in Web Development PHP | ASP | Java | |
<?php $host="localhost"; // Host name $username="user"; // Mysql username $password=""; // Mysql password $db_name="pqa"; // Database name $tbl_name="improvement_plan"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $Ipid=$_GET['Ipid']; // Retrieve … | |
this is my index.page <html> <head><title>Registration</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src='http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js'></script> <script type="text/javascript"> function validate() { if(document.register.name.value == "") { alert('Enter valid name'); document.register.name.focus(); return false; } if(document.register.email.value == "") { alert('Enter valid email'); document.register.email.focus(); return false; } else if(document.register.password == "") { alert('Enter Password'); document.register.password.focus(); return false; } if(document.register.repeatpassword.value … | |
<script> function calculateText(el) { var form = el.form; var idx = form.Selfrating1.selectedIndex; if (idx <= 0) { form.reset(); return; } if (form.Selfrating1.value == "Good") { form.T11.value = "#008000"; } else if (form.Selfrating1.value == "Satisfactory") { form.T11.value = "#9ACD32"; } else if (form.Selfrating1.value == "Mixed") { form.T11.value = "#FFFF00"; } else … | |
hi, can any one tell me how to send mobile sms to some one,after registered successfully, in local host | |
I had test today about PHP. Really basic one, which probably won't give me A++ (10/10), because of strange question he asked, he asked us to translate: $temp = 10; if ($temp == 0) { echo "it's 0 Celsius"; } elseif ($temp < 0) { echo "it's chill outside"; } … | |
*I am trying to get amazon product feed from marketplace i have download php client library file,and setup every additional setup like marketplace id merchant id (under the sample folder config folder) i got some error message and solve those problem.Now i get this error "Caught Exception: Could not resolve … | |
Hi , i already build up a php form which is will sent data on same page, validate it , but i stuck how to switch to new display that become a preview data . My coding : <?php // dapatkan data dulu cha $fname = $_POST['fname']; $lname = $_POST['lname']; … | |
-Hellow DANIWEB?... -I've been wondering if there is a way I can Use My Own Warning Message instead of that provided by Php during file include Failure... -**NOTE:**I dont intend to Mean Error Messages that We can write to a User when something goes wrong,like failure of inserting data inputs … | |
Hi Daniweb, I'm trying to create a basic, grid-based (table-layout) calendar using PHP. I'm in the planning stages currently, but need some help coming up with an effective way to display empty boxes (for instance, November starts on Monday, so the left-most box (Sunday) needs to be empty. December starts … ![]() | |
I have this message table that allows users to send messages to one another. sender_id is the id of the person who sent the message. receiver_id is the id of the person who received the message. message_id adds the sender_id and receiver_id together. This is a sample below. id sender_id … | |
I have code for shuffling images and display.Now i want to values of checked boxes will store on database.please help <?php mysql_connect("localhost","root",""); mysql_select_db("impass"); ?> <html> <body> <form action="" method="post"> <?php $images = array( '<input name="chk1" type="checkbox" value="1" /><img src="images/images (4).jpg" alt="" width="234" height="212" />', '<input name="chk2" type="checkbox" value="2" /><img src="images/images … | |
hi DaniWEB users, it has always been a great support from dani web to answer questions and get feed back from every one. The issue i am facing is not a coding issue but a development platform issue,I have searched over the internet and was either unable to interpret my … |
The End.