39,323 Topics

Member Avatar for
Member Avatar for deva89

I am developing a project on PHP and MySQL. My problem is "I am unable to show a uniqueID in a textbox like 'GHY00001, GHY00002, etc' auto-incremented everytime i load the page and insert it into the database". I already tried some php tutorials but didn't find usuable to my …

Member Avatar for AndrisP
0
471
Member Avatar for Iikeloa

Hi I have a problem with inserting into the database. This is my code : $insert = $db_con->query("INSERT INTO users (username,password,email,com-name,com-logo,com-phone,com-mobile) VALUES('".$username."','".$enc_pass."','".$email."','".$com_name."','".$profile_path."','".$com_phone."','".$com_mobile."')");

Member Avatar for Iikeloa
0
278
Member Avatar for nadiam

database : mysql tool: phpmyadmin today my supervisor set up the web on the companies server. when its all settled, we try out the login page(`index.php`) but we get fatal error and the line its pointing at refers to the `connection.php` page which connects to the database. > Fatal error: …

Member Avatar for pritaeas
0
212
Member Avatar for Sharmilamega

Hi, i have a doubt in php. I need to store datas in database if i before my time ends. But before timing ends datas are not stored in db. this is my problem. Please give one solution for this.

Member Avatar for cereal
0
60
Member Avatar for atakarim

hello sir i am beginner of this course. now i am doing a project where i want to print a page/part of the page from web browser without print window. may i do this? if yes then how i could do so? please help me to find out the solution …

Member Avatar for atakarim
0
233
Member Avatar for zekstein

Hello ! I have a problem ! I'm starting a comment system for my website. The problem is: I want to use an HTML editor, but is not fully necesary. My problem is with the security. How to secure the user input that i save in database? Because i show …

Member Avatar for diafol
0
142
Member Avatar for ravi142

Hello Everyone, Can you suggest me for Any Script or snippets of dopdown value given to **database** using **jquery and ajax** in php file. Thank You.

Member Avatar for diafol
0
384
Member Avatar for dhani09

I'm implementing something similar to a shopping cart - a "my favorites" page for products. Users can click on an "add to favorites" link and add products to a favorites table from which they can view the details of those products at a later time. There's no purchase on the …

Member Avatar for diafol
0
219
Member Avatar for mokshi

Hi I am generating 6 tables in pdf using fpdf in php but i am getting each table in a seperate page even if table contains only one row can you help me in this issue function function BuildTable5($header5,$data5) { $this->SetFillColor(255,255,255); $this->SetTextColor(0); $this->SetDrawColor(0); $this->SetLineWidth(.3); $this->SetFont('','B'); //Header $w=array(30,50,20,20); $this->SetFont('Arial','B',7); for($i=0;$i<count($header5);$i++) $this->Cell($w[$i],7,$header5[$i],1,0,'C',true); …

Member Avatar for DJBirdi
0
188
Member Avatar for mexabet

I'm coding a registration form that includes a file upload field. Basically, there are two queries that need to be simultaneously inserted into a database. But unfortunately, I don't know how to do it. So, I need your help. if ($my_upload->upload()) { // new name is an additional filename information, …

Member Avatar for mexabet
0
244
Member Avatar for jaspertan

Hi Sirs, can anyone have an idea reagarding lightopenid log-in on Laravel 4. i want to make a website using google account on log in. Thanks in advance.

Member Avatar for cereal
0
427
Member Avatar for rjusman90

$newq=mysql_query("SELECT * from userrights WHERE UserId=$Id"); $array=array(); $r1=mysql_fetch_array($newq); $menuid=$r1['MenuId']; <select name="page[]" multiple="multiple" size="5" > <option disabled="disabled" value="">Choose one</option> <?php $query1=mysql_query("SELECT * FROM adminmenu"); while($row1=mysql_fetch_array($query1)){ $selected = ($menuid == $row1['MenuId'] ? 'selected="selected"' : ''); echo"<option value='$row1[MenuId]' $selected >".$row1['MenuName']."</option>"; } ?> </select>

Member Avatar for rjusman90
0
148
Member Avatar for rpv_sen

HI can any one please help me how to convert timestamp to IST jtime = 2014-07-23 02:41:05 to Date H:i:s am/pm formate

Member Avatar for DJBirdi
0
182
Member Avatar for akhilckz

how to redirect to a page in a specific folder... how to specify path...

Member Avatar for <M/>
0
205
Member Avatar for ultmt.punisher

I have a `input type file` named `datafile` and I want to show file name into a span when file is loaded into `input:file` I have tried to echo `$_FILES['datafile']['tmp_name']` but it output this `E:\xampp\tmp\phpFE1E.tmp` not the real file name. suppose I have file `data.txt` so I want to show …

Member Avatar for cereal
0
253
Member Avatar for Webville312

Dear all, I have done a website that I need to integrate emailing functionality. I have done this before, and it worked perfectly, and still does. However, when I attempted to use the same code to test the emailing functionality for the new site, I get an error message as …

Member Avatar for Webville312
0
190
Member Avatar for My question

Dear friends, I have the pages for website in html, I need to change those html pages to wordpress. I don't know how to do that, Please help me

Member Avatar for khurram123
0
146
Member Avatar for judy.babasa

is html/php suited for making an accounting software? looking forward for your recommendations.thanks

Member Avatar for rubberman
0
142
Member Avatar for Sharmilamega
Member Avatar for rubberman
0
66
Member Avatar for safi.najjar1

Hey guys I have some problem for counting (products) in cart dynamically with ajax when clicking on (add to cart) "button": for example: consider that there's only one product in cart, user clicks (add to cart) "button", show div with message added plus count products in cart dynmically Here's my …

Member Avatar for safi.najjar1
0
218
Member Avatar for ultmt.punisher

I want to make a system that generate numbers on click, I have numbers from 1 to 100 like M-3134 A-3133 U-3132 and so on. and I want to put all my these numbers in array and want to show using button randomally, upto 8 numbers or 10. and when …

Member Avatar for ultmt.punisher
0
2K
Member Avatar for Sharmilamega

1) why autoincrement is not working for varchar in phpmyadmin? 2)can we set two autoincrement in a table in phpmyadmin?

