39,316 Topics

Member Avatar for
Member Avatar for Dani

I'm using the following code to verify that an email address has a valid DNS (otherwise, we consider the email invalid). $domain = substr($email, strrpos($email, '@') + 1); $isValid = checkdnsrr($domain, 'MX') || checkdnsrr($domain, 'A'); However, today it just flagged nearly all @gmail.com and @yahoo.com emails as invalid. Obviously the …

Member Avatar for serverjedi
0
889
Member Avatar for Magic8Computing

I have a table in and MSSQL DB that list period and week start dates for any date in a financial year but the page is only display the week numbers and period number none of the dates does any body have any ideas please. <?php $serverName = 'DESKTOP-R7RU80H\SQLEXPRESS'; $connectionInfo=array('Database'=>'WebPortal', …

Member Avatar for Dani
0
453
Member Avatar for Gabriel9999

I have an applications developed with PHP. I have a big text file where I want to match for a word but this can be change in the feature. How can I match a word in PHP?

Member Avatar for samueltarcin999
0
209
Member Avatar for Yumaris

Notice: Undefined index: ID in C:\xampp\htdocs\tugas\phpdb\ubahsimpan.php on line 10 im tired ,,, how i can fix that? My ubahdata.php <html> <body> <?php $koneksi=mysqli_connect("localhost","root","") or die ("Koneksi Gagal".mysqli_error()); if($koneksi){ mysqli_select_db($koneksi,"buku") or die ("Database gagal dibuka".mysqli_error()); $ID=$_GET['ID']; //Mejalankan Querry $sql="select * from anggota where id_anggota='$ID'"; $qry=mysqli_query($koneksi, $sql) or die ("Querry gagal".mysqli_error()); $data=mysqli_fetch_array($qry); …

Member Avatar for pritaeas
0
238
Member Avatar for mr.matrix251
Member Avatar for rproffitt
0
121
Member Avatar for _deviance_

I'm a PHP developer working full time for opensource PHPFusion CMS for the last 10 years. I'm not here to do any sort of marketing for them, but if you are interested, you can google "PHP Fusion". That being said, I know a little or two about PHP if anybody …

Member Avatar for Dani
0
68
Member Avatar for nishita_1

Dear sir, Please help me about below query. here is two table sale and purchase. i want product wise result in output table like below picture. please help me ![22222.jpg](/attachments/large/4/f8a1f4cfc8eaaad4bde70a850826b310.jpg)

Member Avatar for drmrkrch
0
1K
Member Avatar for larry29936

I'm creating a report page and can't figure out how to convert the array (row) to just get the ip_address. I'm a newbie to php and can't figure out how to accomplish this. Here's the code that I have so far: <?php $filename = NULL; session_start(); // start of script …

Member Avatar for larry29936
0
464
Member Avatar for iraberyl

Hi, its me again. I've seen the other code for looping textbox but it goesn't seem to apply in our script. What we need is a specific text box that loops when the user inputs a certain number of textboxes that he want to put. Example: there's a text box …

Member Avatar for Dani
-1
3K
Member Avatar for pankur820
Member Avatar for Alyana Diao

my system is savings account system, in which i tried to redirect to another php page with the same user id that i want to manage his/her account yet , when i deposit all of the users have the same fk, here is my code, hope you help me with …

Member Avatar for Dani
0
410
Member Avatar for macfan

Whats the correct approach nowadays and why: 1. To upload any needed external libs together with webapp in separate folder and than include them (where needed) using relative path, or, 2. Reference remote path (usually some form of CDN), The problem Im facing is I was tasked with writing a …

0
71
Member Avatar for Passy

<?php $sql =" SELECT * FROM `comments` "; $result = mysqli_query($db, $sql); while($row = mysqli_fetch_assoc($result)){ $comment_id = $row['comment_id']; $comment_company_id = $row['comment_company_id']; $comment_name = $row['comment_name']; $comment_content = $row['comment_content']; $comment_email = $row['comment_email']; $comment_status = $row['comment_status']; $comment_date = $row['comment_date']; echo "<tr>"; echo "<td>$comment_id </td>"; echo "<td>$comment_name </td>"; echo "<td>$comment_content</td>"; echo "<td>$comment_email</td>"; echo "<td>$comment_status …

Member Avatar for pritaeas
0
114
Member Avatar for Xianders

I want to order a website for my online shop, but I have a question: who is better to hire, a freelancer or a company? I can't make the site I want alone because I don't have much experience in creating sites. I think hiring companies is expensive. I don't …

Member Avatar for ZoyaHall
4
988
Member Avatar for Zinavo
Member Avatar for phirux

Hi everybody. I'm trying to print all sub-category items using my own defined PHP function. The purpose of this function is to print all items, which parent value is $parent. There is some thing wrong with this function why it doesn't show information as I wish. To make you understand …

Member Avatar for Dani
0
597
Member Avatar for Nishant_8

it come to my email id but i am getting this error...Syntax error '$names' 9T_VARIABLE) plz help me here is my code <? php $names = $_POST['name']; $visitor_email = $_POST['email']; $visitor_phone_no = $_POST['phone']; $message = $_POST['Message']; $email_from = "rkenterprises9083@gmail.com"; $email_subject ="New Form Submission"; $email_body ="User Name: $names.\n". "User Email: $visitor_email.\n". …

Member Avatar for Dani
0
226
Member Avatar for Nuti

<?php include "database.php";?> <?php session_start();?> <?php // Getting total rows there in table $query="SELECT * FROM questions"; $results=$mysqli->query($query) or die($mysqli->error.__LINE__); $total=$results->num_rows; $row=$results->fetch_assoc(); //Reading the rows next by next and vice versa $offset=$row["question_number"]; // when button next is clicked it will fetch the next row if(isset($_POST["NEXT"])){ $offset++; } // if previous …

Member Avatar for Dani
0
168
Member Avatar for Usoop
Member Avatar for R_4

How can i check if email exists i have this code but it is not working <?php include "Config.php"; function mksafe($data){ $data=trim($data); $data=strip_tags($data); $data=htmlspecialchars($data); $data=addslashes( $data); return $data; } $fname = mksafe($_POST["fname"]); $lname = mksafe($_POST["lname"]); $email = mksafe($_POST["email"]); $sql = "SELECT * FROM `users` WHERE `email`=$email"; $result = $conn->query($sql); if($result->num_rows …

Member Avatar for R_4
0
398
Member Avatar for bradly.spicer

Hey guys, I recently started work on Minepress again, I'm having some problems however. I am trying to make a plugin which detects the ip of a minecraft server and results in printing out if its online or not here is display on my site: http://img545.imageshack.us/img545/4404/beaa1f33dce74c6dbee14e6.png as you can see …

Member Avatar for johnie_1
0
414
Member Avatar for Patiodude

I've just started working with PHP and MySQL, and I'm trying to create a table in MySQL. If I've got this right, I'm trying to do so by going to my host's SQL MyAdmin page and typing in mysql_query("CREATE TABLE example( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), name VARCHAR(30), …

Member Avatar for surveypacific
0
883
Member Avatar for Jorge_19

hello, I need to add items in the 'ide' element, so that it looks like the example below saving in XML (thank you!). The example I need: `<ide> <cUF>43</cUF> <cCT>00000004</cCT> <CFOP>6353</CFOP>... </ide>` In the current situation, Im getting only `<cUF>:` <?xml version="1.0" encoding="UTF-8"?> <CTe xmlns="http://www.portalfiscal.inf.br/cte"> <infCte versao="3.00" Id="CTe43120178408960000182570010000000041000000047"> <ide><cUF>43</cUF></ide> </infCte> …

Member Avatar for Dani
1
569
Member Avatar for Xozz

Hi. Years ago, I started writing a game called iWarz. It's a PHP-script. I've never finished it and I'm not sure if I ever will. But what I can do with it is to show you the code. So please, go ahead and download it. Study it, tell me what …

Member Avatar for andrevanzuydam
0
172
Member Avatar for Billy_8

My script for this website www.confessions.co.ke has issues. 1. I cannot implement reCAPTCHA. If switched on, comments are not posted. 2. When someone comments,it says 'something bad' happened. But the comment ends up being posted , but not visible. 3. Google indexing seems not to find the content. How do …

Member Avatar for Dani
0
177
Member Avatar for Passy

<?php if(!empty($_POST['submit'])){ if(empty($_POST['user_name'])|| empty($_POST['phone_number'])|| empty($_POST['email'])|| empty($_POST['password'])|| empty($_POST['confirm_password'])) { exit("please fill in all the fields. <a href = './register.php'>return</a>"); } if($_POST['password']!==$_POST['confirm_password']) { exit("passwords must match. <a href = './register.php'>return</a>"); } /*$pattern = "^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"; if(!pregmatch($pattern,$POST['email'])) { exit("please enter a valid email address. <a href = './register.php'>return</a>"); }*/ $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; if (!preg_match($regex, …

Member Avatar for Dani
0
1K
Member Avatar for Prince_31

I want to dynamically fill key and value in an associative array using for loop in PHP $ct = 4; $str = ''; for($cunt=1; $cunt<=$ct; $cunt++) { $valu= '"value'; $cuntc = $cunt.'"'; $rw = '"$row'; $fild= "field"; $cp = $valu.$cuntc."=>".$rw."->".$fild.$cuntc; $str .= $cp . ','; } //trim the , from …

Member Avatar for Dani
0
230
Member Avatar for nomirobin

I am currently developing a MLM PHP script, where I need some suggestions OR code examples (would be better) about giving bonus to the all referrers. Like: username referrer -------- -------- A B A // UPDATE USERNAME A WITH +5 POINTS // C B // UPDATE USERNAME A WITH +3 …

Member Avatar for Dani
0
150
Member Avatar for Akinjide

Hello friends, I have a website on which I embedded my YouTube channel, but I need my users to pay before they can watch live videos. Help me.

Member Avatar for Dani
0
149
Member Avatar for JAIYANESH

mysqli_real_escape_string() expects parameter 1 to be mysqli, null $idbilik = " ' ". mysqli_real_escape_string($idbilik, $samb) . " ' "; $result = mysqli_query($samb,"SELECT * FROM bilik WHERE idbilik=$idbilik"); while($res = mysqli_fetch_array($result)) i did as u say so madam...add the line u gave before $result..but i am getting the error stated above...

Member Avatar for Dani
0
90

The End.