[Solved] self check database [closed]

[ad_1] It sounds like you are approaching the problem from the wrong perspective and over complicating it. How do the ID’s get into the database? You should go to that point in the code and log it and/or notify yourself at that point. For example, if you want to be notified each time a user … Read more

[Solved] Need to find Facebook username from user id

[ad_1] me/username is no longer available. Source: https://developers.facebook.com/docs/apps/changelog#v2_0 You are not supposed to use the username anymore, just use the App Scoped User ID to identify users. [ad_2] solved Need to find Facebook username from user id

[Solved] What are the options or ways to pass variables to another url when user click on the link? [closed]

[ad_1] The only way to hide you variables is to store them on server side and use session to pass them between scripts. POST variables are not hidden at all, there are many ways to reveal them. [ad_2] solved What are the options or ways to pass variables to another url when user click on … Read more

[Solved] Cakephp routing (in PHP too) [closed]

[ad_1] As indicated in the docs, you can use regular expressions to restrict matching route elements. The regex snippet you are looking for is: ‘(?i:hellouser)’ Route definition Putting the docs and your specific regex together, here’s a route that will match the url /hellouser in a case insensitive manner: Router::connect( ‘/:user’, array(‘controller’ => ‘teachers’, ‘action’ … Read more

[Solved] How to show the query inside PHP? [closed]

[ad_1] Maybe you want something like this (example with mysql): $conection = mysql_connect (“localhost”,”root”,””) or die(“Can’t connect to the database”); mysql_select_db(“database name”) or die (“Can’t connect to the database”); $sel=”SELECT SUM( value ) FROM table_name WHERE field_id IN ( 31, 33, 35, 37, 39, 41 )”; $query = mysql_query($select,$conexion) or die (“Bad.”); $row=mysql_fetch_array($query); Now, $row … Read more

[Solved] PHP Codeigniter Unexpected Error(Module ‘imagick’ already loaded)

[ad_1] That is from php loading up. In your university files there are 2 Lines loading the imagick extension Assuming a Linux server it’s likely located /etc/php/conf.d or similar. Ubuntu server uses /etc/php7/apache/conf.d for example assuming your using php as an Apache module Inside there you should be able to grep for the word imagick … Read more

[Solved] mysqli calling same data twice [duplicate]

[ad_1] Returns an array that corresponds to the fetched row and moves the internal data pointer ahead. The internal data point is still at the end when you try to use your second while loop. You have done nothing to reset it. You can move it back to the start with mysqli_data_seek($result, 0); Update: when … Read more

[Solved] Load php function onClick [closed]

[ad_1] Replace your javascript with this one $(“#Readtok”).click(function(){ //here t is small letter in ReadTok $(“#tokentype”).load(‘../process/read_token_type.php’); }); Because your button id is id=”Readtok” 3 [ad_2] solved Load php function onClick [closed]

[Solved] Error in the last line of my PHP mail() script unexpected T_STRING [closed]

[ad_1] As noted in the comments, you haven’t closed off the $to variable. Set that to: $to = ‘[email protected], [email protected]’; And change your mail() function to: if(!mail($to,$email_subject,$email_body)) { echo ‘failed’; } else { echo ‘sent’; } You would get an error on the mail() line because you had one too many commas (,). NOTE The … Read more

[Solved] How do i start text str_split after some characters

[ad_1] it may not be possible by str_split as ‘again’ has 5 characters. you can get ‘from’, ‘here’ by following code. $txt = “lookSTARTfromhereSTARTagainhere”; $txt = str_replace(‘look’,”,$txt); $txt = str_replace(‘START’,”,$txt); $disp = str_split($txt, 4); for ($b = 0; $b<3; $b++) { echo “$disp[$b]”; } [ad_2] solved How do i start text str_split after some characters

[Solved] How do you use variables within $_POST? [closed]

[ad_1] $_POST is an associative array that is set by forms using the “method=post” attribute. You can access it like the following: Lets say you have the form: <form action=”” method=”post”> Name: <input type=”text” name=”first_name” /> <input type=”submit” value=”Submit” /> </form> You would access the “first_name” input box using the following variable: $_POST[‘first_name’] If “row” … Read more

[Solved] Set tables as side by side instead of straight down while doing a while-loop

[ad_1] Wrap the result in another table. echo “<table>”; $count = 0; $num_columns = 2; // or 3 while ($rc = mysql_fetch_array($results_course)) { if ($count++ % $num_columns == 0) { echo “<tr>”; } echo “<td>”; // previous table code here echo “</td>”; if ($count % $num_columns == 0) { echo “</tr>”; } } if ($count … Read more