Member Avatar for diafol
0
158
Member Avatar for Benjamin_4

i have a website which i sell my books on, now i want to redirect my users to the home page (index.html) when they click the download link and the file starts to download. Will really appreciate the help and support thanks. this is the php code i wrote <?php …

Member Avatar for diafol
0
104
Member Avatar for lwaterfo

Hello, Newbie with simple question here... A developer has entered this code for me to display a banner ad on my wordpress page. I want the ad to link to a page. How would I do that with this code? <div class="head_banner"><img src="<?php bloginfo('template_url'); ?>/images/image.png"></div>

Member Avatar for aliceknight
0
188
Member Avatar for nadiam

hey guys. i have this table that lists contacts that are stored in database. the data is selected from 2 tables using join which i have already got working: SELECT c.contact_id,c.salutation,c.fname,c.lname,c.dob,c.houseadd,c.personalno,c.officeno,c.email,c.spouse,c.child, s.spouse_id,s.s_salutation,s.s_fname,s.s_lname,s.my_spouse FROM contact1 c LEFT JOIN spouse1 s ON c.contact_id = s.my_spouse what im having trouble with is selecting …

Member Avatar for nadiam
0
220
Member Avatar for MikeDesigner

Is it better to use PHP (cake) or a wordpress theme (woocommerce) to build a shopping cart for a printing company?

0
59
Member Avatar for RonKevinT.Manuela

$stmt = $db->prepare('SELECT postID, postTitle, postSlug, postDesc, postDate FROM blog_posts WHERE postDate >= :from AND postDate <= :to ORDER BY postID DESC'.$pages->get_limit()); is there something wrong with my query?

Member Avatar for pritaeas
0
196
Member Avatar for hanspeare_1

Hello Admins and Php Friends, I have manage to upload the image using this codes $student_id = $_POST['student_id']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $gender = $_POST['gender']; $date_of_birth = date("Y-m-d",strtotime($_POST['date_of_birth'])); $contact_no = $_POST['contact_no']; $grade = $_POST['grade']; $section = $_POST['section']; $LRN = $_POST['LRN']; $email1 = $_POST['email1']; $email2 = $_POST['email2']; $address = …

Member Avatar for hanspeare_1
0
359
Member Avatar for silent lover

<link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7538664413577532945/posts/default/6420470017556836335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7538664413577532945/posts/default/6420470017556836335'/><link rel='alternate' type='text/html' href='http://tipsorangsukses.blogspot.com/2013/05/tips-membeli-emas-batangan.html' title='Tips Membeli Emas Batangan'/> i want to get link rel alternate href only, so the result when echo is `http://tipsorangsukses.blogspot.com/2013/05/tips-membeli-emas-batangan.html` i wrote like this but still wrong $feed = file_get_contents("http://tipsorangsukses.blogspot.com/atom.xml"); $xml = new SimpleXmlElement($feed); echo "<ul>"; foreach($xml->entry as $entry) { …

Member Avatar for silent lover
0
307
Member Avatar for nadiam

hello. i was just wondering if it is possible to insert data for date and time separately into database for a column with type datetime. datetime format is like : yyyy-mm-dd h:m:s . I know you can get date and time separately FROM database but is it possible to be …

Member Avatar for almostbob
0
173

The End.