473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Php code where is the error?

Code 1 (Class)

Expand|Select|Wrap|Line Numbers
  1. public function UyeKayit($adres, $ad, $soyad, $mail, $sifre1, $sifre2, $gsm, $il){
  2. if (filter_var($mail,FILTER_VALIDATE_EMAIL)…
  3. $preg1 = true;
  4. }else{
  5. $preg1 = false;
  6. }
  7. if (preg_match('/^[a-z\d_]{5,20}$/i', $ad)){
  8. $preg2 = true;
  9. }else{
  10. $preg2 = false;
  11. }
  12. if (preg_match('/^[a-z\d_]{5,20}$/i', $soyad)){
  13. $preg3 = true;
  14. }else{
  15. $preg3 = false;
  16. }
  17. if (filter_var($gsm,FILTER_SANITIZE_NUMBER_…
  18. $preg4 = true;
  19. }else{
  20. $preg4 = false;
  21. }
  22. if ($sifre1 === $sifre2 and preg_match('/^[a-z\d_]{5,20}$/i', $sifre1)){
  23. $sifre = md5($sifre1);
  24. }else{
  25. $preg5 = false;
  26. }
  27. if (preg_match('/^[a-z\d_]{5,20}$/i', $il)){
  28. $preg6 = true;
  29. }else{
  30. $preg6 = false;
  31. }
  32. $ip = $_SERVER['REMOTE_ADDR'];
  33. $adres = stripslashes($adres);
  34. $sql = "insert into kullanıcılar (k_adres,k_ad,k_soyad,k_posta,k_sifre,k_… values ('$adres','$ad','$soyad','$mail','$sifre… ";
  35. if (mysql_query($sql,$this->BaglanDB())){
  36. return $sonuc = true;
  37. }else{
  38. return $sonuc = false;
  39. }
  40. return array($preg1, $preg2, $preg3, $preg4, $preg5, $preg6, $sonuc);
  41. }
  42.  
  43.  
--------------------------------------…

Code 2 (Down)

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. require_once('classes/db.class.php');
  3. $veri = array();
  4. $adres = $_POST['adres'];
  5. $ad = $_POST['ad'];
  6. $soyad = $_POST['soyad'];
  7. $mail = $_POST['mail'];
  8. $sifre1 = $_POST['sifre1'];
  9. $sifre2 = $_POST['sifre2'];
  10. $gsm = $_POST['gsm'];
  11. $il = $_POST['il'];
  12.  
  13. $uyekayit = new DBekle();
  14. list($preg1, $preg2, $preg3, $preg4, $preg5, $preg6, $sonuc) = $uyekayit->UyeKayit($adres,$ad,$soyad,$m…
  15. $uyekayit->UyeKayit($adres,$ad,$soyad,…
  16. if ($sonuc == true){
  17. echo "kayıt eklendi";
  18. }
  19. ?>
  20.  
Not write in the screen? :(
Where is the error?
Feb 22 '11 #1
3 1687
dlite922
1,584 Expert 1GB
Do you have error reporting turned on?


Dan
Feb 22 '11 #2
Not write in the screen? :( no error :(

Thank you
Feb 23 '11 #3
dlite922
1,584 Expert 1GB
That's not what I asked. You need to turn ON error reporting to SEE errors on screen.

For security reasons, production PHP install has it off.

http://bytes.com/topic/php/answers/6...gging-messages


Dan
Feb 23 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Amit Kela | last post by:
Hey, I am getting the following error when I try to delete the contents of a recordset under a condition statement. Is there any way I can delete them without running into this error? I need to...
6
by: geronimo_me | last post by:
Hi, I am trying to run an Excel macro from an Access module, however when I run the code the macro runs but then I get an error in Access. The error is: Run-time error "440", Automation error. ...
4
by: yanyo | last post by:
hi, im trying to figure out whats the problem with this program i get a runtime error but i dont see where the problem is i tried changing declaration but nothing if somrbody can try this on their...
4
by: SteadySteps | last post by:
Hi I migrated a project which compiles correctly on VC 6.0 to VS 2002. However now all I get several warning that all the statements within catch blocks are "unreachable code". How can I correct...
8
by: Doug Bell | last post by:
Hi, I have been debugging a new VB.Net Application and today, I have been getting an error that I have not seen before This error is now appearing on a line with the following code: lnGUID =...
1
by: xian2 | last post by:
Hi All, I have been using this guide http://www.compasscomputing.co.uk/code/AcceesReportsToPDFandEmail.htm to create a command button that automatically saves and e-mails your report and have...
7
by: JewelsT | last post by:
Hello, I'm new to both RSS & XML and I am trying to create a ColdFusion RSS feed. I have my cfm file with all my code and at the end of the file I am writing that output to an XML file. At the top...
1
by: TSalm | last post by:
Hi, After sending a request, I would get the possible error message. Not the code @@error, nor the exact content of sysmessages, but the message like it could be in the log file. TIA, TSalm
13
by: problem. | last post by:
#include <stdio.h> #include <stdlib.h> int main(void) { int a, b; float result = 0.0f; char symbol = '\0'; int loop = 0;
0
by: vagueante | last post by:
Hi, I have a windows service that i connecto to a iSeries Dataqueue, i can write and read from it. The purpose of this service it's to keep reading the dataqueue and when it has some data i run...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.