Vecteevs Posted July 12, 2011 Report Share Posted July 12, 2011 Sveiki, problēma ir tāda. Kad veicu datubāzes update postojot datus man neļauj izmantot mysql_real_escape_string kods man ir šāds include("dbc.php"); $faq=(int)$_POST['faq']; $epasts=mysql_real_escape_string($_POST['epasts']); $querys=mysql_query("UPDATE lietotaji SET epasts='$epasts' WHERE did='$faq'"); if($querys){ echo 'viss notiek!'; }else{ echo 'kautkas nav'; } un izmet šādu erroru: Bez eskaipošanas viss strādā ;/ Quote Link to comment Share on other sites More sharing options...
briedis Posted July 12, 2011 Report Share Posted July 12, 2011 Precizēsim.. Aizstājot šo: $epasts=mysql_real_escape_string($_POST['epasts']); ar šo: $epasts=$_POST['epasts']; problēmu nav? Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted July 12, 2011 Author Report Share Posted July 12, 2011 Precizēsim.. Aizstājot šo: $epasts=mysql_real_escape_string($_POST['epasts']); ar šo: $epasts=$_POST['epasts']; problēmu nav? Tieši tā, tad viss notiek. Quote Link to comment Share on other sites More sharing options...
briedis Posted July 12, 2011 Report Share Posted July 12, 2011 Palūri error log'os, varbūt tur kaut kas parādās. Ir vērts arī pameklēt gūglē - "mysql_real_.. apache crash" Vēl izeja ir pārinstalēt pašu php un apachi (ja tas ir, piem., xampp, problēmām nevajadzētu būt) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 12, 2011 Report Share Posted July 12, 2011 $epasts=mysql_real_escape_string($_POST['epasts']); Kas tur nav labi? Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted July 12, 2011 Author Report Share Posted July 12, 2011 (edited) pārinstalēju un error logs ir šāds. Un es lietoju appserv [Tue Jul 12 14:38:22 2011] [notice] Parent: child process exited with status 3221225477 -- Restarting. PHP Warning: Directive 'register_globals' is no longer supported in PHP 6 and greater in Unknown on line 0 PHP Warning: Directive 'register_long_arrays' is no longer supported in PHP 6 and greater in Unknown on line 0 PHP Warning: Directive 'magic_quotes_gpc' is no longer supported in PHP 6 and greater in Unknown on line 0 [Tue Jul 12 14:38:23 2011] [notice] Apache/2.2.8 (Win32) PHP/6.0.0-dev configured -- resuming normal operations [Tue Jul 12 14:38:23 2011] [notice] Server built: Jan 18 2008 00:37:19 [Tue Jul 12 14:38:24 2011] [notice] Parent: Created child process 3192 Apache server shutdown initiated... PHP Warning: Directive 'register_globals' is no longer supported in PHP 6 and greater in Unknown on line 0 PHP Warning: Directive 'register_long_arrays' is no longer supported in PHP 6 and greater in Unknown on line 0 PHP Warning: Directive 'magic_quotes_gpc' is no longer supported in PHP 6 and greater in Unknown on line 0 [Tue Jul 12 14:38:25 2011] [notice] Child 3192: Child process is running [Tue Jul 12 14:38:25 2011] [notice] Child 3192: Acquired the start mutex. [Tue Jul 12 14:38:25 2011] [notice] Child 3192: Starting 64 worker threads. [Tue Jul 12 14:38:25 2011] [notice] Parent: Received shutdown signal -- Shutting down the server. [Tue Jul 12 14:38:25 2011] [notice] Child 3192: Exit event signaled. Child process is ending. [Tue Jul 12 14:38:25 2011] [notice] Child 3192: Starting thread to listen on port 80. [Tue Jul 12 14:38:26 2011] [notice] Child 3192: Released the start mutex [Tue Jul 12 14:38:27 2011] [notice] Child 3192: All worker threads have exited. [Tue Jul 12 14:38:27 2011] [notice] Child 3192: Child process is exiting [Tue Jul 12 14:38:27 2011] [notice] Parent: Child process exited successfully. daGrevis, ar eskaipošanu man pārstāj viss darboties. Edited July 12, 2011 by Vecteevs Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 12, 2011 Report Share Posted July 12, 2011 Kas Tev par PHP versiju? No kurienes dabūji? Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted July 12, 2011 Author Report Share Posted July 12, 2011 Lejupielādēju te: http://www.appservnetwork.com/ un versija ir 2.6.0 Quote Link to comment Share on other sites More sharing options...
briedis Posted July 12, 2011 Report Share Posted July 12, 2011 Kārtējo reizi pierādās, ka tas appservers kaut kāds sūds :D no XAMPP šādi un citi gļuki (salīdzinot ar appserv) nav dzirdēti praktiski nekad :) Hmm, izskatās, ka tiek lietots PHP6. Ieteikums izmantot 5.3.6 versiju, jo tā pašlaik ir "stable". Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted July 12, 2011 Author Report Share Posted July 12, 2011 Jā, paldies. Pārliku to versiju un tagad viss strādā. Nebūtu iedomājies, ka tas var būt pie vainas. Quote Link to comment Share on other sites More sharing options...
Maris-S Posted July 12, 2011 Report Share Posted July 12, 2011 Pēc kļūdu loga Tev ir php 6.0 versija, tā ir izstrādes stadijā un pat klīst baumas ka īsti sekmīgi ar viņu neiet kā iecerēts, jo sarežģīti realizēt iecerētās lietas. Cik skatos 6. versija pat izņemta no php oficiālās mājas lapas development sadaļas. Tā ka labāk liec vien tekošo jaunāko versiju un vēlams no oficiālās mājas lapas. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 12, 2011 Report Share Posted July 12, 2011 Es arī domāju, ka Viņam ir PHP 6... bet ja ta padomā; domāju, ka izstrādātājs tiek brīdināts par to, ka vairs nevajag izmantot lietu X, jo sākot ar PHP 6 tā tiks pilnībā izņemta, bet pagaidām ir 'deprecated'. Quote Link to comment Share on other sites More sharing options...
nikidijs Posted July 12, 2011 Report Share Posted July 12, 2011 Es ar no sākuma uzliku 2.6.0 gadijās, ka šis tas nestrādā, tagad 2.5.10 - nesūdzos. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 12, 2011 Report Share Posted July 12, 2011 Pats vienmēr pie pēdējajām, bet stabilajām versijām turos. Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 13, 2011 Report Share Posted July 13, 2011 Pats vienmēr pie pēdējajām, bet stabilajām versijām turos. Par stabīlajām vers. pilnībā piekritu, bet ne par pēdējām. Jo, ja taisi priekš sevīm ir Ok. , bet ta 90% gadijumos klientam nebūs tās pēdējās versijas. Tas gan attiecās, ja izmanto jaunākās fīčas. Manuprāt šobrīd optimāli ir izmantot 5.2 + , jo šai versijai bija diezgan daudz būtiski jaunievedumi. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.